ubuntu nginx 编译 云锁防火墙

官方教程:

 

https://help.yunsuo.qianxin.com/guide/Nginx.html

 

可能出现的问题:在使用make命令生成是时,可能会提示缺少pcre编译包

错误提示:

/bin/sh: line 0: cd: /usr/local/src/pcre-8.35: No such file or directory

 

wget https://sourceforge.net/projects/pcre/files/pcre/8.43/pcre-8.43.tar.gz

tar  zxvf pcre-8.43.tar.gz

 

解压过后,修改编译pcre参数为:--with-pcre=/pcre/pcre-8.43 

./configure --prefix=/usr/local/webserver/nginx --with-http_stub_status_module --with-http_ssl_module --with-pcre=/pcre/pcre-8.43 

 

重新使用.configure 命令生成,make编译一下即可

 

"--with-ipv6" option is deprecated 问题

 

编译nginx时出现了下面的告警

nginx "--with-ipv6" option is deprecated

查阅相关文档,原来最新版的nginx编译不需要添加--with-ipv6命令

最新版的nginx默认已经自带ipv6模块

 

其它没有遇到问题,编译成功并应用的效果 

 

posted @ 2022-08-03 11:02  fogwu  阅读(138)  评论(0编辑  收藏  举报