Home

NUNU

28 Sep 2018

centOS 7 nginx、防火墙 的启动、停止、重启命令

nginx、防火墙 的启动、停止、重启命令

    #启动 Nginx
    systemctl start nginx

    #停止 Nginx
    systemctl stop nginx


    #重启firewall
    firewall -cmd --reload

    #查看默认防火墙状态(关闭后显示notrunning,开启后显示running)
    firewall -cmd --state

    #停止firewall
    systemctl stop firewalld.service

    #禁止firewall开机启动
    systemctl disable firewalld.service

业精于勤,荒于嬉; 行成于思,毁于随。
pnunu at 14:50

Flag Counter