12 2020 档案

摘要:centos7 在安装后,通常我们通过df -h 来查看磁盘空间的时候率。如下: [root@oracle01 ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/centos-root 46G 32G 14G 71% / 阅读全文
posted @ 2020-12-22 15:26 Macoffee 阅读(730) 评论(0) 推荐(1) 编辑
摘要:准备工作: 首先要在ansible所在主机,与被管控机器做好互信。 A/B服务器设置: vim /etc/ssh/sshd_config PermitRootLogin yes RSAAuthentication yes PubkeyAuthentication yes 1 ssh-keygen - 阅读全文
posted @ 2020-12-17 19:38 Macoffee 阅读(76) 评论(0) 推荐(0) 编辑
摘要:当使用arp -s无法将ip和mac绑定的时候,可以使用一下命令来绑定。 netsh i i show in然后找到网线或网卡对应的idx netsh -c "i i" add neighbors 11 "网关IP" "Mac地址"这里11是idx号。 例如:netsh -c "i i" add n 阅读全文
posted @ 2020-12-10 19:05 Macoffee 阅读(635) 评论(0) 推荐(0) 编辑
摘要:下面介绍CentOS7 KVM环境下制作CentOS7 qcow2格式镜像 如果是CentOS7 KVM环境是VMware虚拟机,需要CPU开启虚拟化 1、配置yum镜像源 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.cloud. 阅读全文
posted @ 2020-12-03 15:54 Macoffee 阅读(2768) 评论(0) 推荐(0) 编辑
摘要:在redhat服务器可以直接使用命令: sudo usermod -l newusername root 对于其他系统linux 如果提示: usermod: user root is currently logged in 则需要使用另外的方式: vi /etc/passwd 按i键进入编辑状态 阅读全文
posted @ 2020-12-01 19:17 Macoffee 阅读(1001) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示