第十周作业
编写脚本selinux.sh,实现开启或禁用SELinux功能 vim /etc/init.d/selinux #!/bin/bash # # chkconfig: - 98 4 # description: selinux start|stop setenforce 0 &> /dev/null || setenforce 1 &> /dev/null if [ $? -ne 0 ];then echo The system is not start selinux.service exit fi if [ $# -ne 1 ];then
下载地址
用户评论