会员
周边
新闻
博问
闪存
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
libin-linux
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
10
···
26
下一页
2024年10月17日
Linux 表示只允许某一个用户名用户通过SSH进行连接
摘要: 步骤: 1、在SSH配置文件sshd_config中添加 AllowUsers libin 表示只允许用户名为libin的用户通过SSH进行连接。 2、重启SSH服务以应用更改 sudo systemctl restart sshd
阅读全文
posted @ 2024-10-17 09:30 LB_运维技术
阅读(183)
评论(0)
推荐(0)
2024年9月12日
Redhat7 目录调整
摘要: 一、机器 /home 单独挂载了,只有2G ,现在 /data 有200G 我想将 /home 移至/data下 怎么操作? 解决方案: 1:备份数据 2:进入单用户模式,重新启动系统,并在启动菜单中选择进入单用户模式(也可以通过在启动时添加 single 或 1 到内核启动参数)。 3:创建新的目
阅读全文
posted @ 2024-09-12 15:28 LB_运维技术
阅读(89)
评论(0)
推荐(0)
ansible批量修改主机名
摘要: (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_运维技术
阅读(192)
评论(0)
推荐(0)
ansible 设置 vim格式
摘要: # vim ~/.vimrc ==>autocmd FileType yaml setlocal ai ts=2 sw=2 et (建议手敲)
阅读全文
posted @ 2024-09-12 14:47 LB_运维技术
阅读(34)
评论(0)
推荐(0)
ansible禁用 SSH 主机密钥检查
摘要: 问题: 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_运维技术
阅读(370)
评论(0)
推荐(0)
2024年9月11日
EXECL 两个表格中都有相同的数字 匹配却匹配不了
摘要:
阅读全文
posted @ 2024-09-11 15:49 LB_运维技术
阅读(228)
评论(0)
推荐(0)
2024年7月5日
sar追溯特定时间CPU、内存 、I/O 和传输速率、网络使用情况
摘要: 请确保 sar 已经安装并正在记录数据。你可以通过以下步骤确保 sar 正在运行:服务是sysstat 查看 CPU 使用情况: sar -u -s 00:00:00 -e 06:00:00 查看内存使用情况: sar -r -s 00:00:00 -e 06:00:00 查看 I/O 和传输速率:
阅读全文
posted @ 2024-07-05 09:10 LB_运维技术
阅读(139)
评论(0)
推荐(0)
2024年6月20日
Linux 查看指定账户的id
摘要: cat /etc/passwd | egrep '^hnoa3|^huxianghui|^zhousichong' |awk -F: '{print $1}' | xargs -I {} sh -c 'echo "User: {}"; id {}; echo " "'cat /etc/passwd
阅读全文
posted @ 2024-06-20 09:14 LB_运维技术
阅读(31)
评论(0)
推荐(0)
2024年6月6日
linux 基线检查加固
摘要: 修改vsftp回显信息 ansible -i hosts task -m shell -a "grep 'ftpd_banner' /etc/vsftpd/vsftpd.conf" sed -i '/ftpd_banner/s/^/#/g' /etc/vsftpd/vsftpd.conf ansib
阅读全文
posted @ 2024-06-06 09:04 LB_运维技术
阅读(86)
评论(0)
推荐(0)
2024年5月24日
Linux系统postdrop服务进程持续增加导致无法登录
摘要: 临时解决方案: #service postfix status#service sendmail status#service postfix stop[root@wign ~]# ps -ef|grep sendmail|wc -l3038[root@wign ~]# ps -ef|grep po
阅读全文
posted @ 2024-05-24 10:15 LB_运维技术
阅读(480)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
10
···
26
下一页
公告