首页 CentOS CentOS6.5安装nginx

CentOS6.5安装nginx

命令集合如下 yum –y install prce*yum –y install openssl*yum install zlib* Go to website http://nginx.org/en/download.html to find the latest version download url: http://nginx.org/download/nginx-1.10.1.ta

命令集合如下

yum –y install prce*
yum –y install openssl*
yum install zlib*

Go to website http://nginx.org/en/download.html to find the latest version download url:
http://nginx.org/download/nginx-1.10.1.tar.gz

mkdir /usr/nginx/
cd /usr/nginx/
wget http://nginx.org/download/nginx-1.10.1.tar.gz
tar -zxvf nginx-1.10.1.tar.gz
cd nginx-1.10.1
./configure --prefix=/usr/local/nginx-1.10.1 --with-http_ssl_module --with-http_spdy_module --with-http_stub_status_module --with-pcre
make
make install

Some nginx command

#Start nginx
/usr/local/nginx-1.10.1/sbin/nginx
#Stop nginx
/usr/local/nginx-1.10.1/sbin/nginx –s stop
#Reload nginx
/usr/local/nginx-1.10.1/sbin/nginx –s reload

本文来自网络,不代表青岛站长网立场。转载请注明出处: https://www.0532zz.com/html/zhonghe/fwq/centos/20200715/6009.html
上一篇
下一篇

作者: dawei

【声明】:青岛站长网内容转载自互联网,其相关言论仅代表作者个人观点绝非权威,不代表本站立场。如您发现内容存在版权问题,请提交相关链接至邮箱:bqsm@foxmail.com,我们将及时予以处理。

为您推荐

返回顶部