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
求指點,或者有其他安裝模塊的方法嗎?
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
替換成你當(dāng)前安裝的 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