zoukankan      html  css  js  c++  java
  • linux安装Nginx

    1. 安装make

      yum -y install gcc automake autoconf libtool make

    2. 安装g++

      yum install gcc gcc-c++

    3. cd到安装nginx的目录

      cd /usr/local/src

    4. 安装pcre库

      cd /usr/local/src


      wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.39.tar.gz
      tar -zxvf pcre-8.37.tar.gz
      cd pcre-8.34
      ./configure
      make
      make install

    5. 安装zlib库

      cd /usr/local/src

      wget http://zlib.net/zlib-1.2.11.tar.gz
      tar -zxvf zlib-1.2.11.tar.gz
      cd zlib-1.2.11
      ./configure
      make
      make install

    6. 安装openssI

      cd /usr/local/src


      wget https://www.openssl.org/source/openssl-1.0.1t.tar.gz
      tar -zxvf openssl-1.0.1t.tar.gz

    7. 安装Nginx

      cd /usr/local/src


      wget http://nginx.org/download/nginx-1.1.10.tar.gz
      tar -zxvf nginx-1.1.10.tar.gz
      cd nginx-1.1.10
      ./configure
      make
      make install

    8. Nginx启动,杀死进程,查看进程

    启动:

      [root@izm5edt5e7ronk42kazu87z www]# /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf

    查看进程:

      ps -ef|grep nginx

    杀死进程:

    kill -QUIT 11752

     

     
  • 相关阅读:
    Delphi Excel 操作大全
    ThreadLocal类
    MyBatis实战总结
    MyBatis入门
    Mybatis逆向工程
    2020年全国高校计算机能力挑战赛初赛java组
    集合论基础
    命题与逻辑
    Redis技术概述
    UML图中6种箭头的含义
  • 原文地址:https://www.cnblogs.com/chefweb/p/10724891.html
Copyright © 2011-2022 走看看