簡體   English   中英

nginx: [emerg] 未知指令“gop_cache”

[英]nginx: [emerg] unknown directive "gop_cache"

我的nginx配置如下:

  rtmp {
    server {
        listen 1935;
        chunk_size 4000;
        application live {
            live on;
            record off;
            #publish_notify on;
            #on_publish http://localhost/auth.php;

            hls on;
            hls_path /home/hls/test;
            hls_fragment 3s;
            hls_playlist_length 32s;
            meta on;
            gop_cache on;
        }
    }
}

但是在重新加載時出現此錯誤:

nginx: [emerg] /usr/local/nginx/conf/nginx.conf:133 中的未知指令“gop_cache”

我的 nginx 版本是:

nginx version: nginx/1.8.1
built by gcc 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.12)
built with OpenSSL 1.0.2g  1 Mar 2016
TLS SNI support enabled
configure arguments: --with-http_ssl_module --add-module=../nginx-rtmp-module-master

您安裝的nginx未安裝nginx模塊nginx-rtmp-module-master

如果從源代碼安裝nginx ,則需要 --add-module=nginx-rtmp-module-master

例如 :

./configure --add-module=/path/to/nginx-http-flv-module
make
make install

這是官方的說明

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM