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

歡迎來到夢飛科技

服務器租用

當前優惠活動:

Linux系統下安裝nginx處事教程

nginx依賴一些軟件庫,在安裝之前請確保系統安裝了gcc、ssl、pcre和gzip等軟件,可以用rpm -q 呼吁查察軟件是否安裝。

[[email protected] ~]# rpm -q gcc
gcc-4.1.2-44.el5

依賴庫信息如下:

(1). gzip 模塊需要 zlib 庫 ( 下載: http://www.zlib.net/ )
(2). rewrite 模塊需要 pcre 庫 ( 下載: http://www.pcre.org/)
(3). ssl 成果需要 openssl 庫 ( 下載: http://www.openssl.org/)

如安裝pcre,下載pcre至目標目次下,這里選擇的版本是pcre-8.38,下載完后執行以下操縱

tar -zxvf pcre-8.38.tar.gz
cd pcre-8.38
./configure
make
make install

安裝nginx,執行如下呼吁

        在默認環境下,顛末編譯安裝的Nginx已經包括了大部門可用模塊,可以通過“./configure  --help”選項配置各個模塊的利用環境,譬喻對不需要的http_ssi模塊,可通過“--without-http_ssi_module”參數封鎖此模塊;假如需要“http_perl”模塊,則可以通過“--with-http_perl_module”參數安裝此模塊。執行以下操縱舉辦安裝。

tar -zxvf nginx-1.11.1.tar.gz
cd nginx-1.11.1
./configure --with-pcre=../pcre-8.38 --prefix=/usr/local/nginx
make
make install

檢測是否安裝樂成,執行呼吁如下

[[email protected] sbin]# cd /usr/local/nginx/sbin
[[email protected] sbin]# ./nginx -t
呈現如下信息證明安裝樂成
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
啟動nginx
[[email protected] sbin]# ./nginx
查察端口
[[email protected] sbin]# netstat -ntlp
功效如下:
Proto Recv-Q Send-Q Local Address     Foreign Address   State    PID/Program name
tcp        0      0 127.0.0.1:2208    0.0.0.0:*         LISTEN   2993/hpiod
tcp        0      0 0.0.0.0:834       0.0.0.0:*         LISTEN   2772/rpc.statd
tcp        0      0 0.0.0.0:11111     0.0.0.0:*         LISTEN   3391/ricci
tcp        0      0 0.0.0.0:111       0.0.0.0:*         LISTEN   2733/portmap
tcp        0      0 0.0.0.0:80        0.0.0.0:*         LISTEN   3852/nginx
tcp        0      0 0.0.0.0:16851     0.0.0.0:*         LISTEN   3290/modclusterd
tcp        0      0 127.0.0.1:631     0.0.0.0:*         LISTEN   3024/cupsd
tcp        0      0 127.0.0.1:25      0.0.0.0:*         LISTEN   3057/sendmail: acce
tcp        0      0 127.0.0.1:2207    0.0.0.0:*         LISTEN   2998/python
tcp        0      0 :::22             :::*              LISTEN   3013/sshd
也可以在欣賞器中輸入:http://localhost來驗證是否啟動樂成。

遏制nginx

遏制操縱是通過向nginx歷程發送信號來舉辦的

步調1:查詢nginx主歷程號:

ps -ef | grep nginx
在歷程列內外 面找master歷程,它的編號就是主歷程號了。

步調2:發送信號

從容遏制Nginx:kill -QUIT 主歷程號

快速遏制Nginx:kill -TERM 主歷程號

強制遏制Nginx:pkill -9 nginx

重啟nginx:滑膩重啟

        假如變動了設置就要重啟Nginx,要先封鎖Nginx再打開?不是的,可以向Nginx 發送信號,滑膩重啟。

滑膩重啟呼吁:
kill -HUP 住進稱謂或歷程號文件路徑   可能   /usr/local/nginx/sbin/nginx -s reload

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

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

主站蜘蛛池模板: 宜黄县| 仙居县| 锦州市| 栾川县| 黎平县| 龙陵县| 兴国县| 徐州市| 柯坪县| 金坛市| 广州市| 滨海县| 咸阳市| 临江市| 临高县| 望奎县| 璧山县| 绥芬河市| 达尔| 冀州市| 宁阳县| 铜梁县| 福海县| 基隆市| 红桥区| 托克逊县| 兴隆县| 航空| 民勤县| 龙井市| 泰州市| 容城县| 芒康县| 西畴县| 潞西市| 宜都市| 体育| 仪陇县| 敖汉旗| 独山县| 额尔古纳市|