鍍金池/ 問(wèn)答/Linux  網(wǎng)絡(luò)安全/ nginx安裝失敗,沒(méi)看到錯(cuò)誤信息

nginx安裝失敗,沒(méi)看到錯(cuò)誤信息

安裝參照的這個(gè)教程 https://typecodes.com/web/sol...
其中修改過(guò) configure 選項(xiàng),修改過(guò)后的configure為

./configure \
--prefix=/usr/local/nginx \
--sbin-path=/usr/sbin/nginx \
--conf-path=/usr/local/nginx/conf/nginx.conf \
--error-log-path=/var/log/nginx/error.log \
--http-log-path=/var/log/nginx/access.log \
--pid-path=/var/run/nginx/nginx.pid  \
--lock-path=/var/lock/nginx.lock \
--user=nginx \
--group=nginx \
--with-http_ssl_module \
--with-http_spdy_module \
--with-http_dav_module \
--with-http_flv_module \
--with-http_realip_module \
--with-http_addition_module \
--with-http_xslt_module \
--with-http_stub_status_module \
--with-http_sub_module \
--with-http_random_index_module \
--with-http_degradation_module \
--with-http_secure_link_module \
--with-http_gzip_static_module \
--with-http_perl_module \
--with-pcre=pcre-8.36 \
--with-zlib=zlib-1.2.8 \
--with-debug \
--with-file-aio \
--with-mail \
--with-mail_ssl_module \
--http-client-body-temp-path=/var/tmp/nginx/client_body \
--http-proxy-temp-path=/var/tmp/nginx/proxy \
--http-fastcgi-temp-path=/var/tmp/nginx/fastcgi \
--http-uwsgi-temp-path=/var/tmp/nginx/uwsgi \
--http-scgi-temp-path=/var/tmp/nginx/scgi \
--with-stream \
--with-ld-opt="-Wl,-E"

configure執(zhí)行之后是這樣的

Configuration summary
  + using PCRE library: pcre-8.36
  + using system OpenSSL library
  + md5: using OpenSSL library
  + sha1: using OpenSSL library
  + using zlib library: zlib-1.2.8

  nginx path prefix: "/usr/local/nginx"
  nginx binary file: "/usr/sbin/nginx"
  nginx configuration prefix: "/usr/local/nginx/conf"
  nginx configuration file: "/usr/local/nginx/conf/nginx.conf"
  nginx pid file: "/var/run/nginx/nginx.pid"
  nginx error log file: "/var/log/nginx/error.log"
  nginx http access log file: "/var/log/nginx/access.log"
  nginx http client request body temporary files: "/var/tmp/nginx/client_body"
  nginx http proxy temporary files: "/var/tmp/nginx/proxy"
  nginx http fastcgi temporary files: "/var/tmp/nginx/fastcgi"
  nginx http uwsgi temporary files: "/var/tmp/nginx/uwsgi"
  nginx http scgi temporary files: "/var/tmp/nginx/scgi"

make命令執(zhí)行后是這樣的

make[1]: Leaving directory `/usr/src/nginx-1.9.0'
make -f objs/Makefile manpage
make[1]: Entering directory `/usr/src/nginx-1.9.0'
sed -e "s|%%PREFIX%%|/usr/local/nginx|" \
                -e "s|%%PID_PATH%%|/var/run/nginx/nginx.pid|" \
                -e "s|%%CONF_PATH%%|/usr/local/nginx/conf/nginx.conf|" \
                -e "s|%%ERROR_LOG_PATH%%|/var/log/nginx/error.log|" \
                < man/nginx.8 > objs/nginx.8
make[1]: Leaving directory `/usr/src/nginx-1.9.0'

make install 之后nginx的安裝目錄中之后一個(gè)html文件夾
求大神指點(diǎn)下我這個(gè)是什么錯(cuò)誤,或者是哪里有問(wèn)題提供個(gè)思路

回答
編輯回答
心上人

nginx -t 看看狀態(tài)

2017年9月5日 15:37
編輯回答
怣人

沒(méi)有錯(cuò)誤信息,就是沒(méi)有錯(cuò)誤啊。
你是如何判斷“安裝失敗”的?

2018年3月13日 06:00
編輯回答
孤毒

沒(méi)看到什么地方有錯(cuò)誤的啊,是不是make install沒(méi)加sudo.
測(cè)試一下看看有沒(méi)有問(wèn)題
/usr/sbin/nginx -t

2017年11月12日 04:12