Nginx是一個反向代理的軟體,但什麼是反向代理,那就要先了解什麼是正向代理,下面有一張網路上找到的圖可以簡單表示
Install Nginx
brew install nginx
開啟背景服務
➜ ~ brew services start nginx
==> Tapping homebrew/services
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-services'...
remote: Enumerating objects: 17, done.
remote: Counting objects: 100% (17/17), done.
remote: Compressing objects: 100% (14/14), done.
remote: Total 17 (delta 0), reused 12 (delta 0), pack-reused 0
Unpacking objects: 100% (17/17), done.
Tapped 1 command (50 files, 62.5KB).
==> Successfully started `nginx` (label: homebrew.mxcl.nginx)
How to use?
如果要是在 mac 用 brew 裝的話,在 /usr/local/etc/nginx/nginx.conf 這邊可以設定 nginx 的一些環境。
未完成待補充…