VPS侦探论坛

 找回密码
 注册
查看: 1705|回复: 1

ngx_http_limit_conn_module 安装失败

[复制链接]
发表于 2022-8-22 19:28:31 | 显示全部楼层 |阅读模式

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

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

  3. Nginx_Modules_Options='ngx_http_limit_conn_module'
  4. PHP_Modules_Options=''

  5. ##MySQL/MariaDB database directory##
  6. MySQL_Data_Dir='/usr/local/mysql/var'
  7. MariaDB_Data_Dir='/usr/local/mariadb/var'
  8. ##Default website home directory##
  9. Default_Website_Dir='/home/wwwroot/default'

  10. Enable_Nginx_Openssl='y'
  11. Enable_Nginx_Lua='n'
  12. Enable_Ngx_FancyIndex='n'
  13. Enable_Swap='y'
  14. Enable_PHP_Exif='n'
  15. Enable_PHP_Fileinfo='n'
  16. Enable_PHP_Ldap='n'
  17. Enable_PHP_Bz2='n'
  18. Enable_PHP_Sodium='n'
  19. Enable_PHP_Imap='n'
复制代码
执行./upgrade.sh nginx
  1. Current Nginx Version:.sh: line 5: /usr/local/nginx/sbin/nginx: No such file or directory
  2. You can get version number from http://nginx.org/en/download.html
  3. Please enter nginx version you want, (example: 1.20.2): 1.22.0
  4. +---------------------------------------------------------+
  5. |    You will upgrade nginx version to 1.22.0
  6. +---------------------------------------------------------+

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

  8. ============================check files==================================
  9. nginx-1.22.0.tar.gz [found]
  10. ============================check files==================================
  11. openssl-1.1.1o.tar.gz [found]
  12. [+] Installing pcre-8.45
  13. pcre-8.45.tar.bz2 [found]
  14. Uncompress pcre-8.45.tar.bz2...
  15. Uncompress nginx-1.22.0.tar.gz...
  16. cd nginx-1.22.0...
  17. ./configure: error: invalid option "ngx_http_limit_conn_module"
  18. make: *** No targets specified and no makefile found.  Stop.
  19. make: *** No targets specified and no makefile found.  Stop.
  20. mv: cannot stat '/usr/local/nginx/sbin/nginx': No such file or directory
  21. cp: cannot stat 'objs/nginx': No such file or directory
  22. Test nginx configure file...
  23. include/upgrade_nginx.sh: line 74: /usr/local/nginx/sbin/nginx: No such file or directory
  24. upgrade...
  25. make: *** No rule to make target 'upgrade'.  Stop.
  26. Checking ...
  27. Error: Nginx upgrade failed.
复制代码



军哥怎么解决?

美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 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 里面都有具体说明
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-7-27 11:30 , Processed in 0.025323 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表