nginx rtmp module install compile

本文档详细介绍了如何从源码编译安装Nginx及其依赖组件,包括下载与解压Nginx及所需的模块、配置与编译Nginx等步骤,并提供了遇到常见错误时的解决方案。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >


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 \


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值