Recent posts

部署k8s

less than 1 minute read

部署K8S

Ubuntu永久修改dns

less than 1 minute read

Ubuntu永久修改DNS 修改 systemd-resolved 配置 sudo nano /etc/systemd/resolved.conf 取消注释并修改以下行: Copy [Resolve] DNS=1.1.1.1 223.5.5.5 # 指定 DNS 服务器(多个用空格分隔)。 Domain...

数据迁移方案

less than 1 minute read

数据迁移方案 停止k8s服务 systemctl stop kubelet systemctl stop docker 同步文件夹到执行磁盘下 rsync -avP fse-sata /arachnid 启动k8s systemctl start docker systemctl start ku...

Sql执行顺序

less than 1 minute read

SQL执行顺序 书写顺序 SELECT -> DISTINCT -> TOP -> FROM -> JOIN -> ON -> WHERE -> GROUP BY -> HAVING -> ORDER BY 执行顺序 FROM -> ON -&...

开启swap

less than 1 minute read

开启swap 开启swap并永久生效 # 创建swap文件 fallocate -l 5G /swapfile # 修改swapfile权限 chmod 600 /swapfile # 设置swap文件 mkswap /swapfile # 启用swap文件 swapon /swapfile # 验证...

Python线程、进程、协程的关系与区别和使用方式

less than 1 minute read

Python线程、进程、协程的关系与区别和使用方式 线程 线程使用方便,但是又GIL锁,所以适合IO密集型操作 进程 进程较重,启动耗费资源,但是没有GIL锁问题,所以适合CPU密集型,同时在进程中使用线程,每个进程中只会有一个GIL锁 协程 协程较为轻量,但是代码编写麻烦

Netplan gateway4弃用报错

less than 1 minute read

NetPlan gateway4弃用报错 问题 gateway4 has been deprecated, use default routes instead. See the 'Default routes' section of the documentation for more details. ...