centos7 --ngnix 常用命令:
配置命令
随服务器启动
# systemctl enable nginx.service
重启 nginx 服务
SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。# systemctl restart nginx.service
停止 nginx 服务
# systemctl stop nginx.service
查看 nginx 运行状态
# systemctl status nginx.service
测试配置文件是否正常: # /usr/sbin/nginx –t
测试是否启动成功:
#curl -i localhost

更多精彩