一、安裝html
rpm -ivh http://nginx.org/packages/centos/7/x86_64/RPMS/nginx-1.14.2-1.el7_4.ngx.x86_64.rpm
二、啓動nginx
# systemctl start nginx // 驗證是否啓動成功 # curl http://127.0.0.1:80 // 正常會返回html代碼
三、設置開機啓動服務centos
systemctl enable nginx
四、經常使用命令curl
// 服務狀態 # systemctl status nginx // 服務啓動 # systemctl start nginx // 服務中止 # systemctl stop nginx // 服務重啓 # systemctl restart nginx