$ yum install pcre pcre-devel
$ yum install zlib zlib-devel
$ yum install openssl openssl-devel --setopt=protected_multilib=false
yum update openssl openssl-devel --setopt=protected_multilib=false

# chmod 777 /etc/nginx/
# chmod 777 /var/run
# chmod -R 777 /var/cache/nginx
# chmod -R 777 /var/log/nginx/


$ mkdir -p /etc/nginx/ngx
$ cp ngx/nginx.node.interface.conf /etc/nginx/ngx
$ nginx -t -c ngx/nginx.node.interface.conf
nginx: the configuration file /etc/nginx/ngx/nginx.node.interface.conf syntax is ok
nginx: configuration file /etc/nginx/ngx/nginx.node.interface.conf test is successful
$ nginx -c ngx/nginx.node.interface.conf

$ netstat -apn|grep LISTEN|grep 5000
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 0.0.0.0:5000 0.0.0.0:* LISTEN 16089/nginx: master

$ nginx -s reload -c ngx/nginx.node.interface.conf

--备注

nginx-1.10.3-1.el7.ngx.x86_64.rpm

标签智能推荐:

网工考试——Linux

 linux命令:linux配置:DHCP服务器配置  

CentOS开机流程详解

一、Linux开机流程: 

Linux学习日记

Linux之单引号''、双引号""、反引号

linux下svn与apache整合搭建

linux下svn与apache整合搭建

LInux操作系统

LInux操作系统1.Linux前期知识2.Linux操作系统的安装和基本命令以及核心知识3.Linux基础补充知识4.Hadoop⼊⻔

IP Command——net-tools vs iproute2

https://linux.cn/article-3144-1.html

Linux下CentOS 7手动部署LNMP环境

Linux下CentOS7手动部署LNMP环境

软件包管理

linux教你分分钟搞定Linux下yum源配置https://zhuanlan.zhihu.com/p/71906253

vmware 导入 virtualbox导出的ova文件报错解决

报错:CapacitymismatchfordiskD:\software\VirtualMatchine\linux(2)\linux(2)-disk2.vmdk.解决方案: