随笔分类 - linux
摘要:同步阿里云:ntpdate -u ntp.aliyun.com 设置时区为上海:timedatectl set-timezone Asia/Shanghai
阅读全文
摘要:配置阿里云yum源 配置阿里云yum源 1.备份现有的repo仓库 2.centOS 7配置 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo 3.运行 yum makecac
阅读全文
摘要:禁用SELINUX sed -i 's@SELINUX=enforcing@SELINUX=disabled@g' /etc/selinux/config setenforce 0 详细操作如下: [root@localhost ~]# sed -i 's@SELINUX=enforcing@SEL
阅读全文
摘要:检查selinux状态 getenforce 禁用 sed -i 's@SELINUX=enforcing@SELINUX=disabled@g' /etc/selinux/config setenforce 0 临时关闭(不用重启机器): setenforce 0 设置SELinux 成为perm
阅读全文

浙公网安备 33010602011771号