用apt-get install安装的nginx怎样安装模块?

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
okudayukiko0
帖子: 25
注册时间: 2016-02-06 21:54
系统: Windows 7

用apt-get install安装的nginx怎样安装模块?

#1

帖子 okudayukiko0 » 2016-02-27 14:15

比如nginx-rtmp-module
另外 不开源nginx模块怎么安装?
onlylove
论坛版主
帖子: 5235
注册时间: 2007-01-14 16:23

Re: 用apt-get install安装的nginx怎样安装模块?

#2

帖子 onlylove » 2016-02-27 14:30

印象里面apache2的module也是用apt-get安装的,然后包名类似 lib-apache2-*这样的,闭源的不清楚怎么玩
或者你自己编译一个nginx好了,反正不费事,就是大规模部署管理啥的不方便
#include <stdio.h>
void main()
{
double world;
unsigned letter;
short stay;
long memories;
printf("I miss you.\n");
}
okudayukiko0
帖子: 25
注册时间: 2016-02-06 21:54
系统: Windows 7

Re: 用apt-get install安装的nginx怎样安装模块?

#3

帖子 okudayukiko0 » 2016-02-27 14:43

onlylove 写了:印象里面apache2的module也是用apt-get安装的,然后包名类似 lib-apache2-*这样的,闭源的不清楚怎么玩
或者你自己编译一个nginx好了,反正不费事,就是大规模部署管理啥的不方便
能不能apt-get source nginx得到ubuntu版nginx源码
然后cd nginx-1.9.10
最后把nginx-rtmp-module的源码文件放入这个文件夹,最后./configure --add-module=/var/lib/nginx/nginx-rtmp-module --with-http_ssl_module
make
make install
这样可以吗?(不是重新安装,只是加入模块)
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 用apt-get install安装的nginx怎样安装模块?

#4

帖子 poloshiao » 2016-02-27 18:23

http://askubuntu.com/a/346124
You cannot add a module to the already-installed NGINX.
and possible solutions.
jamespeng2020
帖子: 5
注册时间: 2020-02-29 6:41
系统: Ubuntu18

Re: 用apt-get install安装的nginx怎样安装模块?

#5

帖子 jamespeng2020 » 2020-02-29 7:58

这个英文文档意思是16.04版本不能加模块,但16.04以上可以的
回复