摘要: 主从 点击查看代码 [root@master ~]# cd ~/.ssh [root@master .ssh]# ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key 阅读全文
posted @ 2024-04-07 19:49 基础狗 阅读(39) 评论(0) 推荐(0)
摘要: scp /etc/hosts root@clone1:etc/hosts 点击查看代码 [root@master ~]# scp /etc/hosts root@clone1:/etc/hosts The authenticity of host 'clone1 (192.168.10.11)' c 阅读全文
posted @ 2024-04-07 19:14 基础狗 阅读(98) 评论(0) 推荐(0)
摘要: hostnamectl set-hostname 主机名 bash 阅读全文
posted @ 2024-04-07 19:00 基础狗 阅读(11) 评论(0) 推荐(0)
摘要: 正确书写GATEWAY,添加dns 阅读全文
posted @ 2024-04-07 16:17 基础狗 阅读(35) 评论(0) 推荐(0)
摘要: 虚拟网络设置子网ip,取消勾选DHCP自动分配。 这次是192.168.10.0。NET网关是192.168.10.2。 配置CentOS配置内容是 BOOTPROTO=static IPADDR=192.168.10.10 NETMASK=255.255.255.0 GAETWAY=192.168 阅读全文
posted @ 2024-04-07 15:43 基础狗 阅读(22) 评论(0) 推荐(0)
摘要: 1.卸载openjdk rpm -qa | grep java | xargs rpm -e --nodeps rpm -qa | grep jdk | xargs rpm -e --nodeps 卸载后查看 rpm -qa | grep java rpm -qa | grep jdk 无回显 2. 阅读全文
posted @ 2024-04-07 12:08 基础狗 阅读(39) 评论(0) 推荐(0)