zoukankan      html  css  js  c++  java
  • CentOS7卸载及安装Nginx

    CentOS7卸载及安装Nginx

    1、查询Nginx服务并停掉

    ps -ef | grep nginx

    kill -9 29377

    2、.查找、删除Nginx相关文件

    whereis nginx

    find / -name nginx

    3、使用yum清理

    yum remove nginx


    5.备份原来的Nginx配置

    tar cvzf nginx201912191626.tar.gz nginx/

    6.安装新的Nginx

    sudo yum -y update
    sudo yum -y install epel-release
    sudo yum -y install vim wget lrzsz pcre pcre-devel openssl openssl-devel zlib zlib-devel lua luajit gcc gcc-c++ axel telnet

    cd /usr/local/src

    wget https://nchc.dl.sourceforge.net/project/pcre/pcre/8.35/pcre-8.35.tar.gz

    wget http://nginx.org/download/nginx-1.18.0.tar.gz

    cd nginx-1.16.1

    ./configure --prefix=/usr/local/nginx --with-debug --with-http_stub_status_module --with-http_ssl_module --with-http_realip_module --with-http_image_filter_module

     make && make install

    错误指南 https://blog.csdn.net/sanchan/article/details/51213382

    图片处理模块需要安装依赖 

    yum install gd-devel  yum install gd


    ./configure --prefix=/usr/local/nginx --with-debug --with-luajit --user=nobody --group=nobody --with-threads --with-file-aio --with-http_sub_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_auth_request_module --with-http_random_index_module --with-http_secure_link_module --with-http_slice_module --with-stream --with-stream_ssl_module
    --with-http_stub_status_module --with-http_ssl_module --with-http_realip_module --with-http_image_filter_module

  • 相关阅读:
    代码对齐--string|stream
    pytest_30_40
    性能总结
    day41_IO模型
    postman_05_cookie_case_流(顺序)
    linux_压缩
    post_04_assert_请求参数预处理_pre_requests
    postman_网址
    postman_03_引用随机变量($guid,$timestamp,$randomInt)_and_参数引用外部文件
    CF 1354C2 思维
  • 原文地址:https://www.cnblogs.com/zplogo/p/12142748.html
Copyright © 2011-2022 走看看