文章分类 -  linux

摘要:linux ipmitool安装及配置 ## 下面配置是在centos 6 上面配置的 echo nameserver 8.8.8.8 >> /etc/resolv.conf yum -y install epel-release ipmitool OpenIPMI # lsmod |grep ip 阅读全文
posted @ 2022-06-01 23:03 lifei888 阅读(161) 评论(0) 推荐(0)
摘要:下载 wget http://www.pro-bono-publico.de/projects/src/DEVEL.tar.bz2 解压 bzip2 -dc DEVEL.tar.bz2 | tar xvfp - 安装依赖包 yum -y install rpm-build redhat-rpm-co 阅读全文
posted @ 2022-04-27 17:32 lifei888 阅读(143) 评论(0) 推荐(0)
摘要:date +%F%T date +'%F %T' --date='5 years ago'e 阅读全文
posted @ 2022-04-26 23:26 lifei888 阅读(5) 评论(0) 推荐(0)
摘要:ping 解析 ping -M do -s 1500 www.baidu.com #不分片 ping -M dont -s 1500 www.baidu.com #分片 ping -D -v -s 1500 -c 1 www.example.com #mac 不分片 ping -n 1 -l 150 阅读全文
posted @ 2022-04-21 11:05 lifei888 阅读(70) 评论(0) 推荐(0)
摘要:打开普通页面获取cookie curl -X get -c cookie -b cookie http://103.231.66.202/zabbix/index.php -L 支持跳转 -X 获取页面方法 模拟提交post登陆请求 curl -X POST -L -c cookie -b cook 阅读全文
posted @ 2022-04-21 10:54 lifei888 阅读(136) 评论(0) 推荐(0)
摘要:查看命令对应的包 yum provides iostat # 查找某个命令对应的包 rpm -ql httpd # 查看此包关联的文件目录 yum yum history yum info [id值] cpu vmstat top htop iftop iostat iotop vmstat net 阅读全文
posted @ 2022-04-16 21:38 lifei888 阅读(39) 评论(0) 推荐(0)
摘要:ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@ip 阅读全文
posted @ 2022-03-30 10:27 lifei888 阅读(15) 评论(0) 推荐(0)
摘要:mac 添加地址 sudo ifconfig en4 alias 129.9.$i.111 netmask 255.255.255.0 添加路由 add net 72.52.94.234: gateway 10.8.0.1 linux centos vconfig 命令 vconfig add et 阅读全文
posted @ 2022-03-13 21:05 lifei888 阅读(152) 评论(0) 推荐(0)
摘要:1、在开机看到内核条目时按E进行编辑 2、 找到Linux16这段按END到尾行在UTF-8后面输入红色箭头所指内容(其中console是在你用VMware虚 拟机做实验时破解密码用到的物理机不用加此项具体情况具体对待)CTRL+X保存! 3、挂载根分区重置root用户密码,Selinux服务启动状 阅读全文
posted @ 2022-02-25 17:10 lifei888 阅读(104) 评论(0) 推荐(0)
摘要:主配置文件 ~ > cat .ssh/config 11m 44s 14:10:23 Include ~/.ssh/config.d/bingo/hk Host server1 HostName 103.235.232.11 User lifei Port 22 IdentityFile ~/.ss 阅读全文
posted @ 2022-02-18 14:15 lifei888 阅读(468) 评论(0) 推荐(0)
摘要:方式一 echo "RMKTl9389B0="|passwd --stdin root 方式二 echo "RMKTl9389B0="|chpasswd 阅读全文
posted @ 2022-02-17 12:00 lifei888 阅读(13) 评论(0) 推荐(0)
摘要:virsh 虚机 1,查看运行的虚拟机 virsh list 2,查看所有的虚拟机(关闭和运行的虚拟机) virsh list --all 3,连接虚拟机 virsh console +域名(虚拟机的名称) 4,退出虚拟机 ctrl+] 5,关闭虚拟机 virsh shutdown +域名 virs 阅读全文
posted @ 2022-02-16 10:51 lifei888 阅读(24) 评论(0) 推荐(0)
摘要:添加dummy0地址 ip link add dum0 type dummy ip link set dum0 up ip addr add 10.10.255.2/24 dev dum0 ubuntu 22.04 地址配置 bih@idccun:~$ sudo cat /etc/netplan/5 阅读全文
posted @ 2022-02-15 11:36 lifei888 阅读(12) 评论(0) 推荐(0)
摘要:在线端口检测网站 在线端口检测网站 扫描某一段地址里面是否开了80 端口 nmap -p 80,443 120.11.48.0/28 nmap -p 1000-1100 120.11.48.0/28 nmap -p- 3.5.6.7 #对所有端口进行探测 扫描某一个地址开了哪些端口 nmap bai 阅读全文
posted @ 2022-01-16 12:48 lifei888 阅读(62) 评论(0) 推荐(0)
摘要:# centos 网卡不能启动 centos 7系统网络故障,日志内容:localhost network: Bringing up interface eth0: Error: Could not create NMClient object: GDBus.Error:org.freedeskto 阅读全文
posted @ 2022-01-14 15:36 lifei888 阅读(657) 评论(0) 推荐(0)
摘要:cobbler服务器部署 1.1 前置工作 systemctl stop firewalld systemctl disable firewalld setenforce 0 sed -i -r 's/^(SELINUX=).*$/\1disabled/g' /etc/selinux/config 阅读全文
posted @ 2022-01-14 13:21 lifei888 阅读(118) 评论(0) 推荐(0)