Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Database \ MongoDB configuration in Ubuntu 14.04     - Ubuntu prevent arp attacks (Linux)

- Simple Linux file system - df, du, ln (Linux)

- Ubuntu Install OpenSSL (Linux)

- RMAN parameters of ARCHIVELOG DELETION (Database)

- Ubuntu FAQ solutions (Linux)

- C language function pointer and a callback function (Programming)

- Python several standard types of built-in functions (Programming)

- Linux and hardware (Linux)

- Unix system security configuration (Linux)

- linux server security (Linux)

- Oracle database import and export (Database)

- Django url () function Detailed (Programming)

- Linux software firewall ACL match point optimization (Linux)

- 17 How to install the Ubuntu 14.04 and Linux Mint Kodi14 (XBMC) (Linux)

- Android media library of analysis: MediaProvider (Programming)

- The sublime into IDE (Linux)

- Using nmcli commands to manage network in RedHat / CentOS 7.x (Linux)

- Ubuntu file security removal tool (Linux)

- To use Android RecyclerView (Programming)

- Linux Platform Oracle 11g Single Instance Installation Deployment Configuration Quick Reference (Database)

 
         
  MongoDB configuration in Ubuntu 14.04
     
  Add Date : 2017-08-31      
         
       
         
  I'm on a virtual machine VirtualBox installed Ubuntu 14.04, then encountered an error when deploying MongoDB.

surroundings:

System: Ubuntu (amd64 server version) on VirtualBox, memory 256MB, dual-core CPU.
Hard disk: 8GB ext4 file system (.vdi), has spent 64.5%
Internet connection is available, the software has been updated source
problem:

Mongo-server installation

$ Sudo apt-get install mongodb-server

After that, the service can not start MongoDB

$ Sudo service mongodb start #why error?

Restart the virtual machine more than once, delete the profile and reload mongo-server repeatedly

$ Sudo apt-get remove -purge mongodb-server

$ Sudo apt-get install mongodb-server

invalid.

analysis:

View profile /etc/mongodb.conf, according to which the information traced to several directories, suspicious items are being given:

Space is not enough, suggesting the use of parameters --smallfiles
Log directory enough authority, denied access
Adjust up is still relatively cumbersome.

Try to manually start the process mongod, newspaper space and permissions error

$ Mongod -f /etc/mongodb.conf # permission error

$ Sudo mongod -f /etc/mongodb.conf # lack of space

Checked the / etc / group and / etc / passwd, has MongoDB related items, it indicates the MongoDB account has been created.

trade off:

Directly modify the default log directory and file permissions data may still be a problem. I do not want to tangle on the directory permissions hierarchy. The / etc / passwd know, MongoDB home in / home / mongodb.


method:

Establish MongoDB home, and give it property

$ Sudo mkdir -p / home / mongodb

$ Sudo chown mongodb: mongodb / home / mongodb

Adjust the configuration file, point to the home, with parameters

$ Sudo vim /etc/mongodb.conf

...

dbpath = / home / mongodb

logpath = / home / mongodb / mongo.log

smallfiles = true

...

Reboot again. After drying this adjustment, we have been able to properly maintain MongoDB service

$ Sudo service mongodb [start | restart | status]
     
         
       
         
  More:      
 
- By way of a binary installation innobackupex (Database)
- Install snort intrusion detection system on Debian (Linux)
- Linux text processing tool of sed (Linux)
- CentOS / Linux restart active NIC connection paths / network configure error Error Resolution (Linux)
- Use top to monitor the remote server (Server)
- iptables using summary (Linux)
- Linux processes in memory and memory cgroup statistics (Linux)
- Android using SVG vector graphics to create cool animation effects (Programming)
- Automated Password Generator: Linux under a special password generator (Linux)
- How to install Visual Studio Code on Ubuntu (Linux)
- Oracle database online redo logs are several methods of recovery of deleted (Database)
- Python script running in the background (Programming)
- The ActiveMQ JMS installation and application examples for Linux (Linux)
- Linux network security backdoor technology and advanced skill practice (Linux)
- How to Install terminator 0.98 on Ubuntu and Linux Mint (Linux)
- Ansible module Know (Linux)
- Android Sets the system screen brightness (Programming)
- Why learn Java EE (Programming)
- Linux crontab use (Linux)
- Build your own CA services: OpenSSL command line CA Quick Guide (Server)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.