hsia 发表于 2022-8-22 19:28:31

ngx_http_limit_conn_module 安装失败

root@e:~/lnmp1.9# cat lnmp.conf

Download_Mirror='https://soft.vpser.net'

Nginx_Modules_Options='ngx_http_limit_conn_module'
PHP_Modules_Options=''

##MySQL/MariaDB database directory##
MySQL_Data_Dir='/usr/local/mysql/var'
MariaDB_Data_Dir='/usr/local/mariadb/var'
##Default website home directory##
Default_Website_Dir='/home/wwwroot/default'

Enable_Nginx_Openssl='y'
Enable_Nginx_Lua='n'
Enable_Ngx_FancyIndex='n'
Enable_Swap='y'
Enable_PHP_Exif='n'
Enable_PHP_Fileinfo='n'
Enable_PHP_Ldap='n'
Enable_PHP_Bz2='n'
Enable_PHP_Sodium='n'
Enable_PHP_Imap='n'执行./upgrade.sh nginx
Current Nginx Version:.sh: line 5: /usr/local/nginx/sbin/nginx: No such file or directory
You can get version number from http://nginx.org/en/download.html
Please enter nginx version you want, (example: 1.20.2): 1.22.0
+---------------------------------------------------------+
|    You will upgrade nginx version to 1.22.0
+---------------------------------------------------------+

Press any key to start...or Press Ctrl+c to cancel

============================check files==================================
nginx-1.22.0.tar.gz
============================check files==================================
openssl-1.1.1o.tar.gz
[+] Installing pcre-8.45
pcre-8.45.tar.bz2
Uncompress pcre-8.45.tar.bz2...
Uncompress nginx-1.22.0.tar.gz...
cd nginx-1.22.0...
./configure: error: invalid option "ngx_http_limit_conn_module"
make: *** No targets specified and no makefile found.Stop.
make: *** No targets specified and no makefile found.Stop.
mv: cannot stat '/usr/local/nginx/sbin/nginx': No such file or directory
cp: cannot stat 'objs/nginx': No such file or directory
Test nginx configure file...
include/upgrade_nginx.sh: line 74: /usr/local/nginx/sbin/nginx: No such file or directory
upgrade...
make: *** No rule to make target 'upgrade'.Stop.
Checking ...
Error: Nginx upgrade failed.


军哥怎么解决?

licess 发表于 2022-8-23 08:44:52

首先,ngx_http_limit_conn_module模块本来就是自带的,不管你想不想用它就在那里
其次,Nginx_Modules_Options后面不是写nginx模块名字,这里面的都是写编译参数的,具体的编译参数多少需要去nginx官网查看文档,这个在nginx升级文档 https://lnmp.org/faq/lnmp1-2-upgrade.html 里面都有具体说明
页: [1]
查看完整版本: ngx_http_limit_conn_module 安装失败