摘要: 一、机器 /home 单独挂载了,只有2G ,现在 /data 有200G 我想将 /home 移至/data下 怎么操作? 解决方案: 1:备份数据 2:进入单用户模式,重新启动系统,并在启动菜单中选择进入单用户模式(也可以通过在启动时添加 single 或 1 到内核启动参数)。 3:创建新的目 阅读全文
posted @ 2024-09-12 15:28 LB_运维技术 阅读(7) 评论(0) 推荐(0) 编辑
摘要: (1)hosts文件 [task]IP地址1 hostname=主机名1IP地址2 hostname=主机名2IP地址3 hostname=主机名3 [task:vars]ansible_become=yesansible_become_method=sudoansible_become_user= 阅读全文
posted @ 2024-09-12 15:00 LB_运维技术 阅读(16) 评论(0) 推荐(0) 编辑
摘要: # vim ~/.vimrc ==>autocmd FileType yaml setlocal ai ts=2 sw=2 et (建议手敲) 阅读全文
posted @ 2024-09-12 14:47 LB_运维技术 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 问题: Using a SSH password instead of a key is not possible because Host Key checking is enabled and sshpass does not support this. Please add this host 阅读全文
posted @ 2024-09-12 10:35 LB_运维技术 阅读(15) 评论(0) 推荐(0) 编辑