会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
libin-linux
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
6
7
8
9
10
11
12
13
14
···
26
下一页
2023年4月12日
linux 系统巡检脚本
摘要: #!/bin/bash read key echo "警告:本脚本只是一个检查的操作,未对服务器做任何修改,管理员可以根据此报告进行相应的设置。" echo 主机安全检查 echo "系统版本" uname -a echo echo "本机的ip地址是:" ifconfig | grep --col
阅读全文
posted @ 2023-04-12 09:17 LB_运维技术
阅读(235)
评论(0)
推荐(0)
2023年3月31日
Linux 命令行增加VIP
摘要: 例如: # ifconfig eth4:0 10.154.X.X netmask 255.255.255.224 up
阅读全文
posted @ 2023-03-31 16:12 LB_运维技术
阅读(204)
评论(0)
推荐(0)
2023年3月24日
ansible 账号授权
摘要: - name: add libin sudo config hosts: task gather_facts: no tasks: - name: jiesuo shell: pam_tally2 -u libin -r - name: one user: name: "{{ item.user }
阅读全文
posted @ 2023-03-24 17:58 LB_运维技术
阅读(31)
评论(0)
推荐(0)
K8S serviceAccount(服务账号)-安全
摘要: 创建一个命名空间test [root@cka-master ~]# kubectl create ns test 创建pod为web-test并指定命名空间test [root@cka-master ~]# kubectl create deployment web-test --image=ngi
阅读全文
posted @ 2023-03-24 02:06 LB_运维技术
阅读(107)
评论(0)
推荐(0)
2023年3月20日
ansible批量执行输出所有账户
摘要: [root@libin3]# cat libin.yml - hosts: task gather_facts: no tasks: - name: fetch shell: | for i in `awk -F':' '{if( $3>=500 )print $1 }' /etc/passwd |
阅读全文
posted @ 2023-03-20 15:07 LB_运维技术
阅读(36)
评论(0)
推荐(0)
ansible批量跑出所有用户的定时计划任务
摘要: [root@libin3]# cat libin.yml - hosts: task gather_facts: no tasks: - name: fetch shell: | for i in `awk -F':' '{if( $3>=0 )print $1 }' /etc/passwd `;d
阅读全文
posted @ 2023-03-20 15:05 LB_运维技术
阅读(69)
评论(0)
推荐(0)
2023年3月16日
Linux 查看所有用户crontab计划任务
摘要: [root@nf5-1000 ~]# awk -F ":" '{print $1}' /etc/passwd | xargs -I {} crontab -l -u {} [root@nf5-1000 ~]# cat /etc/passwd | cut -f 1 -d : |xargs -I {}
阅读全文
posted @ 2023-03-16 09:23 LB_运维技术
阅读(817)
评论(0)
推荐(0)
2023年3月13日
Linux 命令行使用if语句进行判断
摘要: 说明: 可以配合ansible进行批量实现 例1: 判断ntp是否启动 systemctl is-active ntpd.service &>/dev/null; if [ $? == 0 ]; then echo "ntp-ok"; else echo "ntp-no" | xargs ;fi s
阅读全文
posted @ 2023-03-13 16:13 LB_运维技术
阅读(341)
评论(0)
推荐(0)
2023年3月12日
Linux kernel: hpet1: lost 18 rtc interrupts 报错
摘要: 问题:Linux kernel: hpet1: lost 18 rtc interrupts 报错 解决方案:在 GRUB_CMDLINE_LINUX_DEFAULT="quiet hpet=disable" 添加hpet=disable # cat /etc/default/grub GRUB_T
阅读全文
posted @ 2023-03-12 00:16 LB_运维技术
阅读(1243)
评论(0)
推荐(0)
2023年3月11日
Bclinux yum源无法使用
摘要: 内网yum源案例: 问题现象: 解决方案: 将enable=1 修改为enabled=0 问题即可解决 [root@localhost cloudman]# vi /etc/yum/pluginconf.d/license-manager.conf [main]enabled=0
阅读全文
posted @ 2023-03-11 23:08 LB_运维技术
阅读(646)
评论(0)
推荐(0)
上一页
1
···
6
7
8
9
10
11
12
13
14
···
26
下一页
公告