安裝Nginx-1.1.x

 1、安裝必須軟件包

yum -y install gcc gcc-c++ autoconf automake zlib zlib-devel openssl openssl-devel pcre pcre-devel 

2、安裝pcre庫

  1. tar zxvf pcre-7.9.tar.gz 
  2. cd pcre-7.9 
  3. ./configure 
  4. make && make install 
  5. cd ../ 

3、安裝Nginx

  1. useradd -s /sbin/nologin www 
  2. wget http://www.nginx.org/download/nginx-1.0.0.tar.gz 
  3. tar zxvf nginx-1.0.0.tar.gz 
  4. cd nginx-1.0.0/ 
  5. ./configure --user=www --group=www --prefix=/opt/nginx --with-http_stub_status_module --with-http_ssl_module 
  6. make && make install 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章