上一页 1 2 3 4 5 6 7 8 9 10 ··· 27 下一页
摘要: ps -A -ostat,ppid,pid,cmd | grep -e '^[Zz]' ps -eo stat,pid,ppid | grep '^Z' | wc -l 阅读全文
posted @ 2024-12-13 09:06 LB_运维技术 阅读(55) 评论(0) 推荐(0)
摘要: 例如: 可以使用find命令找出大文件 find /var -type f -exec du -h {} + | sort -rh | head -n 10 阅读全文
posted @ 2024-12-06 01:35 LB_运维技术 阅读(49) 评论(0) 推荐(0)
摘要: 注:所用操作需要root权限 一、查看磁盘 # lsblk 可以看到是一个12T大小的磁盘,正常初始化挂载是无法识别到12T空间的,需要转换磁盘格式。操作如下 # parted /dev/sdb mklabel gpt -s 查看磁盘格式 # parted -l 已转换为gpt格式。 二、初始化磁盘 阅读全文
posted @ 2024-12-04 16:27 LB_运维技术 阅读(304) 评论(0) 推荐(0)
摘要: 扩容卷组pvcreate /dev/sdcvgextend uservg /dev/sdclvextend -l +100%FREE /dev/mapper/uservg-datalv xfs_growfs /dev/mapper/uservg-datalv 阅读全文
posted @ 2024-11-15 17:07 LB_运维技术 阅读(25) 评论(0) 推荐(0)
摘要: 步骤: 1、在SSH配置文件sshd_config中添加 AllowUsers libin 表示只允许用户名为libin的用户通过SSH进行连接。 2、重启SSH服务以应用更改 sudo systemctl restart sshd 阅读全文
posted @ 2024-10-17 09:30 LB_运维技术 阅读(188) 评论(0) 推荐(0)
摘要: 一、机器 /home 单独挂载了,只有2G ,现在 /data 有200G 我想将 /home 移至/data下 怎么操作? 解决方案: 1:备份数据 2:进入单用户模式,重新启动系统,并在启动菜单中选择进入单用户模式(也可以通过在启动时添加 single 或 1 到内核启动参数)。 3:创建新的目 阅读全文
posted @ 2024-09-12 15:28 LB_运维技术 阅读(95) 评论(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_运维技术 阅读(204) 评论(0) 推荐(0)
摘要: # vim ~/.vimrc ==>autocmd FileType yaml setlocal ai ts=2 sw=2 et (建议手敲) 阅读全文
posted @ 2024-09-12 14:47 LB_运维技术 阅读(39) 评论(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_运维技术 阅读(383) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2024-09-11 15:49 LB_运维技术 阅读(238) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 27 下一页