Unit firewalld.service could not be found.
1、問題描述
當(dāng)我們使用如下指令查看當(dāng)前Ubuntu防火墻狀態(tài)時(shí):
systemctl status firewalld
會(huì)報(bào)一個(gè)這樣的錯(cuò)誤:
說明防火墻沒有安裝,需要安裝!
2、安裝防火墻
yum install firewalld firewall-config
注意: 使用yum安裝可能報(bào)錯(cuò)(未安裝yum),可參考Ubuntu 安裝使用yum,好像不需要yum。
直接使用apt-get安裝,不過要改代碼:
sudo apt-get install firewalld firewall-config
3、防火墻狀態(tài)
查看防火墻狀態(tài):
systemctl status firewalld
關(guān)閉防火墻(暫時(shí)),系統(tǒng)重新啟動(dòng)后,防火墻將重新打開:
systemctl stop firewalld
關(guān)閉防火墻(永久),系統(tǒng)重新啟動(dòng)后,防火墻將依然關(guān)閉:
systemctl disable firewalld
重啟防火墻:文章來源:http://www.zghlxwxcb.cn/news/detail-590049.html
systemctl restart firewalld
文章來源地址http://www.zghlxwxcb.cn/news/detail-590049.html
到了這里,關(guān)于Unit firewalld.service could not be found.的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!