Day 3

Linux防火墙和安全服务:

  1、iptables,是一个服务  <== Ubuntu的防火墙是 ufw

  2、在Linux中,所有涉及到服务的,都需要生死用到service命令(需要root身份)

  3、服务格式:  service 【服务名称】 【执行的命令】

  4、查看防火墙的状态,service iptables status

  5、关闭防火墙: service iptables stop

  6、在Linux中涉及到服务的,都会有一个开机设置项

  7、在Linux中所有涉及到开机设置的,都需要只用chkconfig命令(需要root身份)

  8、开机设置格式:chkconfig 【服务名称】 【执行的命令】

  9、禁用防火墙开机启动:chkconfig iptabled off

  10、查看开机设置:chkconfig

  11、SELinux,是一个安全系统  <== Ubuntu默认不安装SELinux

  12、修改 /etc/sysconfig/selinux 文件

  13、设置SELinux为DISABLE

 第11步格式化错误

原文地址:https://www.cnblogs.com/fallenmoon/p/7058846.html