• Marco
    2018-11-08
    我编译出来nginx的木有只有4个,conf,html,log,sbin;和老师的有区别,那里不对呢

    作者回复: 没有问题的!其他temp目录是nginx运行后,为了存放类似http body这样的临时文件而建立的。

     1
     16
  • Middleware
    2018-11-06
    cp -r contrib/vim/* ~/.vim/

    之后会得到
    cp: target '/home/ubuntu/.vim/' is not a directory

    作者回复: 你试试先:mkdir ~/.vim,可能你的.vim目录从未建立过

    
     11
  • Menng
    2018-11-09
    ./configure 执行完报错
    error:the HHTP rewrite module requires the PCRE library

    nginx版本:nginx-1.14.1
    上面那位执行make报错的估计问题和我的一样

    作者回复: 你需要安装pcre库哦。如果是centos,请使用yum install pcre pcre-devel -y命令安装

    
     10
  • Aliliin
    2018-11-05
    干货到了。

    作者回复: 谢谢,希望对你有所帮助

    
     7
  • 卡卡
    2018-11-10
    我希望nginx未来能支持https,所以选了 --with-http_ssl_module,但是出现报错,
    checking for OpenSSL library ... not found
    checking for OpenSSL library in /usr/local/ ... not found
    checking for OpenSSL library in /usr/pkg/ ... not found
    checking for OpenSSL library in /opt/local/ ... not found

    ./configure: error: SSL modules require the OpenSSL library.
    You can either do not enable the modules, or install the OpenSSL library
    into the system, or build the OpenSSL library statically from the source
    with nginx by using --with-openssl=<path> option.
    展开

    作者回复: 你需要安装openssl,如果是centos系统,可以用yum install -y openssl openssl-devel来安装

    
     6
  • 张细敏
    2019-02-18
    macOS的命令行配置vim语法高亮,按照视频中操作无效,请问有遇到相同问题的吗?
     1
     4
  • 魏
    2018-11-18
    安装完后,安装目录下只有conf、html、logs和sbin四个目录,其他的:client_body_temp、fastcgi_temp、modules、proxy_temp、scgi_temp和uwsgi_temp目录,都没有

    作者回复: 这些目录需要运行nginx后才会由nginx进程自动生成。

    
     4
  • 小强
    2019-03-28
    老师,--prefix=/home/geek/nginx, make以及make install之后,我去nginx里面,是空文件夹啊,这是怎么回事呢

    作者回复: 安装成功了吗?是不是没权限?--prefix=指定为/usr/local/nginx试试?

    
     2
  • 章星
    2018-11-22
    老师,编译的时候生产环境是不是一般得指定一个用户,比如nginx。还是怎么处理呢?目前我们主管用的yum安装的nginx,这样是不是不利于升级。
    谢谢!

    作者回复: 是的,指定worker进程的运行用户。用yum安装但很难用yum升级,热升级依赖我们对nginx的高度可控。

    
     2
  • 星夜
    2018-11-19
    全都是干货,这是极客时间最干的货了,学习中,感谢老师的精彩讲解,每个点每个细节讲的都很到位!

    作者回复: 谢谢!非常高兴能帮到你!

    
     2
  • Leon📷
    2018-11-07
    老师。我配了一个A主机nginx的 代理B,C两个服务,单独代理B和C都可以访问,但是把BC合并在一个一起,在http模块配置一个upstream, 再通过proxy_pass,就代理不行了。err_log显示不可访问, upstream up_servers {
          server 10.19.2.5:80;
          server 10.19.2.27:80;
        }
    location /forum/ {
       proxy_pass http://up_servers ;
    }
    之前还是可以的,又一次改其他配置忘记改了什么,就不行了,请问怎么解决
    展开

    作者回复: 能把完整的nginx.conf以及error.log发我看看吗?我的邮箱russelltao@foxmail.com

    
     2
  • 特仑苏·张
    2019-04-28
    ./configure: error: the HTTP gzip module requires the zlib library.
    You can either disable the module by using --without-http_gzip_module
    option, or install the zlib library into the system, or build the zlib library
    statically from the source with nginx by using --with-zlib=<path> option.

    老师 我已经安装了gzip 然后还是有提示上述报错
    展开

    作者回复: 安装下开发版,例如yum install zlib-devel

    
     1
  • 心灵捕手
    2018-12-12
    老师,我编译安装完成后geek/nginx下面是空的,啥原因?

    作者回复: configure时是不是没有用prefix指定安装目录?那应该默认安装到/usr/local/nginx目录下了

    
     1
  • 老叔叔安森
    2020-01-05
    老师,重复make或make install会有不好影响吗?

    作者回复: 重复make没有关系,如果目标文件存在,而且日期最新,不会覆盖。重复make install不是好习惯,它会覆盖安装位置的文件。

    
    
  • 老叔叔安森
    2020-01-05
    老师,重复make或make install 会有什么不好的影响吗

    作者回复: 不应该重复make install

    
    
  • joker
    2019-12-27
    windows操作系统能用nginx么

    作者回复: 可以的

    
    
  • 渭河
    2019-12-24
    老师你好我对linux操作是个小白,
    我执行get命令后说-bash: ftp: command not found
    我查资料说需要安装
    yum list|grep libwww

    yum install perl-libwww-perl

    但是我安装后还是报错
    展开

    作者回复: 你使用了ftp命令,但没安装ftp。可以用yum install ftp安装。

    BTW,视频演示中,没使用ftp命令啊

    
    
  • 哼干嘛
    2019-11-27
    执行了./configure --prefix=/etc/nginx 命令,运行成功,但是找不到/etc/nginx这个文件夹

    作者回复: make install时才会建立

    
    
  • 拯救不开心
    2019-11-17
    谢谢老师的作品,一直想搭建一个自己的博客,这次双11服务器打折,从0开始学习linux,再学习老师的nginx教程,受益颇丰,
    安装中遇到的问题,基本都可以在网上或是评论区找到答案,也对linux系统的一些基础知识加深了理解。

    作者回复: ^_^

    
    
  • Hurt
    2019-10-22
    老师编译安装的 怎么彻底卸载啊

    作者回复: 把你安装的目录删除就行了,比如configure --prefix=/usr/local/nginx,那么把nginx目录整个删除就行了。如果你安装到已存在目录里,比如bin文件、conf文件都散落在已存在目录,那么需要把生成的文件删除即可。

    
    
我们在线,来聊聊吧