- 將 RTMP 模組檔案解壓縮後的 stat.xsl 複製到網頁目錄
1 2 3 |
wget https://github.com/arut/nginx-rtmp-module/archive/master.zip unzip master.zip cp nginx-rtmp-module-master/stat.xsl /usr/local/nginx/html/. |
- 編輯 Nginx 設定檔,加入 stat 網頁設定
1 2 3 4 5 6 7 8 |
location /stat { rtmp_stat all; rtmp_stat_stylesheet stat.xsl; } location /stat.xsl { root html; } |