国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學(xué)院 > 開發(fā)設(shè)計(jì) > 正文

centos7 64位使用心得

2019-11-06 08:16:04
字體:
供稿:網(wǎng)友

下載模塊依賴性Nginx需要依賴下面3個(gè)包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包

如果沒有安裝c++編譯環(huán)境,還得安裝,通過yum install gcc-c++完成安裝下載完成后:

下一步,編譯安裝

openssl :

 

[root@localhost] tar zxvf openssl-fips-2.0.9.tar.gz

[root@localhost] cd openssl-fips-2.0.9

[root@localhost] ./config && make && make install

 

pcre:

 

[root@localhost] tar zxvf pcre-8.36.tar.gz

[root@localhost] cd pcre-8.36

[root@localhost]  ./configure && make && make install

 

zlib:

[root@localhost]tar zxvf zlib-1.2.8.tar.gz

[root@localhost] cd zlib-1.2.8

[root@localhost]  ./configure && make && make install

 

最后安裝nginx

[root@localhost]tar zxvf nginx-1.8.0.tar.gz

[root@localhost] cd nginx-1.8.0

[root@localhost]  ./configure && make && make install

安裝完成后,可啟動(dòng)nginx:

啟動(dòng)命令:/usr/local/nginx/sbin/nginx發(fā)現(xiàn)報(bào)錯(cuò)了:error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory經(jīng)網(wǎng)上查詢,這是linux的通病[root@localhost nginx]# sbin/nginx sbin/nginx: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory[root@localhost nginx]# error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory[root@localhost nginx]# whereis libpcre.so.1libpcre.so: /lib64/libpcre.so.0 /usr/local/lib/libpcre.so /usr/local/lib/libpcre.so.1[root@localhost nginx]# ln -s /usr/local/lib/libpcre.so.1 /lib64[root@localhost nginx]# sbin/nginx                              先找到libpcre.so.1所在位置,然后做個(gè)軟鏈接就可以了。查看是否已啟動(dòng):

通過瀏覽器訪問:

看到這個(gè)就說明nginx安裝并啟動(dòng)成功。

 

ps:

啟動(dòng):/usr/local/nginx/sbin/nginx停止/重新加載:/usr/local/nginx/sbin/nginx -s stop(quit、reload)驗(yàn)證配置文件是否合法:/usr/local/nginx/sbin/nginx -t命令幫助:/usr/local/nginx/sbin/nginx -h如果中途安裝失敗,就把 lib  lib64 nginx 目錄下所有文件刪除重新安裝
發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 本溪市| 偏关县| 长子县| 赫章县| 绥芬河市| 东城区| 马龙县| 丰都县| 五常市| 抚松县| 陇川县| 龙江县| 潜山县| 罗甸县| 铅山县| 张掖市| 黄冈市| 花莲市| 河间市| 宁波市| 呈贡县| 耒阳市| 秭归县| 武陟县| 建阳市| 大余县| 涿州市| 区。| 中宁县| 资兴市| 贵南县| 玉环县| 遂平县| 乌鲁木齐县| 轮台县| 沙湾县| 那曲县| 新蔡县| 麻城市| 柘城县| 赤水市|