摘要: 一、环境介绍 设备及版本:H3C F1090FW-CMW710-BOOT-R8601P2415.bin 出现bug,导致配置无法保存,如下图: 二、解决方法: 通过Console线连接到设备上执行命令:fixdisk flash: 如图所示,配置保存成功。 阅读全文
posted @ 2024-01-21 16:26 语~默 阅读(34) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2023-02-03 10:02 语~默 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 一、环境要求 资源:至少2c2g10gb 的资源 hosts: 192.168.100.50 master 192.168.100.51 node1 192.168.100.52 node2 系统:centos 7 、Kernel: Linux 3.10.0 二、基础环境配置(所有节点执行): 1、 阅读全文
posted @ 2022-10-15 23:14 语~默 阅读(562) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2022-06-28 14:33 语~默 阅读(0) 评论(0) 推荐(0) 编辑
摘要: 1、安装依赖包: yum -y install Git gcc gcc-c++ autoconf automake libtool pkgconfig pcre-devel tcl-devel expat-devel openssl-devel xz-devel boost-devel curl c 阅读全文
posted @ 2022-04-28 17:41 语~默 阅读(216) 评论(1) 推荐(0) 编辑
摘要: 基本上不需要修改原有代码,添加如下代码即可。 注:在settings.py 中需要注释点原有的 USER_AGENT 配置。 ############### ##settings.py## ############### ### 配置IP代理池 IPPOOL = [ {"ipaddr":"x.x.x 阅读全文
posted @ 2022-04-08 11:10 语~默 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 一、环境 系统:CentOS Linux release 7.8.2003 (Core) redis: redis-6.2.6.tar.gz (官网:https://redis.io/ ) 切换到redis 主目录下载 # wget https://download.redis.io/release 阅读全文
posted @ 2022-01-25 10:53 语~默 阅读(521) 评论(0) 推荐(0) 编辑
摘要: 一、线程 from threading import Thread #线程类 # 多线程方式一 def fn(name): for i in range(10): print('线程{}'.format(name),i) if __name__ == '__main__': t = Thread(t 阅读全文
posted @ 2022-01-11 11:08 语~默 阅读(74) 评论(0) 推荐(0) 编辑
摘要: 一、CSV import csv dic={'year':'1991年','num':'10人评论','pcore':'10分'} f = open("data.csv",mode='a',encoding="utf8") csv_w = csv.writer(f) csv_w.writerow(d 阅读全文
posted @ 2022-01-05 17:14 语~默 阅读(73) 评论(0) 推荐(0) 编辑
摘要: 一、介绍 在爬虫数据解析中有三种解析方式 1、re解析 #运行速度最快、效率高、准确性搞。 但是上手难度高 2、bs4解析 #代码简单、但执行效率不高 3、xpath解析 #语法简单,容易上手 注:在线正则表达式:https://tool.oschina.net/regex 二、符号表达式 1 . 阅读全文
posted @ 2022-01-04 18:55 语~默 阅读(372) 评论(0) 推荐(0) 编辑