随笔分类 -  linux

摘要:同步阿里云:ntpdate -u ntp.aliyun.com 设置时区为上海:timedatectl set-timezone Asia/Shanghai 阅读全文
posted @ 2021-11-18 23:07 yuezenghui 阅读(36) 评论(0) 推荐(0)
摘要:hostnamectl set-hostname name 阅读全文
posted @ 2021-11-17 18:54 yuezenghui 阅读(31) 评论(0) 推荐(0)
摘要:配置阿里云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 阅读全文
posted @ 2021-11-08 15:43 yuezenghui 阅读(64) 评论(0) 推荐(0)
摘要:禁用SELINUX sed -i 's@SELINUX=enforcing@SELINUX=disabled@g' /etc/selinux/config setenforce 0 详细操作如下: [root@localhost ~]# sed -i 's@SELINUX=enforcing@SEL 阅读全文
posted @ 2021-11-08 15:37 yuezenghui 阅读(180) 评论(0) 推荐(0)
摘要:检查selinux状态 getenforce 禁用 sed -i 's@SELINUX=enforcing@SELINUX=disabled@g' /etc/selinux/config setenforce 0 临时关闭(不用重启机器): setenforce 0 设置SELinux 成为perm 阅读全文
posted @ 2021-11-05 14:16 yuezenghui 阅读(351) 评论(0) 推荐(0)