系统:
Distributor ID: Ubuntu
Description: Ubuntu 18.04.1 LTS
Release: 18.04
Codename: bionic
通常,以下内容一直对我有用
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get install -y build-essential
sudo apt-get install -y libapache2-mod-proxy-html libxml2-dev
sudo a2enmod proxy
sudo a2enmod proxy_http
sudo apt-get install policycoreutils
//Open the file /etc/selinux/config
//Change option SELINUX from disabled to enforcing
//Restart the machine
CMD LINE THE FOLLOWING
$/usr/sbin/setsebool -P httpd_can_network_connect 1
由于某种原因,它现在无法正常工作,并且出现错误: “ setsebool:SELinux已禁用。”错误
欢迎任何见识,谢谢。