1. 程式人生 > >linux centos7.5 防火牆 關閉不了的坑

linux centos7.5 防火牆 關閉不了的坑

1. 現象: linux cenos7.5 防火牆已經關閉了,但是應用還是無法訪問

2.防火牆的基本操作

firewall-cmd --state 檢視防火牆狀態

firewall-cmd --reload #重啟firewall

systemctl stop firewalld.service #停止firewall

systemctl disable firewalld.service #禁止firewall開機啟動

firewall-cmd --zone=public --add-port=3306/tcp --permanent

firewall-cmd --zone=public --add-port=83/tcp --permanent

firewall-cmd --zone=public --add-port=89/tcp --permanent

firewall-cmd --reload

檢視防火牆狀態firewall-cmd --state

3. 檢視iptables的狀態

 systemctl status iptables

總結:cenos 7.5 中無意間安裝了兩個防火牆,其中一個沒有關閉,導致應用無法訪問,關閉兩個防火牆或者加入埠允許介面

相關推薦

linux centos7.5 防火牆 關閉

1. 現象: linux cenos7.5 防火牆已經關閉了,但是應用還是無法訪問 2.防火牆的基本操作 firewall-cmd --state 檢視防火牆狀態 firewall-cmd --reload #重啟firewall systemctl stop fir

Linux Centos7.5 安裝FastDFS以及遇到的

目錄: 附:Linux Centos7.5安裝FastDFS所需軟體 準備工作 1、安裝編譯工具及庫檔案 2、上傳所需檔案到linux虛擬機器上 3、安裝FastDFS  4、測試: 5、安裝nginx 6、FastDFS與Nginx整合  特別注意: 最

mysqld_multi關閉MySQL處理Tips

使用 user mil 127.0.0.1 font /tmp option def 處理 在啟用MySQL多實例中,很多環境會選擇使用mysqld_multi管理多實例,但不幸的是從MySQL 5.6 後,mysqld_mutli不能把MySQL關掉了。 對於這個問

Linux系統xinetd服務啟動

ftp服務 安裝 png linux strong 技術 tar str 發現 xinetd服務時發現xinetd服務啟動不了,並出現錯誤提示xinetd:unrecognized service,當出現這個錯誤提示的時候說明系統未安裝xinetd包 解決方法

Linux Centos7.5 檢視IP地址( 最小化系統安裝 )

ps:        Linux Centos7.5 最小化系統預設是把網絡卡給沒開啟,所以檢視不了ip地址。而且無法使用ifconfig命令,會提示命令找不到。  1、進入網絡卡的配置檔案,進行修改。 首先

Linux Centos7.5 安裝MySQL5.7

1、下載MySQL5.7 wget https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm 2、安裝mysql57-community-release-el7-11.noarch.rpm的rpm檔案,並且

Linux Centos7.5 安裝Zookeeper

附:Linux Centos7.5 安裝配置Oracle jdk1.8,親測成功 1、下載zookeeper安裝包 wget https://www-us.apache.org/dist/zookeeper/zookeeper-3.4.10/zookeeper-3.4.10.tar.gz

Linux Centos7.5 安裝FastDFS

前言: 附:Linux Centos7.5安裝FastDFS所需軟體 一、準備工作 1、安裝gcc 2、上傳所需檔案到linux虛擬機器上 3、安裝FastDFS  4、測試: 5、安裝nginx  6、FastDFS與Nginx整合 

Linux Centos7.5 locate全域性搜尋檔案所在路徑

前言:      locate命令其實是find -name的另一種寫法,但是要比後者快得多,原因在於它不搜尋具體目錄,而是搜尋一個數據庫/var/lib/locatedb,這個資料庫中含有本地所有檔案資訊。Linux系統自動建立這個資料庫,並且每天自

Linux CentOS7 設定防火牆使apache及mysql可以被外部訪問

1、關閉firewall # systemctl stop firewalld.service 2、禁止firewall開機啟動 # systemctl disable firewalld.service 3、安裝iptables防火牆 # yum install -

linux 下 su - oracle 切換

之前在華為雲上買了一臺虛擬機器,在上面搭建好了oracle資料庫,但是一直沒用,今天突然想起來用一下,登上去發現一個詭異的現象,su - oracle切換不進去 [[email protected] ~]# pwd /root [[email protected] ~]

Linux centos7.5 安裝JDK1.8和Tomcat9以及redis5

           Linux centos7.5安裝JDK1.8和Tomcat9以及redis5 Linux的學習階段防火牆記得全程關閉的哈 檢視防火牆狀態 [[email protected] ~]# systemc

linux centos7 firewalld防火牆

防火牆的相關操作: 啟動:systemctl start firewalld 檢視狀態:systemctl status firewalld  停止: systemctl disable firewalld 禁用: systemctl stop firewalld

Linux Centos7.5從docker的安裝到容器的部署執行

環境:   Win10 內的 VMware workstation(Centos7 64位)   所有命令皆為 root 使用者, 非 root 使用者應在命令前加 sudo   檢視系統版本命令: cat /etc/redhat-release   安裝Docker

Linux (CentOS7.5)安裝

#更新映象源 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup wget -O /etc/yum

【軟體安裝】Linux Centos7.5 安裝Redis4.0 及遠端訪問

1、下載redis wget http://download.redis.io/releases/redis-4.0.11.tar.gz 2、 解壓 tar -zxvf redis-4.0.11.tar.gz  3、進入redis-4.0.11目錄 cd r

解決CentOS7安裝後上外網以及固定系統ip地址

1.使用“su”命令進入root許可權; 2.使用“cd /etc/sysconfig/network-scripts”進入network-scripts目錄中; 3.在目錄中可以看見有一個“ifcfg-ens33”檔案; 前三步如圖所示: 4.使用"ge

關於Hibernate5.0、5.1、5.2、5.3下載的解決辦法

突然發現下載Hibernate,下載不了,可能是天國的和諧太厲害了,直接下載不了~從下圖中體驗一下: 1.搜尋hibernate,進入官網:http://hibernate.org/ 2.看到Hibernate ORM,點選右下角的More或-> 3.看到右上角的Latest s

突然之間linux很多命令都用

下午安裝pig的時候,source了一下profile配置,突然就出現這種情況。 經過各方面查詢最終確定是配置檔案中的對新軟體的錯誤配置把原來path的所有可執行的程式都給幹掉了, 解決辦法: 先用:

【Docker】解決CentOS7安裝docker 啟動

前言     在k8s的系列學習中,需要使用docker的環境,在安裝docker的過程中遇到的一些問題在這裡分享一下。通過查詢資料發現之前的文章解決不了,後來讓華玫妹妹給我指點了一下,思路是沒問題的