### Nginx 安裝 nginx 及 rtmp 模組 : ```sh $ sudo apt-get update $ sudo apt-get upgrade $ sudo apt-get install nginx -y $ sudo apt-get install libnginx-mod-rtmp -y ``` ### 修改 Config File ```sh $ sudo vi /etc/nginx/nginx.conf ``` 把以下的內容加入到 Config File 入面 : ```sh rtmp { server { listen 1935; chunk_size 4096; application live { live on; record off; } } } ``` ### 重新啟動 Nginx ```sh $ sudo systemctl restart nginx ```