## 上下文环境值
查看
ls -Z [file/directory]
修改
1. chcon -t -R [fcontext] [file/directory]
2. semanage fcontext -a -t [fcontext] [file/directory]
restorecon -Rv [file/directory]
## 端口
semanage port -a -t [fcontext] -p tcp/udp [port]
## 布尔值
查看
getsebool -a | grep [service]
修改
setsebool -P
- Linux Server
- 实用命令
- services
- Samba
- /etc/samba/smb.conf
- NFS
- Http
- httpd.conf
- lamp
- FTP
- /etc/vsftpd/vsftpd.conf
- ftp实例
- iSCSI
- SElinux
- DNS
- master
- slave
- subdomain
- 相关配置文件
- /etc/hosts
- /etc/resolv.conf
- /etc/named.conf
- /var/named/named.ca
- /var/named/named.localhost&named.loopback
- DHCP
- /etc/dhcp/dhcpd.conf
- mysql
- Redis
- Git
- HAProxy
- haproxy
- openssl
- nodejs