欧美一区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-2021 MFISP.COM. 國外vps服務器租用 夢飛云服務器租用 版權所有 ? 粵ICP備11019662號

主站蜘蛛池模板: 郴州市| 临夏县| 章丘市| 黄平县| 应城市| 津南区| 娄烦县| 吉木萨尔县| 亚东县| 武山县| 凤城市| 通州区| 萨嘎县| 无为县| 两当县| 龙门县| 塔河县| 纳雍县| 泰安市| 辽宁省| 南漳县| 乐东| 宁化县| 堆龙德庆县| 福鼎市| 新野县| 竹北市| 盘山县| 余姚市| 岑巩县| 大厂| 铁岭县| 杭锦后旗| 贵州省| 雅江县| 屯昌县| 济阳县| 乾安县| 桃园县| 小金县| 郎溪县|