CentOS 7.X 安全手记

一、安装云锁

  1、报错

    Install Selinux Policy Module:yunsuo_install/install: line 371: checkmodule: command not found

     

  2、关闭SeLinux

    #vim /etc/selinux/config

    将 SELINUX=enforcing

    改 SELINUX=disabled

    

  3、重启系统

    #reboot now

二、Centos7相关的操作

  1、防火墙(firewall-cmd)

    1)、禁止被ping(禁止ICMP协议)

        #vim /etc/sysctl.conf

        #net.ipv4.icmp_echo_ignore_all = 1  
        #sysctl -p               //使配置生效。

    2)、关闭SMTP简单邮件传输协议,25端口

        #关闭

        #systemctl stop postfix.service

        #chkconfig postfix off

        #开启

        #chkconfig postfix on

        #systemctl start postfix.service

原文地址:https://www.cnblogs.com/aipeli/p/10147100.html