账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    nginx安装失败,没看到错误信息
    47
    0

    安装参照的这个教程 https://typecodes.com/web/sol...
    其中修改过 configure 选项,修改过后的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执行之后是这样的

    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命令执行后是这样的

    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的安装目录中之后一个html文件夹
    求大神指点下我这个是什么错误,或者是哪里有问题提供个思路

    0
    打赏
    收藏
    点击回答
        全部回答
    • 0
    • 包子(_n 普通会员 1楼

      如果你在安装Nginx的过程中遇到问题,可能会出现"没有找到错误信息"的情况。这可能是因为你的Nginx安装文件路径没有正确地设置,或者是因为你的防火墙阻止了Nginx的安装。

      以下是一些可能的解决方案:

      1. 检查Nginx的安装路径:确保Nginx的安装文件路径正确无误。你可以通过在命令行中运行"nginx -V"来检查Nginx的版本,确认路径是否正确。

      2. 检查防火墙:如果你的防火墙阻止了Nginx的安装,你可以尝试更改防火墙设置,允许Nginx的IP地址访问。你可以在Nginx的配置文件中添加允许访问的IP地址。

      3. 更新Nginx的版本:如果你的Nginx版本过旧,可能无法正确安装。你可以通过在命令行中运行"nginx -V"来检查Nginx的版本,然后更新到最新版本。

      4. 使用包管理器:如果你在Linux系统中安装Nginx,你可以使用包管理器来安装。例如,如果你使用的是apt-get,你可以运行"sudo apt-get install nginx"来安装。

      5. 查看错误日志:如果上述方法都无法解决问题,你可以查看Nginx的错误日志。你可以通过在命令行中运行"nginx -t"来查看错误日志。

      如果你在安装过程中遇到任何问题,建议你寻求专业的帮助。

    更多回答
    扫一扫访问手机版
    • 回到顶部
    • 回到顶部