摘要:
VMware虚拟机中的CentOS7安装Nginx后本机无法访问的解决办法 在虚拟机centos7上安装nginx之后虚拟机内能访问,真机不能访问,修改iptables配置也不起作用,最后上网查找了资料后才发现centos的防火墙改成了firewall,不再叫iptables,开放端口的方法如下: 阅读全文
posted @ 2018-05-06 16:21
伍声2016
阅读(112)
评论(0)
推荐(0)
摘要:
新建vi /lib/systemd/system/nginx.service在nginx.service文件 [Service]Type=forkingExecStart=/usr/local/nginx/sbin/nginxExecReload=/usr/local/nginx/sbin/ngin 阅读全文
posted @ 2018-05-06 13:42
伍声2016
阅读(216)
评论(0)
推荐(0)
摘要:
nginx下载地址:http://nginx.org/en/download.html 一、安装依赖软件 yum -y install gcc gcc-c++ autoconf automake make yum -y install zlib zlib-devel openssl openssl- 阅读全文
posted @ 2018-05-06 12:20
伍声2016
阅读(136)
评论(0)
推荐(0)

浙公网安备 33010602011771号