nginx安装第三方模块问题
过去多啦不再A梦
过去多啦不再A梦 2017-05-16 17:25:44
[Linux讨论组]

我看的网上教程说在已安装nginx情况下安装nginx模块直接这样:
# ./configure --prefix=/usr/local/nginx-1.4.1 \ --with-http_stub_status_module \ --with-http_ssl_module --with-http_realip_module \ --with-http_image_filter_module \ --add-module=../ngx_pagespeed-master # make # /usr/local/nginx-1.4.1/sbin/nginx -s stop # cp objs/nginx /usr/local/nginx/sbin/nginx # /usr/local/nginx-1.4.1/sbin/nginx

我运行了下提示  ./configure:no such file or directory

求指点,或者有其他安装模块的方法吗?
过去多啦不再A梦
过去多啦不再A梦

全部回复(2)
PHP中文网

提示不是说的很清楚了么 当前位置下没有 ./configure 啊,要进入 你之前安装的nginx 源码目录才行,不行的话需要重新下载源码重新编译安装,如果是这种情况要导入之前的配置的话可以这么写:

./configure $(</path/to/>nginx -V 2>&1 | grep 'configure arguments' | sed 's/configure arguments://g') <configuration>

/path/to替换成你当前安装的 nginx 目录位置,<configuration>为你后面想要增加的配置。

怪我咯

configure 脚本在 nginx 源码包 auto 目录下 ./auto/configure 即可

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习
PHP中文网抖音号
发现有趣的

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号