防火墙配置
开启80端口
firewall-cmd --zone=public --add-port=80/tcp --permanent
--zone
作用域
--add-port=80/tcp
端口,端口/通讯协议
--permanent
#永久生效,没有此参数重启后失效
重启防火墙
systemctl restart firewalld.service
MongoDB简单在CentOS7上的简单配置
MongoDB 3.4.2
CentOS 7
启动服务
service mongod start
停止服务
service mongod stop
重启服务
service mongod restart