我认为这是放置此内容的正确位置,而不是放在 StackOverflow 中
不管怎样,我们都有一个 CentOS 6.6 服务器。SElinux 不允许我们启用 httpd_can_sendmail
我试过这个....
sudo setsebool -P httpd_can_sendmail on
Run Code Online (Sandbox Code Playgroud)
然后我得到这个
/usr/sbin/getsebool httpd_can_sendmail
httpd_can_sendmail --> off
Run Code Online (Sandbox Code Playgroud)
我也尝试过这个
sudo setsebool -P httpd_can_sendmail 1
sudo setsebool -P httpd_can_sendmail true
sudo setsebool -P httpd_can_sendmail on
Run Code Online (Sandbox Code Playgroud)