随笔分类 - 工作实践
发表于 2022-09-05 13:21阅读:34评论:0推荐:0
摘要:设置本地DNS缓存 修改/etc/hosts文件 #立即生效 [root@YX-node01 group_vars]# cat /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain
阅读全文 »
发表于 2022-09-05 13:17阅读:33评论:0推荐:0
摘要:临时设置 查看主机名 hostname命令 [root@loalhost ~]# hostname loalhost 设置主机名 hostname命令 [root@loalhost ~]# hostname master 永久设置 查看主机名 hostname命令 [root@loalhost ~]
阅读全文 »
发表于 2022-09-05 11:29阅读:1368评论:0推荐:0
摘要:密钥登陆设置 生成公私钥 ssh-keygen命令 [root@loalhost ~]# ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa
阅读全文 »
发表于 2022-09-02 14:10阅读:219评论:0推荐:0
摘要:临时设置 查看swap分区 使用free -h 命令 [root@localhost ~]# free -m total used free shared buff/cache available Mem: 2888 635 1630 13 622 1986 Swap: 3279 0 3279 开启
阅读全文 »
发表于 2022-09-02 13:37阅读:109评论:0推荐:0
摘要:服务设置 查看防火墙状态 使用systemctl status firewalld命令 [root@localhost ~]# systemctl status firewalld ● firewalld.service - firewalld - dynamic firewall daemon L
阅读全文 »
发表于 2022-09-02 11:36阅读:244评论:0推荐:0
摘要:永久设置 查看selinux 查看/etc/selinux/config文件 #enforce:开启;disabled:关闭;premissive:关闭但有警告提示 [root@localhost ~]# cat /etc/selinux/config # This file controls th
阅读全文 »