Problems with installing third-party modules in nginx
过去多啦不再A梦
过去多啦不再A梦 2017-05-16 17:25:44
0
2
417

The online tutorial I read said that installing the nginx module when nginx is already installed is as follows:
# ./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梦

reply all(2)
洪涛

Isn’t the prompt very clear? There is no one in the current location./configure Ah, you need to enter the nginx source code directory you installed before. If it doesn’t work, you need to download the source code again, recompile and install it. If this is the case, you need to import the previous configuration. Write this:

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

/path/to替换成你当前安装的 nginx 目录位置,<configuration>For the configuration you want to add later.

刘奇

The configure script is in the auto directory of the nginx source code package ./auto/configure

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!