您的位置:首页 > 运维架构 > Linux

centos7常用命令

2016-05-13 00:00 429 查看
摘要: centos7常用命令

###centos7常用命令
防火墙


#启动firewall
systemctl start firewalld.service
#停止firewall
systemctl stop firewalld.service
#禁止firewall开机启动
systemctl disable firewalld.service
#查看默认防火墙状态
firewall-cmd --state

iptables


# 安装iptables
yum install iptables-services
# iptables配置文件路径
vi /etc/sysconfig/iptables
#开机启动/禁用iptables
systemctl enable iptables.service
systemctl disable iptables.service
#开启/停止服务
systemctl start iptables.service
systemctl stop iptables.service
#查看状态
systemctl status iptables.service

nginx


nginx -t 检查nginx配置文件
nginx -s reload 重新加载配置文件
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  centos7常用命令