初期環(huán)境準(zhǔn)備
防火墻
臨時(shí)關(guān)閉防火墻
systemctl stop firewalld
永久關(guān)閉防火墻
systemctl disable firewalld
查看防火墻狀態(tài)
systemctl status firewalld
關(guān)閉selinux
臨時(shí)關(guān)閉selinux,立即生效,不需要重啟服務(wù)器。
setenforce 0
永久關(guān)閉selinux,修改完配置后需要重啟服務(wù)器才能生效。
vi /etc/selinux/config
修改enable 為disabled,并保存該文件。

image2021-10-11_16-57-24.png