在centos6上面,
一直使用
service mongod start/stop/restart/status
但是,在centos7和ubuntu16.04上面,service就有点不好用了。
可以使用systemctl来完成操作。
在centos6上面,
一直使用
service mongod start/stop/restart/status
但是,在centos7和ubuntu16.04上面,service就有点不好用了。
可以使用systemctl来完成操作。
参考地址:
http://www.cnblogs.com/cocowool/archive/2009/04/22/1441291.html
http://blog.sina.com.cn/s/blog_71e2015f0101ebcy.html
环境
centos7
借鉴了http://blog.163.com/yang_shunnian/blog/static/7234452015225111522575/
继续阅读centos7关闭防火墙,使用iptables防火墙环境:
CentOS6.7 64位
JDK8
Mysql5.7