Reference:
reference: http://club.verimake.com/topics/36 http://stackoverflow.com/questions/37014186/running-mongodb-on-ubuntu-16-04-lts p>
on MongoDB: Failed to start mongod. Service: Unit MongoDB. Service is masked, you can follow the following steps:
opens the following file:
sudo vim /etc/systemd/system/mongodb.service
Paste the following into the file and save
[Unit]
Description=High-performance, schema-free document-oriented database
After=network.target
[Service]
User=mongodb
ExecStart=/usr/bin/mongod --quiet --config /etc/mongod.conf
[Install]
WantedBy=multi-user.target
execute the following command:
sudo systemctl enable mongod.service
sudo systemctl daemon-reload
sudo service mongod start
div>
Read More:
- MongoDB Error: Failed to start mongod.service: Unit mongod.service is not loaded properly
- Nginx start error: job for nginx.service failed because the control process exited with error code
- Tdengine failed to start, start request repeated too quickly for taosd.service
- Centos-7 set boot to enter the text interface (not enter the graphical interface)
- Centos7 offline installation of redis and PHP extension redis
- Solve the problem that Gabor can’t start itself after the server is restarted
- Troubleshooting of samba error in Linux configuration startup
- Error: child process failed, exited with error number 1
- Mongodb start error: child process failed, exited with error number 1
- Mongodb failed to start: child process failed, exited with error number 100
- Warning: failed to get default registry endpoint from daemon
- Keepalived add service self-start error analysis [How to Solve]
- Linux virtual machine network “job for” network.service failed because the control process exited with error code”
- MongoDB:Failed: error connecting to db server: no reachable servers
- docker service Failed to get D-Bus connection: Operation not permitted
- Window installation of MongoDB exception: connect failed exception
- Error: could’t connect to server 127.0.0.1:27017 Src / Mongo / shell/ mongo.js
- Error: could’t connect to server 127.0.0.1:27017, connection attempt failed
- docker:Failed to add /run/systemd/ask-password to directory watch: No space left on device
- Deploy mongodb fragment combined with replica set to realize distributed storage of MySQL database files (step 10)