加入收藏 | 设为首页 | 会员中心 | 我要投稿 莱芜站长网 (https://www.0634zz.com/)- 云连接、建站、智能边缘云、设备管理、大数据!
当前位置: 首页 > 综合聚焦 > CentOS > 正文

CentOS6.5安装nginx

发布时间:2020-07-16 06:14:48 所属栏目:CentOS 来源:互联网
导读:命令集合如下 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

(编辑:莱芜站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读