1 修改文件context
chcon restorecon semange fcontext -l
2 semanage port -l
3 semanage boolean -l
setseboot -P ftpd_anon_write=1
4 vim /etc/selinux/config
setenforce 0|1 getenforce
awk '{for(i=1;i<=NF;i++){word[$i]++}}END{for(j in word){print j,word[j]}}' /etc/rc.sysinit awk '{if($NF=="m"){sum_m+=$2;num_m++}else{sum_f+=$2;num_f++}}END{printf "male:%.2f\nfemale:%.2f\n",sum_m/num_m,sum_f/num_f}' score.txt awk '{num[$NF]++;sum[$NF]+=$2 }END{for(sex in num)printf "%s:%.2f\n",sex,sum[sex]/num[sex]}' score.txt
标签:同学,getenforce,setseboot,SELINUX,RHCE,semanage From: https://www.cnblogs.com/xuxuxu-2022/p/17554793.html