linux安裝Nginx

1. 安裝makenginx

  yum -y install gcc automake autoconf libtool makec++

2. 安裝g++spa

  yum install gcc gcc-c++.net

3. cd到安裝nginx的目錄blog

  cd /usr/local/src進程

4. 安裝pcre庫ssl

  cd /usr/local/srcget


  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 installopenssl

5. 安裝zlib庫gcc

  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

相關文章
相關標籤/搜索