日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > Nginx >内容正文

Nginx

CentOS 7 安装并启动Nginx

發布時間:2024/7/19 Nginx 73 豆豆
生活随笔 收集整理的這篇文章主要介紹了 CentOS 7 安装并启动Nginx 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
一、安裝必要的庫

1、安裝gcc gcc-c ++

yum install -y gcc gcc-c ++

2、gzip模塊需要 zlib 庫

cd /usr/local wget http://zlib.net/zlib-1.2.11.tar.gz tar -zxvf zlib-1.2.11.tar.gz cd zlib-1.2.11 ./config make && make install

3、重寫模塊需要pcre庫

cd /usr/local wget http://jaist.dl.sourceforge.net/project/pcre/pcre/8.33/pcre-8.33.tar.gz tar -zxvf pcre-8.33.tar.gz cd pcre-8.33 ./configure make && make install

4、ssl功能需要openssl庫

cd /usr/local wget http://www.openssl.org/source/openssl-1.0.1j.tar.gz tar -zxvf openssl-1.0.1j.tar.gz cd openssl-1.0.1j ./configure make && make install
二、安裝nginx
cd /usr/local wget http://nginx.org/download/nginx-1.14.0.tar.gz tar -zxvf nginx-1.14.0.tar.gz cd nginx-1.14.0 ./configure --user=nobody --group=nobody --prefix=/usr/localinx --with-http_stub_status_module --with-http_gzip_static_module --with-http_realip_module --with-http_sub_module --with-http_ssl_module --with-pcre=/usr/local/pcre-8.33 --with-zlib=/usr/local/zlib-1.2.11 --with-openssl=/usr/local/openssl-1.0.1j make && make install
三、啟動
cd /usr/local/nginx ./sbin/nginx
四、瀏覽器訪問IP地址,出現Welcome to nginx!

總結

以上是生活随笔為你收集整理的CentOS 7 安装并启动Nginx的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。