摘要:
#只返回IP地址 curl whatismyip.akamai.com wget -qO - ifconfig.co curl icanhazip.com dig +short myip.opendns.com @resolver1.opendns.com curl ident.me curl v4 阅读全文
摘要:
import os import requests from bs4 import BeautifulSoup from urllib.parse import urljoin # 目标URL url = "https://update.cs2c.com.cn/NS/V10/V10SP3/os/ad 阅读全文
摘要:
1. 安全相关的关键字 认证失败 regex复制代码Failed\s+password Invalid\s+user authentication\s+failure Failed\s+publickey Failed\s+keyboard-interactive/pam 用户相关 regex复制代 阅读全文
摘要:
metric 配置网卡的默认metric 给网卡配置默认的metric值,当添加路由的时候如果没有手动指定 metric 值,则使用默认值,默认值为 -1 ,表示自动配置路由的metric值。metric 数值越大,路由的优先级越低。 没有 NetworkManager 的情况下设置 修改位于/et 阅读全文
摘要:
#!/bin/bash #1. 判断参数个数 if [ $# -lt 1 ] then echo Not Enough Arguement! exit; fi #2. 遍历集群所有机器 rpm -q rsync &>/dev/null || yum install -y rsync for host 阅读全文
摘要:
/*给图片加阴影和圆角,使其更美观*/ img{ filter: drop-shadow(3px 3px 2px gray); border-radius: 5px; } 阅读全文
摘要:
故障模拟 [root@rhel9-1-9 ~]# chattr +i /etc/ [root@rhel9-1-9 ~]# lsattr -d /etc/ i /etc/ [root@rhel9-1-9 ~]# echo 123 | passwd root Changing password for 阅读全文