1.
 查看当前用户
     cat /etc/passwd
 添加test用户
     useradd test -G root
 查看test用户状态
     id test
 查看用户adaminstrator
     passwd -S adaminstrator
 禁用用户adaminstrator
     passwd -l adaminstrator
 密码策略设置文件地址
     vi /etc/pam.d/system-auth
 设置密码命令 16行
     minlen=8 lcredit=-1 ucredit=-1 dcredit=-1 enforce_for_root
 设置登录设置
     vi /etc/pam.d/login
 在第二行插入
     auth required pam_tally2.so deny=3 unlock_time=600 even_deny_root root_unlock_time=600
 设置远程登录设置
     vi /etc/pam.d/sshd
 在第二行插入
     auth required pam_tally2.so deny=3 unlock_time=600 even_deny_root root_unlock_time=600
 2.
 查看防火墙服务
     systemctl status firewalld
 关闭防火墙
     systemctl stop firewalld
 查看apache服务
     systemctl status httpd
 启动apache服务
     systemctl start httpd
 安装apache服务
     yum install -y httpd
 切换去指定路径
     cd /var/www/html/
 创建文件和指定内容
     echo 'index.html' > index.html
 查看本地ip地址
     ifconfig 
 访问地址
     curl http://192.168.0.0/index.html
 查看selinux功能
     getenforce 
 开启selinux
     setenforce 1
 设置index2不可访问
     chcon -t var_t /var/www/html/index2.html
 查看访问类型
     ls -Z
3.根据ip筛选 追踪流