nosilence 发表于 2018-10-25 09:08:36

基于centos7系统mongodb3.,4.4安装

vim/etc/rc.d/init.d/mongod  
limit -SHn 655350
  
#!/bin/bash
  
# chkconfig: - 64 36
  
# description:mongod
  
case $1 in
  
start)
  
mongod--maxConns 20000--config /opt/mongodb344/mongodb.conf
  
;;
  
stop)
  
/opt/mongodb344/bin/mongo 127.0.0.1:27017/admin --eval "db.shutdownServer()"
  
;;
  
status)
  
/opt/mongodb344/bin/mongo 127.0.0.1:27017/admin --eval "db.stats()"
  
;;
  
esac


页: [1]
查看完整版本: 基于centos7系统mongodb3.,4.4安装