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

首頁 > 網站 > Nginx > 正文

Centos 6.5 64位中Nginx詳細安裝部署教程

2024-08-30 12:25:25
字體:
來源:轉載
供稿:網友

一、Nginx簡介

Nginx是一個web服務器也可以用來做負載均衡及反向代理使用,目前使用最多的就是負載均衡,具體簡介我就不介紹了百度一下有很多,下面直接進入安裝步驟

二、Nginx安裝

1、下載Nginx及相關組件

Linux系統是Centos 6.5 64位,我直接切換到root用戶下安裝

進入用戶目錄下載程序

下載相關組件

[root@localhost src]# wget http://nginx.org/download/nginx-1.10.2.tar.gz省略安裝內容...[root@localhost src]# wget http://www.openssl.org/source/openssl-fips-2.0.10.tar.gz省略安裝內容...[root@localhost src]# wget http://zlib.net/zlib-1.2.11.tar.gz省略安裝內容...[root@localhost src]# wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.40.tar.gz省略安裝內容...

安裝c++編譯環境,如已安裝可略過

[root@localhost src]# yum install gcc-c++省略安裝內容...期間會有確認提示輸入y回車Is this ok [y/N]:y省略安裝內容...

2、安裝Nginx及相關組件

openssl安裝

[root@localhost src]# tar zxvf openssl-fips-2.0.10.tar.gz省略安裝內容...[root@localhost src]# cd openssl-fips-2.0.10[root@localhost openssl-fips-2.0.10]# ./config && make && make install省略安裝內容...

pcre安裝

[root@localhost src]# tar zxvf pcre-8.40.tar.gz省略安裝內容...[root@localhost src]# cd pcre-8.40[root@localhost pcre-8.40]# ./configure && make && make install省略安裝內容...

zlib安裝

[root@localhost src]# tar zxvf zlib-1.2.11.tar.gz省略安裝內容...[root@localhost src]# cd zlib-1.2.11[root@localhost zlib-1.2.11]# ./configure && make && make install省略安裝內容...

nginx安裝

[root@localhost src]# tar zxvf nginx-1.10.2.tar.gz省略安裝內容...[root@localhost src]# cd nginx-1.10.2[root@localhost nginx-1.10.2]# ./configure && make && make install省略安裝內容...

3、啟動Nginx

先找一下nginx安裝到什么位置上了

 

進入nginx目錄并啟動

報錯了,error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory,按照下面方式解決

1.用whereis libpcre.so.1命令找到libpcre.so.1在哪里2.用ln -s /usr/local/lib/libpcre.so.1 /lib64命令做個軟連接就可以了3.用sbin/nginx啟動Nginx4.用ps -aux | grep nginx查看狀態[root@localhost nginx]# whereis libpcre.so.1[root@localhost nginx]# ln -s /usr/local/lib/libpcre.so.1 /lib64[root@localhost nginx]# sbin/nginx[root@localhost nginx]# ps -aux | grep nginx            
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 绥滨县| 策勒县| 新晃| 肥城市| 民权县| 肃南| 神池县| 灌阳县| 大姚县| 榆林市| 柳州市| 会昌县| 邛崃市| 二连浩特市| 昌都县| 土默特右旗| 梁河县| 松桃| 丹寨县| 仙桃市| 泸州市| 西峡县| 沙洋县| 渝北区| 南昌市| 兴城市| 塘沽区| 新津县| 辛集市| 兴化市| 凭祥市| 平泉县| 武城县| 吉木乃县| 闸北区| 永和县| 大石桥市| 西贡区| 剑河县| 山阴县| 桂平市|