centos??????Nginx1.9.9

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了centos??????Nginx1.9.9相关的知识,希望对你有一定的参考价值。

?????????strong   ??????   info   gcc   src   ??????   module   c++   ??????   

???????????????centos????????????????????????yum??????????????????????????????????????????????????????????????????????????????VMware??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

????????????Nginx

????????????nginx????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????

http://nginx.org/download/

????????????

????????????????????????????????????????????????????????????????????????????????????

????????????

??????wget??????

wget http://nginx.org/download/nginx-1.9.9.tar.gz

????????????Nginx

???????????????????????????

tar -xzvf nginx-1.9.9.tar.gz

????????????Nginx

?????????nginx-1.9.9????????????????????????

yum -y install make zlib zlib-devel gcc-c++ libtool  openssl openssl-devel

./configure --prefix=/usr/local/nginx --with-http_ssl_module --with-http_v2_module --with-http_stub_status_module --with-pcre

make && make install

???????????????????????????????????????

/usr/local/nginx/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

cd /usr/local/nginx/sbin
??????./nginx

??????????????????????????????

curl http://localhost

????????????

??????Nginx????????????

?????????./nginx
?????????./nginx -s stop
?????????./nginx -s reopen
??????./nginx -h ?????????????????????????????????

 

以上是关于centos??????Nginx1.9.9的主要内容,如果未能解决你的问题,请参考以下文章

使用Nginx1.9.9+Keepalived1.2.x搭建高可用负载均衡集群

centos下wordpress安装主题后创建文章的特×××片无法显示

denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock.......(代码片

denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock.......(代码片

Centos-内核核心组成

centos8的文件高级选项