摘要: 安装jdk并验证 yum install java-1.8.0-openjdk* -y java -version 下载地址分别为: https://pan.baidu.com/s/1pL7KmGb 提取密码:rgivhttps://pan.baidu.com/s/1htOIekG 提取密码:29t 阅读全文
posted @ 2024-02-27 14:58 邓聪聪 阅读(71) 评论(0) 推荐(0) 编辑
摘要: 1,配置域名,使用主机名称即可 Switch(config)#ip domain-name Switch 2,创建密钥对,并开始ssh Switch(config)#crypto key zeroize rsa Switch(config)#ip ssh version 2 3,创建用户 Switc 阅读全文
posted @ 2022-11-16 16:15 邓聪聪 阅读(238) 评论(0) 推荐(0) 编辑
摘要: import pandas as pd file = r"E:\Python\python_Shell\6851-流量-10GE1_0_47.csv" df = pd.read_csv(file, converters={" ": str}) for i in df.values: print(i[ 阅读全文
posted @ 2022-10-14 16:43 邓聪聪 阅读(152) 评论(0) 推荐(0) 编辑
摘要: ##批量## import os import pandas as pd #1,遍历目录下的文件 path = r"F:\项目\国美新\log\4-26/" file_list = os.listdir(path) #2,设置需要匹配的关键词列表 kws = ["bad", "faild", "FA 阅读全文
posted @ 2022-10-13 14:53 邓聪聪 阅读(42) 评论(0) 推荐(0) 编辑
摘要: Ruijie#configure terminal Ruijie(config)#enable service ssh-server >开启SSH服务,默认关闭 Ruijie(config)#ip ssh version 2 >默认1.99版本,设置为版本2 Ruijie(config)#usern 阅读全文
posted @ 2022-10-08 15:04 邓聪聪 阅读(336) 评论(0) 推荐(0) 编辑
摘要: import os, re file_path = “path” def readfile(): filelist = os.listdir(file_path) for i in filelist: filelist = str(os.path.splitext(i)[0]) #replace只能 阅读全文
posted @ 2022-08-31 10:40 邓聪聪 阅读(32) 评论(0) 推荐(0) 编辑
摘要: import netmiko from netmiko import ConnectHandler import time import os import pandas as pd today = time.strftime("%Y-%m-%d", time.localtime()) switch 阅读全文
posted @ 2022-08-29 18:01 邓聪聪 阅读(169) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash mes=`cat list.txt` webhook='xxx' function SendMsg() { curl $webhook -H 'Content-Type: application/json' -d " { 'msgtype': 'text', 'text': 阅读全文
posted @ 2021-08-31 15:10 邓聪聪 阅读(56) 评论(0) 推荐(0) 编辑
摘要: ad 阅读全文
posted @ 2021-08-18 12:08 邓聪聪 阅读(21) 评论(0) 推荐(0) 编辑
摘要: https://freessl.cn/ #免费的ssl证书申请网站 nginx的配置: server { listen 80; listen 443 ssl; server_name cloud.maslong.com ; if ($ssl_protocol = "") { rewrite ^ ht 阅读全文
posted @ 2021-06-30 15:21 邓聪聪 阅读(119) 评论(0) 推荐(0) 编辑