因為課堂需要,所以在此簡單紀錄安裝 Nginx 的過程。 首先,在 Terminal 輸入以下指令來安裝 Homebrew: $ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install )" 若要移除安裝,則執行以下指令: $ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall )" 升級 Homebrew: $ brew update 接著就是開始安裝 Nginx: $ brew tap denji/nginx 我們需要用到 nginx-rtmp-module,所以接著輸入 : $ brew install nginx-full --with-rtmp-module 設定 RTMP 與支援 HLS,打開位於 /usr/local/etc/nginx 的 nginx.conf 新增以下文字: 在event 跟 http 之間輸入: event{ .. } rtmp { server { listen 1935; chunk_size 4000; application hls { live on; hls on; hls_path /tmp/hls; hls_continuous on; hls_cleanup off;...