nginx瀹夎
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了nginx瀹夎相关的知识,希望对你有一定的参考价值。
鏍囩锛?a href='http://www.mamicode.com/so/1/nbsp' title='nbsp'>nbsp
root configure 瀹夊叏 淇℃伅 杩涘叆 down 浣跨敤 bin瀹夎鍑嗗宸ヤ綔锛?br>yum -y install gcc gcc-c++ pcre pcre-devel zlib zlib-devel openssl openssl-devel
1.绯荤粺锛歝entos锛堟湰娆′娇鐢級
2.Gcc锛歽um -y install gcc gcc-c++锛堢紪璇慶/c++鐨勭紪璇戝櫒锛?br>3.pcre锛歽um -y install pcre pcre-devel锛堟鍒欎娇鐢ㄧ殑搴擄級
4.zlib锛歽um -y install zlib zlib-devel锛坣ginx.conf閰?缃甮zip on锛氬皢HTTP鐩稿簲鐨勪俊鎭繘琛実zip鍘嬬缉锛?br>5.OpenSSl:yum -y install OPenssl openssl-devel 锛堜紶杈撳畨鍏ㄩ€氶亾锛?br>6.涓嬭浇nginx婧愮爜鍖咃細http锛?/nginx.org/en/download.html
1.涓婁紶婧愮爜鍖?瀹夎浼犺緭鍒板畨瑁呯洰褰?濡倁sr/src
tar -zxvf nginx-1.15.3.tar.gz
2杩涘叆鐩綍
cd nginx-1.15.3
3.瀹夎鍒?usr/local/nginx鐩綍 鐢ㄦ埛nginx 鍒嗙粍nginx 妯″潡浣跨敤nginx --with-http_stub_status_module
./configure --prefix=/usr/local/nginx --user=nginx --group=nginx --with-http_stub_status_module && make && make install
4.涓嶈鑷姩寤虹珛鐢ㄦ埛鐧婚檰鐩綍,鎸囧畾鐢ㄦ埛鐧诲綍浣跨敤nginx
useradd -M -s /sbin/nologin nginx
5.涓虹敤鎴峰垱寤鸿蒋杩炴帴鏂囦欢
ln -s /usr/local/nginx/sbin/nginx /usr/local/sbin/
6.妫€娴媙ginx鏄惁鎴愬姛
nginx -t
7.鍚姩nginx
/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
8.妫€娴媙ginx鏄惁瀹夎鎴愬姛
netstat -anpt | grep nginx
[[email protected] ~]# killall -1 nginx銆€銆€ //骞虫粦閲嶅惎 nginx (reload)
[[email protected] ~]# killall -s HUP nginx 銆€銆€//骞虫粦閲嶅惎 nginx (reload)
[[email protected] ~]# killall -3 nginx 銆€銆€//姝e父鍋滄nginx (stop)
[[email protected] ~]# killall -s QUIT nginx 銆€銆€//姝e父鍋滄nginx (stop)
[[email protected] ~]# killall -s USR1 nginx銆€銆€ //鐢ㄤ簬nginx鐨勬棩蹇楀垏鎹紝涔熷氨鏄噸鏂版墦寮€涓€涓棩蹇楁枃浠讹紝渚嬪姣忓ぉ瑕佺敓鎴愪竴涓棩蹇楁枃浠舵椂锛屽彲浠ヤ娇鐢ㄨ繖涓俊鍙锋潵鎺у埗
[[email protected] ~]# killall -s USR2 nginx 銆€銆€//鐢ㄤ簬骞虫粦鍗囩骇鍙墽琛岀▼搴?br>[[email protected] ~]# nginx -s reload
[[email protected] ~]# nginx -s stop
以上是关于nginx瀹夎的主要内容,如果未能解决你的问题,请参考以下文章
python 瀹夎pytorch 鍙?瀹夎澶辫触瑙e喅鍔炴硶