随服务器启动nginx
# systemctl enable nginx.service
重启 nginx 服务服务器
# systemctl restart nginx.service
中止 nginx 服务curl
# systemctl stop nginx.service
查看 nginx 运行状态测试
# systemctl status nginx.service
测试配置文件是否正常: # /usr/sbin/nginx –t
测试是否启动成功:
# curl -i localhost