zoukankan      html  css  js  c++  java
  • 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

  • 相关阅读:
    Thomas Hobbes: Leviathan
    10 Easy Steps to a Complete Understanding of SQL
    day3心得
    py编码终极版
    day2 作业
    Python 中的比较:is 与 ==
    day2-心得
    day1--心得
    day1作业
    python--open用法
  • 原文地址:https://www.cnblogs.com/aipeli/p/10147100.html
Copyright © 2011-2022 走看看