2015年9月2日 星期三

Nginx 常用 Command Line 指令

Nginx 常用 Command Line 指令

url 檢查, 以 http://localhost 為例:
curl http://localhost     # 取得回傳內容
curl -I http://locahost   # 取得回傳 header 資料
curl -k https://localhost # 跳過 SSL 檢查, 讓使用 self-signed 的 https 網站也可回傳資料

$ nginx -v        # Nginx 的版本顯示
$ sudo nginx -t   # Nginx 設定檔語法檢查

沒有留言:

張貼留言