当前位置:Gxlcms > 数据库问题 > mongodb开机启动

mongodb开机启动

时间:2021-07-01 10:21:17 帮助过:12人阅读

2345 80 90 #description: mongodb start() { /usr/local/mongodb/bin/mongod --dbpath=/usr/local/mongodb/mongo_data --logpath=/usr/local/mongodb/logs/mongodb.log --logappend --fork } stop() { /usr/local/mongodb/bin/mongod --dbpath=/usr/local/mongodb/mongo_data --logpath=/usr/local/mongodb/logs/mongodb.log --logappend --fork --shutdown } case "$1" in start) start ;; stop) stop ;; restart) stop start ;; *) echo $"Usage: $0 {start|stop|restart}" exit 1 esac
chmod +x /etc/rc.d/init.d/mongodb
chkconfig --add mongodb
chkconfig --level 345 mongodb on
chkconfig --list mongodb

 

mongodb开机启动

标签:oca   des   bpa   color   mongodb   rest   cas   script   bash   

人气教程排行