mongodb启动脚本


  

#!/bin/sh  
#  
#chkconfig: 2345 80 90  
#description: mongodb  
start() {
 /usr/local/yunshipei/enterplorer/mongodb/bin/mongod -f /usr/local/yunshipei/enterplorer/mongodb/etc/mongodb.conf
}

stop() {
 /usr/local/yunshipei/enterplorer/mongodb/bin/mongod -f /usr/local/yunshipei/enterplorer/mongodb/etc/mongodb.conf --shutdown
}

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

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM