原文:虚拟机防火墙关了怎么端口还是不能访问

今天虚拟机启动时候发现网站不能访问了,先在本地ping了下地址,发现是可以ping通的 然后telnet下 端口,发现进不去。 然后在虚拟机上面启动apache,发现不能访问,AH : Error retrieving pid file logs httpd.pid 错误,百度下才知道原来是httpd.pid 文件时空的apache不能访问,然后写点东西进去后,发现正常了。 ...

2018-08-15 09:53 0 2749 推荐指数:

查看详情

centos7虚拟机防火墙开启端口

虚拟机开启5005端口,系统内部是显示开了的,但是外部不能访问端口。 一些需要用到的命令: 1、firewalld的基本使用启动: systemctl start firewalld 查看状态: systemctl status firewalld / firewall-cmd ...

Mon May 25 23:26:00 CST 2020 0 1434
centos7虚拟机防火墙开启80端口

虚拟机开启80端口 1、firewalld的基本使用启动: systemctl start firewalld 查看状态: systemctl status firewalld / firewall-cmd --state 这个命令也可以,只是信息会简单点 停止: systemctl ...

Wed Sep 23 00:00:00 CST 2020 0 896
虚拟机防火墙的相关设置

安装iptables-servicesyum install iptables-services启动iptablessystemctl enable iptablessystemctl start iptables查看、打开、关闭防火墙查看防火墙状态 service iptables status ...

Sat Aug 10 18:22:00 CST 2019 0 1518
主机与虚拟机互访——修改虚拟机防火墙

CentOS 7.0默认使用的是firewall作为防火墙,这里改为iptables防火墙。1、关闭firewall:systemctl stop firewalld.servicesystemctl disable firewalld.servicesystemctl mask ...

Mon May 15 05:29:00 CST 2017 0 2790
Linux防火墙授权访问端口

centos6或更老的版本防火墙授权访问端口通过修改 /etc/sysconfig/iptables 配置文件的内容(命令有点复杂,反正我是记不住,直接在原有的配置文件中cv了)。启用INPUT,关闭OUTPUT或者直接删除整行,添加后记得重启防火墙:systemctl reload ...

Wed Jul 22 00:57:00 CST 2020 0 487
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM