Probleme bei der Installation von Drittanbietermodulen in Nginx
过去多啦不再A梦
过去多啦不再A梦 2017-05-16 17:25:44
0
2
440

Das Online-Tutorial, das ich mir angesehen habe, sagte, dass die Installation des Nginx-Moduls, wenn Nginx bereits installiert ist, wie folgt erfolgt:
# ./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 # machen # /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梦

Antworte allen(2)
洪涛

提示不是说的很清楚了么 当前位置下没有 ./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 即可

Beliebte Tutorials
Mehr>
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage
Über uns Haftungsausschluss Sitemap
Chinesische PHP-Website:Online-PHP-Schulung für das Gemeinwohl,Helfen Sie PHP-Lernenden, sich schnell weiterzuentwickeln!