上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 26 下一页
摘要: #!/bin/bash # Host IP/主机ipipaddr="$1" # Change LANG To C # oldLANG=$LANG# export LANG=CLANG=en_us# $1 临时数据存放点 root_time=`chage -l root |head -1 |awk - 阅读全文
posted @ 2024-04-01 10:19 LB_运维技术 阅读(35) 评论(0) 推荐(0)
摘要: 事件:记录一次主机重启后导致LVM、vg、pv丢失 原因:例如:/dev/sdb 分区后制作了LVM,又再次进行分区 解决方案: 1、cd /etc/lvm 备份数据: 2、fdisk -l /dev/sdb > back.txt 清空分区: 3、wipefs -a /dev/sdb 4、pvcre 阅读全文
posted @ 2024-01-30 00:06 LB_运维技术 阅读(897) 评论(0) 推荐(1)
摘要: 1、账号锁定 passwd -l 用户名 usermod -L 用户名 2、账号解锁 passwd -u 用户名 usermod -U 用户名 3、用户添加附属组 usermod -aG 组名 用户名 阅读全文
posted @ 2024-01-19 16:19 LB_运维技术 阅读(37) 评论(0) 推荐(0)
摘要: 假设你想要安装的软件包叫做app,注意,这里的命令通常需要sudo或者root权限。 //centos系统、redhat系统 rpm-qa | grep app #查找本机是否安装了app; rpm-ivh app.rpm #假设你有app的rpm包,这样直接安装 sudo yum install 阅读全文
posted @ 2024-01-05 14:31 LB_运维技术 阅读(71) 评论(0) 推荐(0)
摘要: nmcli con add type bond ifname bond0 con-name bond0 mode 4 miimon 100 nmcli con add type bond-slave ifname ens21 master bond0 nmcli con add type bond- 阅读全文
posted @ 2024-01-05 10:47 LB_运维技术 阅读(57) 评论(0) 推荐(0)
摘要: 问题1:./openssl: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory 解决方案:cp /usr/local/opens 阅读全文
posted @ 2023-12-28 09:38 LB_运维技术 阅读(302) 评论(0) 推荐(0)
摘要: 命令: # usermod --shell shell类型 用户名 # usermod --shell /bin/sh libin 阅读全文
posted @ 2023-12-21 18:28 LB_运维技术 阅读(132) 评论(0) 推荐(0)
摘要: 第一种: cat /etc/passwd | cut -f 1 -d : | xargs -l {} crontab -l -u {} 阅读全文
posted @ 2023-12-01 16:40 LB_运维技术 阅读(214) 评论(0) 推荐(0)
摘要: 现象: 解决方案: (1)# journalctl 查看原因 (2)可以看出是内存溢出导致进出救援模式,重启解决 # /sbin/reboot -f (3) 如果出现 mount failed 的现象,就需要进行 umount -l /dev/sdX 或者 umount -f /dev/sdX (4 阅读全文
posted @ 2023-09-29 22:05 LB_运维技术 阅读(325) 评论(0) 推荐(0)
摘要: Failed to register (statd, 1, tcp6/udp): svc_reg() err: RPC: Remote system error - No route to host 解决方案: net.ipv6.conf.all.disable_ipv6=0net.ipv4.con 阅读全文
posted @ 2023-09-12 16:29 LB_运维技术 阅读(325) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 26 下一页