nginx rtmp module install compile

来源:互联网 发布:psd头像源码怎么使用 编辑:程序博客网 时间:2024/06/06 01:48

wget  http://nginx.org/download/nginx-1.9.9.tar.gz

tar xf nginx-1.9.9.tar.gz

git clone git://github.com/arut/nginx-rtmp-module.git

wget https://www.openssl.org/source/openssl-1.0.1t.tar.gz
tar xf openssl-1.0.1t.tar.gz

./configure \
 --prefix=/home/arena/server/nginx \
 --user=nginx --group=nginx \
 --with-http_stub_status_module \
 --with-http_gzip_static_module \
 --with-http_ssl_module \
 --with-http_flv_module \
 --with-http_perl_module \
 --with-mail  \
 --add-module=/home/arena/server/nginx-rtmp-module \
 --with-openssl=/home/arena/server/openssl-1.0.1t  \
 --with-md5=/home/arena/server

ok
useradd -r -M  nginx
------------------------------------------------------------------------------------
error
#linux 64系统中安装nginx1.3时如果出现错误:nginx: [emerg] getpwnam(“www”) failed
#解决方法1:
#      在nginx.conf中 把user nobody的注释去掉既可
#解决方法2:
#      错误的原因是没有创建www这个用户,应该在服务器系统中添加www用户组和用户www,如下命令:
#/usr/sbin/groupadd -f www
#/usr/sbin/useradd -g www www
---------------------------------------------------------------------
error
#在启动nginx之前还需要添加nginx用户组,否则会提示
#[emerg]: getpwnam(“nginx”) failed
#添加用户组
#sudo adduser --system --no-create-home --disabled-password --group nginx

#cd /server/openssl \
#        && make clean \
#        && ./config --prefix=/server/openssl/openssl no-shared  no-threads \
#        && make \
#        && make install

#--with-http_xslt_module

#--with-md5=/root \
#--with-http_ssl_module \
#--with-openssl=/root/openssl-0.9.8k \


0 0
原创粉丝点击