欧美一区2区三区4区公司二百,国产精品婷婷午夜在线观看,自拍偷拍亚洲精品,国产美女诱惑一区二区

歡迎來到夢飛科技

服務器租用

當前優惠活動:

CentOS Linux系統安裝Nginx具體圖文教程

系統:Centos6.6  64位

Nginx:  http://nginx.org/en/download.html 今朝最新版本1.9.4 我下載1.8.0

CentOS Linux系統安裝Nginx詳細圖文教程

下載模塊依賴性Nginx需要依賴下面3個包
1.gzip 模塊需要 zlib 庫 ( 下載: http://www.zlib.net/ )
2.rewrite 模塊需要 pcre 庫 ( 下載: http://www.pcre.org/ )
3.ssl 成果需要 openssl 庫 ( 下載: http://www.openssl.org/ )

依賴包安裝順序依次為:openssl、zlib、pcre, 然后安裝Nginx包

CentOS Linux系統安裝Nginx詳細圖文教程

CentOS Linux系統安裝Nginx詳細圖文教程

CentOS Linux系統安裝Nginx詳細圖文教程

假如沒有安裝c++編譯情況,還得安裝,通過yum install gcc-c++完成安裝
下載完成后:

CentOS Linux系統安裝Nginx詳細圖文教程

下一步,編譯安裝

openssl :

[[email protected]] tar zxvf openssl-fips-2.0.9.tar.gz

[[email protected]] cd openssl-fips-2.0.9

[[email protected]] ./config && make && make install

pcre:

[[email protected]] tar zxvf pcre-8.36.tar.gz

[[email protected]] cd pcre-8.36

[[email protected]]  ./configure && make && make install

zlib:

[[email protected]]tar zxvf zlib-1.2.8.tar.gz

[[email protected]] cd zlib-1.2.8

[[email protected]]  ./configure && make && make install

最后安裝nginx

[[email protected]]tar zxvf nginx-1.8.0.tar.gz

[[email protected]] cd nginx-1.8.0

[[email protected]]  ./configure && make && make install

CentOS Linux系統安裝Nginx詳細圖文教程

安裝完成后,深圳論壇空間 香港主機,可啟動nginx:

CentOS Linux系統安裝Nginx詳細圖文教程

啟動呼吁:/usr/local/nginx/sbin/nginx
發明報錯了:
error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory
經網上查詢,這是linux的通病

[[email protected] nginx]# sbin/nginx
sbin/nginx: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory
[[email protected] nginx]# error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory
[[email protected] nginx]# whereis libpcre.so.1
libpcre.so: /lib64/libpcre.so.0 /usr/local/lib/libpcre.so /usr/local/lib/libpcre.so.1
[[email protected] nginx]# ln -s /usr/local/lib/libpcre.so.1 /lib64
[[email protected] nginx]# sbin/nginx   
先找到libpcre.so.1地址位置,然后做個軟鏈接就可以了。
查察是否已啟動:

CentOS Linux系統安裝Nginx詳細圖文教程

通過欣賞器會見:

CentOS Linux系統安裝Nginx詳細圖文教程

看到這個就說明nginx安裝并啟動樂成。

ps:

啟動:/usr/local/nginx/sbin/nginx
遏制/從頭加載:/usr/local/nginx/sbin/nginx -s stop(quit、reload)
驗證設置文件是否正當:/usr/local/nginx/sbin/nginx -t
呼吁輔佐:/usr/local/nginx/sbin/nginx -h

夢飛科技 - 全球數據中心基礎服務領先供應商

Copyright © 2003-2019 MFISP.COM. 國外服務器租用 IDC公司 版權所有 ? 粵ICP備11019662號

主站蜘蛛池模板: 赤峰市| 饶阳县| 邛崃市| 麦盖提县| 云梦县| 昌江| 武宁县| 收藏| 博兴县| 潍坊市| 当阳市| 呼图壁县| 肇源县| 文化| 荣昌县| 靖边县| 喜德县| 江北区| 松原市| 南开区| 灵川县| 富阳市| 五河县| 神木县| 黔东| 东至县| 奉化市| 西乌| 丹巴县| 泾阳县| 烟台市| 同仁县| 金昌市| 惠来县| 张家川| 和平区| 岳阳县| 威远县| 昌平区| 义乌市| 洪泽县|