首页 > 数据库技术 > 详细

mongodb的启动脚本!

时间:2018-08-20 16:30:10      阅读:179      评论:0      收藏:0      [点我收藏+]

#!/bin/sh
#chkconfig: 2345 80 90
#description: mongodb
start() {
/usr/local/mongodb-linux-x86_64-rhel70-3.6.6/bin/mongod -f /usr/local/mongodb-linux-x86_64-rhel70-3.6.6/bin/mongodb.conf
}

stop() {
/usr/local/mongodb-linux-x86_64-rhel70-3.6.6/bin/mongod -f /usr/local/mongodb-linux-x86_64-rhel70-3.6.6/bin/mongodb.conf --shutdown
}

case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
start
;;
*)
echo $"Usage: $0 {start|stop|restart}"
exit 1
esac

mongodb的启动脚本!

原文:http://blog.51cto.com/13043516/2162000

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!