校园春色亚洲色图_亚洲视频分类_中文字幕精品一区二区精品_麻豆一区区三区四区产品精品蜜桃

主頁 > 知識庫 > centos7編譯安裝nginx的方法步驟

centos7編譯安裝nginx的方法步驟

熱門標(biāo)簽:如何分析地圖標(biāo)注 新余高德地圖標(biāo)注怎么修改 電銷機(jī)器人價(jià)值 大連400電話如何申請 外呼系統(tǒng)坐席費(fèi)計(jì)入會計(jì)哪個(gè)科目 電銷機(jī)器人怎么接線路 撫順地圖標(biāo)注 高德地圖標(biāo)注好做嗎 達(dá)亞電銷機(jī)器人官網(wǎng)

安裝nginx編譯所需的lib庫

yum -y install make zlib zlib-devel gcc-c++ libtool openssl openssl-devel
yum -y install pcre pcre-devel

查看pcre(正則庫)版本

pcre-config --version

進(jìn)入編譯目錄

cd /usr/local/src

從官網(wǎng)下載最新的nginx(stable version穩(wěn)定版)

wget http://nginx.org/download/nginx-1.14.0.tar.gz

解壓nginx壓縮包

tar -zxvf nginx-1.14.0.tar.gz

進(jìn)入解壓目錄

cd nginx-1.14.0

運(yùn)行配置腳本(--prefix參數(shù)指定nginx安裝的目錄,默認(rèn)安裝在/usr/local/nginx )

./configure --prefix=/usr/local/nginx

編譯安裝nginx

make && make install

將nginx執(zhí)行命令軟鏈接到/usr/bin

ln -s /usr/local/nginx/sbin/nginx /usr/bin

啟動nginx

nginx

設(shè)置開機(jī)自啟動

echo "/usr/local/nginx/sbin/nginx" >> /etc/rc.d/rc.local
chmod +x /etc/rc.d/rc.local

以上就是整個(gè)安裝過程...

執(zhí)行nginx -h查看相關(guān)命令

[root@localhost ~]# nginx -h
nginx version: nginx/1.14.0
Usage: nginx [-?hvVtTq] [-s signal] [-c filename] [-p prefix] [-g directives]

Options:
 -?,-h     : this help
 -v      : show version and exit
 -V      : show version and configure options then exit
 -t      : test configuration and exit
 -T      : test configuration, dump it and exit
 -q      : suppress non-error messages during configuration testing
 -s signal   : send signal to a master process: stop, quit, reopen, reload
 -p prefix   : set prefix path (default: /usr/local/nginx/)
 -c filename  : set configuration file (default: conf/nginx.conf)
 -g directives : set global directives out of configuration file

查看nginx安裝目錄

whereis nginx

以上就是本文的全部內(nèi)容,希望對大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。

標(biāo)簽:南通 衡水 海東 黃石 遼源 新鄉(xiāng) 楊凌 湖南

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《centos7編譯安裝nginx的方法步驟》,本文關(guān)鍵詞  centos7,編譯,安裝,nginx,的,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《centos7編譯安裝nginx的方法步驟》相關(guān)的同類信息!
  • 本頁收集關(guān)于centos7編譯安裝nginx的方法步驟的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章
    主站蜘蛛池模板: 双城市| 新乡市| 任丘市| 平谷区| 海安县| 紫金县| 五峰| 内江市| 陵川县| 平遥县| 青田县| 罗平县| 玛纳斯县| 吴江市| 容城县| 宁乡县| 和静县| 钟祥市| 清远市| 安新县| 闸北区| 武城县| 长子县| 北辰区| 鄂托克前旗| 西和县| 霍州市| 鲁山县| 宁强县| 金塔县| 贵溪市| 东港市| 陈巴尔虎旗| 宁陵县| 措勤县| 茌平县| 广东省| 河东区| 凤城市| 韶关市| 岳池县|