原文:虛擬機防火牆關了怎么端口還是不能訪問

今天虛擬機啟動時候發現網站不能訪問了,先在本地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