logo

Nginx 確認是否安裝成功

$ nginx -v

nginx version: nginx/1.16.1

Nginx 啟動

$ nginx

結果如下圖 nginx

Nginx 停止與其他操作

nginx -s stop    (停止)
nginx -s quit    (暫時停止)
nginx -s reload  (重新刷新 configure)
nginx -s reopen  (重新開啟 log 檔)