selinux cmd operate
2020-9-3 admin linux
Section 1
$chown –R apache:apache $owncloud_path
$chmod –R 777 $owncloud_path
$setsebool -P httpd_unified 1
$setsebool -P httpd_execmem 1
semanage boolean -l
restorecon -R /home/share
Section 2 SELinux labels Types to network Ports, so it's impossible to start a Service with a port that Type is not configured.
semanage port -l
semanage port -l | grep -E -w "80|443"
semanage port -a -t http_port_t -p tcp 82
semanage port -l | grep "^http_port_t"
ss -napt | grep httpd
Section 3
Section paragraph 1
etc.
标签: selinux
2022-01-20 11:28
a.进入: vim /etc/sysctl.conf
b.添加:net.core.somaxconn=2048 该参数默认为128,根据实际场景调大
c. 执行 sysctl -p 命令
d.(可选) 查看 sysctl -a |grep somaxconn
————————————————
版权声明:本文为CSDN博主「binks_」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/binks_/article/details/80981324