还是之前的国内nat机器
不小心搞坏环境了,不得已重装
结果amh 创建lngx环境时失败,大大请看看什么问题。,。。
2023-10-16 01:52:01 (2.91 MB/s) - 'nginx-goodies-nginx-sticky-module.tar.gz' saved [121103/121103]
checking for OS
+ Linux 5.15.108-1-pve x86_64
checking for C compiler ... found
+ using GNU C compiler
+ gcc version: 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04)
checking for gcc -pipe switch ... found
checking for -Wl,-E switch ... found
checking for gcc builtin atomic operations ... found
checking for C99 variadic macros ... found
checking for gcc variadic macros ... found
checking for gcc builtin 64 bit byteswap ... found
checking for unistd.h ... found
checking for inttypes.h ... found
checking for limits.h ... found
checking for sys/filio.h ... not found
checking for sys/param.h ... found
checking for sys/mount.h ... found
checking for sys/statvfs.h ... found
checking for crypt.h ... found
checking for Linux specific features
checking for epoll ... found
checking for EPOLLRDHUP ... found
checking for EPOLLEXCLUSIVE ... found
checking for eventfd() ... found
checking for O_PATH ... found
checking for sendfile() ... found
checking for sendfile64() ... found
checking for sys/prctl.h ... found
checking for prctl(PR_SET_DUMPABLE) ... found
checking for prctl(PR_SET_KEEPCAPS) ... found
checking for capabilities ... found
checking for crypt_r() ... found
checking for sys/vfs.h ... found
checking for poll() ... found
checking for /dev/poll ... not found
checking for kqueue ... not found
checking for crypt() ... not found
checking for crypt() in libcrypt ... found
checking for F_READAHEAD ... not found
checking for posix_fadvise() ... found
checking for O_DIRECT ... found
checking for F_NOCACHE ... not found
checking for directio() ... not found
checking for statfs() ... found
checking for statvfs() ... found
checking for dlopen() ... found
checking for sched_yield() ... found
checking for sched_setaffinity() ... found
checking for SO_SETFIB ... not found
checking for SO_REUSEPORT ... found
checking for SO_ACCEPTFILTER ... not found
checking for SO_BINDANY ... not found
checking for IP_TRANSPARENT ... found
checking for IP_BINDANY ... not found
checking for IP_BIND_ADDRESS_NO_PORT ... found
checking for IP_RECVDSTADDR ... not found
checking for IP_SENDSRCADDR ... not found
checking for IP_PKTINFO ... found
checking for IPV6_RECVPKTINFO ... found
checking for TCP_DEFER_ACCEPT ... found
checking for TCP_KEEPIDLE ... found
checking for TCP_FASTOPEN ... found
checking for TCP_INFO ... found
checking for accept4() ... found
checking for int size ... 4 bytes
checking for long size ... 8 bytes
checking for long long size ... 8 bytes
checking for void * size ... 8 bytes
checking for uint32_t ... found
checking for uint64_t ... found
checking for sig_atomic_t ... found
checking for sig_atomic_t size ... 4 bytes
checking for socklen_t ... found
checking for in_addr_t ... found
checking for in_port_t ... found
checking for rlim_t ... found
checking for uintptr_t ... uintptr_t found
checking for system byte ordering ... little endian
checking for size_t size ... 8 bytes
checking for off_t size ... 8 bytes
checking for time_t size ... 8 bytes
checking for AF_INET6 ... found
checking for setproctitle() ... not found
checking for pread() ... found
checking for pwrite() ... found
checking for pwritev() ... found
checking for strerrordesc_np() ... found
checking for localtime_r() ... found
checking for clock_gettime(CLOCK_MONOTONIC) ... found
checking for posix_memalign() ... found
checking for memalign() ... found
checking for mmap(MAP_ANON|MAP_SHARED) ... found
checking for mmap("/dev/zero", MAP_SHARED) ... found
checking for System V shared memory ... found
checking for POSIX semaphores ... found
checking for struct msghdr.msg_control ... found
checking for ioctl(FIONBIO) ... found
checking for ioctl(FIONREAD) ... found
checking for struct tm.tm_gmtoff ... found
checking for struct dirent.d_namlen ... not found
checking for struct dirent.d_type ... found
checking for sysconf(_SC_NPROCESSORS_ONLN) ... found
checking for sysconf(_SC_LEVEL1_DCACHE_LINESIZE) ... found
checking for openat(), fstatat() ... found
checking for getaddrinfo() ... found
configuring additional modules
adding module in /home/usrdata/nginx-generic-1.20/echo-nginx-module-0.42
+ ngx_http_echo_module was configured
adding module in /home/usrdata/nginx-generic-1.20/yaoweibin-ngx_http_substitutions_filter_module-e3291ac
+ ngx_http_subs_filter_module was configured
adding module in /home/usrdata/nginx-generic-1.20/nginx-goodies-nginx-sticky-module
+ ngx_http_sticky_module was configured
checking for PCRE library ... not found
checking for PCRE library in /usr/local/ ... not found
checking for PCRE library in /usr/include/pcre/ ... not found
checking for PCRE library in /usr/pkg/ ... not found
checking for PCRE library in /opt/local/ ... not found
./configure: error: the HTTP rewrite module requires the PCRE library.
You can either disable the module by using --without-http_rewrite_module
option, or install the PCRE library into the system, or build the PCRE library
statically from the source with nginx by using --with-pcre= option.
make: *** No rule to make target 'build', needed by 'default'. Stop.
nginx version: nginx/1.20.2
built by gcc 11.2.0 (Ubuntu 11.2.0-19ubuntu1)
built with OpenSSL 1.1.1o 3 May 2022
TLS SNI support enabled
configure arguments: --prefix=/usr/local/nginx-generic-1.20 --user=www --group=www --with-http_ssl_module --with-openssl=/home/usrdata/nginx-generic-1.20/openssl-1.1.1o --with-http_gzip_static_module
--with-http_v2_module --with-threads --without-mail_pop3_module --without-mail_imap_module --without-mail_smtp_module
[Error] Lngx01 create failed.
amh lngx info 如下
[lngx-2.6 info]
=============================================================
AMH-ModuleName: lngx-2.6
AMH-ModuleSort: env
AMH-ModuleType: WEBEngine
AMH-ModuleMainVersion: 2.6
AMH-ModuleVersion: 2.6
AMH-ModuleDescription: 更新升级至lngx-2.6版本。增加WebSocket(ws)反代选项,修复关闭或启动缓存https配置没更新问题,增加ipv6监听选项,修复网站存在并发限制、宽带限速或流量防护CDN模式时更换环境nginx出错问题,修复虚拟主机列表点击规则文件跳转切换了环境管理问题。AMH-LNGX反向代理的环境模块。LNGX即为Linux+Nginx+X,其中X为未限定。lngx网站环境提供支持缓存管理与设置反代站点,支持在线关键字添加、替换,支持设置不同类型文件替换、与支持添加自定义首尾html代码块等。您可以创建lngx环境做为其它环境应用前端,如在不同位置建立lngx环境并开启缓存做为站点的CDN加速镜像等。
AMH-ModuleInstallPath: /usr/local/lngx-2.6
AMH-ModuleSbin:
AMH-ModuleDate: 2023-01-11
AMH-ModuleWebSite: http://amh.sh
AMH-ModuleIco: logo.gif
AMH-ModuleScriptBy: amysql
AMH-ModuleNeedParamFunctions:
AMH-ModuleProcessTag:
AMH-ModuleProcessFunctions:
AMH-ModuleNotProcessFunctions:
AMH-ModuleInstallFunctions: url:index.php?c=lngx,txt:LNGX 环境列表|url:index.php?c=lngx&a=lngx_vhost&lngx_name={env_val},txt:主机列表,defaule:y|url:index.php?c=lngx&a=lngx_cache&lngx_name={env_val},txt:缓存设置|url:index.php?c=lngx&a=lngx_cache_index&lngx_name={env_val},txt:缓存索引|url:index.php?c=lngx&a=lngx_cache_del&lngx_name={env_val},txt:缓存删除|cmd:uninstall,txt:卸载,class:red
AMH-ModuleNotInstallFunctions: cmd:install,txt:安装|cmd:delete,txt:删除,class:red
AMH-ModuleExtFunctions:
AMH-ModuleVid: 11
root@1160:~#
要看完整日志,估计你系统的软件源有问题,没能正常安装PCRE组件的问题,
debian系的系统用apt install libpcre3 libpcre3-dev安装排查看。