微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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.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

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。