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

歡迎來到夢飛科技

服務(wù)器租用

當前優(yōu)惠活動:

ubuntu系統(tǒng)安裝nginx進程記錄

Nginx是一個高機能的HTTP和反向署理處事器.

Nginx 利用 Unix 下常用的 './configure && make && make install' 進程來編譯安裝.

configure 劇本確定系統(tǒng)所具有一些特性,出格是 nginx 用來處理懲罰毗連的要領(lǐng)。然后,它建設(shè) Makefile 文件。

官網(wǎng):http://nginx.org/
下載頁面:http://nginx.org/download/nginx-1.2.6.tar.gz
1、模塊依賴性
gzip 模塊需要 zlib 庫
rewrite 模塊需要 pcre 庫
ssl 成果需要 openssl 庫
預先編譯好的安裝
sudo apt-get install libpcre3 libpcre3-dev libpcrecpp0 libssl-dev zlib1g-dev

 

2、nginx的籌備事情
下載nginx-1.2.6.tar.gz包到你指定的目次下后,解壓:
tar zxvf nginx-1.2.6.tar.gz
解壓后在當前目次下會生成一個nginx-1.2.6的目次
進入解壓后的目次,運行configure呼吁,
 ./configure --prefix=/usr/local/nginx
這時會報出一個如下錯誤:
./configure: error: the HTTP rewrite module requires the PCRE library.
You can either disable the module by using --without-http_rewrite_module
option, or install the PCRE library into the system, or build the PCRE library
statically from the source with nginx by using --with-pcre= option.
這是因為沒有PCRE library的原因所致,新加坡電信服務(wù)器 馬來西亞服務(wù)器,通過下面的呼吁安裝相關(guān)的lib即可辦理


3、PCRE庫的安裝:
官網(wǎng):http://www.pcre.org/
下載頁面:ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/
選擇最新版本下載:ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.10.tar.gz
1)解壓:
tar –zxvf pcre-8.10.tar.gz
解壓目次為:pcre-8.10
然后進入到 cd pcre-8.10,舉辦設(shè)置、編譯、安裝
2)設(shè)置
./configure  --prefix=/usr/local/pcre
3)編譯pcre
make
make pcre時會墮落
libtool: compile: unrecognized option `-DHAVE_CONFIG_H'
libtool: compile: Try `libtool --help' for more information.
make[1]: *** [pcrecpp.lo] Error 1
make[1]: Leaving directory `/home/mfcai/pcre-8.10'
make: *** [all] Error 2
安裝build-essential
apt-get install build-essential
4)安裝pcre
make install

4、nginx的安裝
1)設(shè)置
./configure --prefix=/usr/local/nginx  --with-pcre=/usr/local/pcre/
留意:此處而不是安裝的路徑,應(yīng)該是pcre源文件的路徑
正確的呼吁是:
./configure --prefix=/usr/local/nginx  --with-pcre=/usr/local/src/pcre-8.10
2)編譯
make
3)安裝
make install

 

Nginx會被安裝在/usr/local/nginx目次下(也可以利用參數(shù)--prefix=指定本身需要的位置),
安裝樂成后 /usr/local/nginx 目次下有四個子目次別離是:conf、html、logs、sbin 。
個中 Nginx 的設(shè)置文件存放于 conf/nginx.conf,
bin文件是位于 sbin 目次下的 nginx 文件。
確保系統(tǒng)的 80 端口沒被其他措施占用,運行 sbin/nginx 呼吁來啟動 Nginx,
打開欣賞器會見此呆板的 IP,假如欣賞器呈現(xiàn) Welcome to nginx! 則暗示 Nginx 已經(jīng)安裝并運行樂成

 

夢飛科技 - 全球數(shù)據(jù)中心基礎(chǔ)服務(wù)領(lǐng)先供應(yīng)商

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

主站蜘蛛池模板: 漳浦县| 嘉义县| 叙永县| 衡阳市| 山东| 外汇| 崇文区| 精河县| 胶州市| 武强县| 比如县| 建德市| 平凉市| 慈溪市| 来宾市| 宣化县| 内黄县| 秀山| 南汇区| 镇康县| 泸定县| 承德市| 平定县| 故城县| 东乌珠穆沁旗| 明光市| 上高县| 盐城市| 兴化市| 澎湖县| 和硕县| 福贡县| 汉中市| 华宁县| 翁源县| 福州市| 铁岭市| 海口市| 乌拉特中旗| 克什克腾旗| 沾益县|