基于centos7系统mongodb3.,4.4安装
vim/etc/rc.d/init.d/mongodlimit -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]