2024年10月11日

安装包与系统架构

摘要: amd64:表示 64 位 x86 架构。 i386 或 i686:表示 32 位 x86 架构。 arm64 或 aarch64:表示 64 位 ARM 架构。 armhf 或 armel:表示 32 位 ARM 架构的不同变种。 阅读全文

posted @ 2024-10-11 11:41 小胖子方法 阅读(16) 评论(0) 推荐(0) 编辑

2023年4月26日

网卡配置文件详解

摘要: #动态ip [root@qls ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0 TYPE="Ethernet" PROXY_METHOD="none" BROWSER_ONLY="no" BOOTPROTO="dhcp" DEFROUTE="yes 阅读全文

posted @ 2023-04-26 13:32 小胖子方法 阅读(273) 评论(0) 推荐(0) 编辑

2023年2月23日

下载文件

摘要: url url(r'^api/down_dailyfiles/(\w)',views.down_dailyfiles),#下载 views.py @csrf_exempt def down_dailyfiles(request,id): # 服务器上存放文件的路径 try: monitor_resu 阅读全文

posted @ 2023-02-23 16:24 小胖子方法 阅读(79) 评论(0) 推荐(0) 编辑

2022年4月29日

django 事务踩坑

摘要: with transaction.atomic(): save_id = transaction.savepoint() #xx.字段A ormg更新操作 #提交事务 transaction.savepoint_commit(save_id) #从django中看到 xx.字段A的值已经改变,但是通 阅读全文

posted @ 2022-04-29 20:35 小胖子方法 阅读(138) 评论(0) 推荐(0) 编辑

2022年2月11日

go 使用mysql

摘要: package main /* 下划线(如:import _ hello/imp)的作用:当导入一个包时,该包下的文件里所有init()函数都会被执行, 然而,有些时候我们并不需要把整个包都导入进来,仅仅是是希望它执行init()函数而已。 这个时候就可以使用 import _ 引用该包。 即使用【 阅读全文

posted @ 2022-02-11 12:12 小胖子方法 阅读(1115) 评论(0) 推荐(0) 编辑

2021年9月17日

离线方式快速安装python模块以及相关依赖模块

摘要: 前提条件: 正式线机器A(Linux,不能连公网,python3),测试线机器B(Linux,能连公网,python3) 如果A是Windows,B就要是Windows,不能是Linux,因为很多模块Windows和Linux不共用 步骤1: 在B上使用pip3命令安装好需要的模块,pip3安装的好 阅读全文

posted @ 2021-09-17 16:03 小胖子方法 阅读(618) 评论(0) 推荐(0) 编辑

2021年9月14日

kube-proxy

摘要: 1 kube-proxy报错 "--random-fully" 解决: # yum install gcc make libnftnl-devel libmnl-devel autoconf automake libtool bison flex libnetfilter_conntrack-dev 阅读全文

posted @ 2021-09-14 19:37 小胖子方法 阅读(174) 评论(0) 推荐(0) 编辑

docker0 flannel.1不在同一网段

摘要: 现象: docker0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255 flannel.1: flags=4163<UP 阅读全文

posted @ 2021-09-14 19:37 小胖子方法 阅读(628) 评论(0) 推荐(0) 编辑

2021年4月20日

python常用数据结构模块--collections

摘要: import collections ''' python常用数据结构模块--collections collections是日常工作中的重点、高频模块,常用类型有: 计数器(Counter) 双向队列(deque) 参考源码 就是list 默认字典(defaultdict) 有序字典(Ordere 阅读全文

posted @ 2021-04-20 22:56 小胖子方法 阅读(165) 评论(0) 推荐(0) 编辑

2021年3月30日

ipvs

摘要: https://baike.baidu.com/item/ipvs/5041817?fr=aladdin 阅读全文

posted @ 2021-03-30 11:12 小胖子方法 阅读(71) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示