mongodb the boot from the start

One, background

Linux easy to write in the rc.local startup script, reboot ~ found no start successfully. This unscientific ah, view the log found "permission denied"

Second, the solution

Linux system, using custom note permissions configuration file startup problems.

If you are stuck in the permission denied for a long time.

Try to start this way:

vim /etc/rc.local

/bin/su sanro -c "/storage/mongo/bin/mongod -f /storage/mongo/mongod.conf"

Third, pay attention

1. directory "/ storage / mongo /" and its subdirectories must be sanro permission.

2. sanro users create for themselves.

Guess you like

Origin www.cnblogs.com/yoyotl/p/11025642.html
Recommended