Nginx升级

环境

系统:CentOS 6.7
软件:nginx-1.12.1.tar.gz

nginx安装

  • 下载源码包
    地址:http://nginx.org/

  • 查看原编译参数

    # nginx -V
    ......
    configure arguments: --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-stream --with-stream
    
  • 重新编译安装

    # tar -xzvf nginx-1.12.1.tar.gz
    # cd nginx-1.12.1
    # ./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module
    # make
    # make install
    

    注:用之前的编译参数进行编译

  • 重启

    # /etc/init.d/nginxd restart
    
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容