Home  >  Q&A  >  body text

Problems with installing third-party modules in nginx

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梦2712 days ago450

reply all(2)I'll reply

  • PHP中文网

    PHP中文网2017-05-16 17:27:44

    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.

    reply
    0
  • 怪我咯

    怪我咯2017-05-16 17:27:44

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

    reply
    0
  • Cancelreply