pacman -Rns $(pacman -Qtdq) It lists all packages installed as dependencies but no longer required by any packages. You can remove them if you know that you don't use them.…
改程序执行后,会清理 test/文件夹中距离现在超过一天的以 .xml 结尾的文件 # coding: utf-8 import time import os root = os.path.dirname(__file__) def clear_file(root_dir): print(333333) for root, dir, names in os.walk(root_dir): print(root, dir, names) for name in names: filename =…
孤儿pod的产生 节点OOM以后或者节点异常崩溃的情况下,pod未能被正常的清理而导致的孤儿进程. 提示如下 Orphaned pod found - but volume paths are still present on disk 进入k8s的pod目录 cd /var/lib/kubelet/pods/ 解决问题 过滤日志中的孤儿pod,删除pod. #!/bin/bash num=$(grep "errors similar to this. Turn up verbosity to…
---SQL 2008 在SQL2008中清除日志就必须在简单模式下进行,等清除动作完毕再调回到完全模式. USE [master] go ALTER DATABASE PS SET RECOVERY SIMPLE WITH NO_WAIT go ALTER DATABASE PS SET RECOVERY SIMPLE --简单模式 go USE PS go , TRUNCATEONLY) go USE [master] go ALTER DATABASE PS SET RECOVERY FU…
Use LingZhong Select NAME,size From sys.database_files ALTER DATABASE LingZhong SET RECOVERY SIMPLE WITH NO_WAIT ALTER DATABASE LingZhong SET RECOVERY SIMPLE USE LingZhong DBCC SHRINKFILE(N'LingZhong_log',0,TRUNCATEONLY) ALTER DATABASE LingZhong SET…