Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Database \ MongoDB configuration in Ubuntu 14.04     - A drop datafile Oracle bug (Database)

- Using open source software to build XWiki Wiki system installed within the company (Linux)

- 11.2.04 Oracle RAC directory crfclust.bdb file is too large, Bug 20186278 (Database)

- How to configure chroot environment in Ubuntu 14.04 (Linux)

- HTTP and HTTPS request response process difference (Linux)

- Ubuntu 14.10 Install Ubuntu Touch Music App 2.0 (Linux)

- To protect the temporary files for Linux security (Linux)

- The Sublime Text 3 configuration file (Linux)

- Linux System Getting Started Tutorial: How to Force Change your password at next logon Linux (Linux)

- Manual cleaning Oracle audit records (Database)

- Linux Getting Started tutorial: build your own Vim (Linux)

- rsync server set up (Server)

- Nginx request processing (Server)

- Build and verify MongoDB3.0.7 version (shard + replica) Cluster (Database)

- Bash Automated Customization Linux belongs to its own CentOS system (Linux)

- VirtualBox virtual machine to install Linux (Linux)

- Getting Started with Linux system to learn: how to check memory usage of Linux (Linux)

- Kitematic how seamless and DockerFILE (Server)

- Some common regular expressions (Linux)

- To install Git on Ubuntu systems (Server)

 
         
  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:      
 
- CentOS yum source deployment (Linux)
- OpenSSL to generate public and private key (Linux)
- With screenfetch linux logo and basic hardware information display with cool Linux logo (Linux)
- sa weak passwords intrusion prevention (Linux)
- CentOS7 build GlusterFS (Linux)
- Android float ball and boot from the start (Programming)
- Stucts2 values on the page and how the attribute values corresponding to the Action (Programming)
- The most common and most effective security settings under linux (Linux)
- After installing minimize RHEL / CentOS 7 we need to do (Linux)
- Android gets the global process information and the memory used by the process (Programming)
- Eclipse Android development environment installation (Linux)
- Figlet use (Linux)
- Arrow keys, backspace key garbled in Python-2.7.5 Interactive Mode under CentOS 5.8 (Linux)
- Django1.5 Custom User Model (Programming)
- MySQL my.cnf sql_mode schema modifications (Database)
- Linux System Getting Started Learning: After starting in Ubuntu or Debian, enter the command line (Linux)
- Unix average load average load calculation method (Server)
- An example of troubleshooting of embedded Linux OpenWRT (Linux)
- Linux crontab commands and detailed usage examples (Linux)
- Ubuntu users to install Gnome-Pie 0.6.5 (Linux)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.