zoukankan      html  css  js  c++  java
  • Linux环境下Web环境搭建——Nginx

    1、安装依赖

    yum -y install make gcc gcc-c++ ncurses-devel  ##编译环境

    yum -y install zlib zlib-devel openssl openssl-devel pcre pcre-devel   ##必需软件(y有些软件已经安装则不需安装)

    yum install GeoIP gd libXpm libxslt   ##安装依赖包

    1、上传nginx安装包

    2、解压tar -xzvf nginx-1.11.6.tar.gz

    3.  配置编译条件 

    ./configure --prefix=/usr/nginx --with-pcre --with-http_stub_status_module --with-http_ssl_module --with-http_gzip_static_module --with-http_realip_module

    4. 执行make make install 命令进行安装

    5. 启动

    cd /usr/nginx/sbin

    ./nginx  #启动

    ./nginx -s reload #平滑重启

    ./nginx -t  #测试

    ./nginx -s stop  #停止

    6. 相关文件优化配置 自行搜索

  • 相关阅读:
    何为 ISAPI
    MacDown-The open source Markdown editor for OS X.
    Atom使用
    运维
    Perl
    Kaggle
    J2EE
    leetcode
    Tensorflow 学习笔记
    EXCEL公式及宏
  • 原文地址:https://www.cnblogs.com/zhshto/p/6475120.html
Copyright © 2011-2022 走看看