隨服務器啓動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