最美情侣中文字幕电影,在线麻豆精品传媒,在线网站高清黄,久久黄色视频

歡迎光臨散文網(wǎng) 會(huì)員登陸 & 注冊(cè)

centos7 關(guān)于防火墻的常見(jiàn)錯(cuò)誤和處理

2022-06-03 00:38 作者:雪域小白鳩  | 我要投稿

1 systemctl daemon-reload

這個(gè)常在修改了某項(xiàng)服務(wù)的配置文件后,如果需要生效的話,系統(tǒng)主動(dòng)會(huì)提示你

舉個(gè)例子你修改了防火墻設(shè)置

此時(shí)你想systemctl start firewalld.service

或者systemctl stop?firewalld.service

此時(shí)系統(tǒng)就會(huì)提示

Warning:firewalld.service changed on disk. Run "systemctl?daemon-reload"

運(yùn)行systemctl?daemon-reload之后

就可以正常啟停服務(wù)了

當(dāng)然有時(shí)候會(huì)碰到unit firewalld.service is masked這種情況

這種就是服務(wù)被鎖定了

只需要輸入

systemctl unmask firewalld即可解鎖


2 關(guān)于iptables

iptables,是Linux下自帶的一款免費(fèi)的基于包過(guò)濾的防火墻工具

centos7中默認(rèn)的防火墻是firewalld,使用iptables需要先關(guān)閉firewalld防火墻

且需要關(guān)閉selinux,不關(guān)閉時(shí),iptables不讀取配置文件

安裝iptables用

yum -y install iptables-services

就可以了

臨時(shí)關(guān)閉selinux使用

cetenforce 0

永久關(guān)閉selinux需要

vim /etc/sysconfig/selinux

將里面的SELINUX=enforcing更改為SELINUX=disabled



iptables的常用命令是

systemctl start iptables #啟動(dòng)

systemctl status?iptables #查看狀態(tài)

systemctl enable?iptables #設(shè)置開(kāi)機(jī)啟動(dòng)

iptables -h #獲取幫助

iptables -L #查看當(dāng)前規(guī)則

iptables -F #清除所有規(guī)則

防火墻常用命令是

systemctl start firewalld.service #啟動(dòng)

systemctl status firewalld.service #防火墻狀態(tài)

systemctl disable?firewalld.service #開(kāi)機(jī)禁用防火墻

systemctl stop?firewalld.service #停用防火墻

systemctl enable?firewalld.service #開(kāi)機(jī)啟動(dòng)防火墻


centos7 關(guān)于防火墻的常見(jiàn)錯(cuò)誤和處理的評(píng)論 (共 條)

分享到微博請(qǐng)遵守國(guó)家法律
勐海县| 喀什市| 大厂| 营山县| 潞城市| 余干县| 阿克| 蒙山县| 开鲁县| 沾化县| 衡南县| 舞阳县| 手机| 奇台县| 财经| 明溪县| 清新县| 湖南省| 巴南区| 梧州市| 永川市| 固原市| 宜阳县| 东乡县| 静乐县| 原阳县| 沾益县| 武陟县| 莎车县| 桐庐县| 通海县| 古交市| 原阳县| 濮阳市| 荃湾区| 米泉市| 马边| 昭苏县| 青河县| 车致| 金塔县|