./configure \ --prefix=/usr/local/nginx \ --sbin-path=/usr/local/nginx/sbin/nginx \ --conf-path=/usr/local/nginx/conf/nginx.conf \ --error-log-path=/usr/local/nginx/log/error.log \ --http-log-path=/usr/local/nginx/log/access.log \ --pid-path=/usr/local/nginx/var/nginx.pid \ --lock-path=/usr/local/nginx/var/nginx.lock \ --http-client-body-temp-path=/tmp/clientbody \ --http-proxy-temp-path=/tmp/proxy \ --http-fastcgi-temp-path=/tmp/fastcgi \ --http-uwsgi-temp-path=/tmp/uwsgi \ --http-scgi-temp-path=/tmp/scgi \ --user=www \ --group=www \ --with-file-aio \ --with-http_realip_module \ --with-http_ssl_module \ --with-openssl=/usr/local/src/openssl \ --with-http_gzip_static_module \ --with-zlib=/usr/local/src/zlib \ --with-http_stub_status_module \ --with-pcre=/usr/local/src/pcre \ --without-select_module \ --without-poll_module \ --without-http_ssi_module \ --without-http_userid_module \ --without-http_geo_module \ --without-http_empty_gif_module \ --without-http_map_module \ --without-mail_pop3_module \ --without-mail_imap_module \ --without-mail_smtp_module \ --with-http_flv_module \ --with-http_mp4_module \ --add-module=/usr/local/src/nginx_mod_h264_streaming-2.2.7 \ --add-module=/usr/local/src/nginx-rtmp-module-master
注意第三方模塊使用的是add-module指定的絕對路徑
yamdi
tar xzvf yamdi-1.4.tar.gznginx
cd yamdi-1.4spa
make && make installcode
使用方法:yamdi -i input.flv -o out.flvblog
/usr/local/src 全部的文件都在這個目錄
tar xzvf nginx_mod_h264_streaming-2.2.7ip
tar xzvf nginx-rtmp-module-master ssl
便可編譯的時候指定路徑
--with-http_flv_module \ --with-http_mp4_module \ --add-module=/usr/local/src/nginx_mod_h264_streaming-2.2.7 \ --add-module=/usr/local/src/nginx-rtmp-module-master
make
會出錯
vi nginx_mod_h264_streaming-2.2.7/src/ngx_http_streaming_module.c
:set nu
158行
if (r->zero_in_uri)
{
return NGX_DECLINED;
}
註釋掉
/*if (r->zero_in_uri){return NGX_DECLINED;}*/保存在使用配置./configure 上面的那一段↑makemake install