上一页 1 2 3 4 5 6 ··· 11 下一页
摘要: zabbix 安装教程 https://blog.csdn.net/zzzxxx520369/article/details/137771649 阅读全文
posted @ 2024-04-30 18:09 zhaoguanhao 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 慢SQL(增删改查)记录 SELECT TOP 100 (total_elapsed_time / execution_count)/1000 N'平均时间ms' ,total_elapsed_time/1000 N'总花费时间ms' ,total_worker_time/1000 N'所用的CPU 阅读全文
posted @ 2024-04-28 09:43 zhaoguanhao 阅读(5) 评论(0) 推荐(0) 编辑
摘要: golang 1.20.13 定时执行bat shell 脚本 package main import ( "fmt" _ "github.com/CodyGuo/godaemon" "os/exec" "time" ) func main() { // 设置定时任务的时间 t := time.No 阅读全文
posted @ 2024-04-26 13:55 zhaoguanhao 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 定时清理1年前过期log日志数据 select min(createtime),max(createtime) from dbo.Sys_LoggerOperate SELECT count(1) FROM dbo.Sys_LoggerOperate WHERE createtime < DATEA 阅读全文
posted @ 2024-04-25 16:21 zhaoguanhao 阅读(28) 评论(0) 推荐(0) 编辑
摘要: golang 实现文件下载 http://localhost/files package main import ( "fmt" "net/http" ) func main() { // 指定要共享的文件或目录路径 shareDirectory := "G:\\Databackup" // 替换为 阅读全文
posted @ 2024-04-24 19:46 zhaoguanhao 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 编写Shell脚本以备份和还原规则在清空规则之前,可以使用iptables-save命令将当前规则保存到文件中,以备之后的恢复。之后,可以使用iptables-restore命令来还原规则。 保存规则到文件: shelliptables-save > backup.rules 清空所有规则: she 阅读全文
posted @ 2024-04-24 14:57 zhaoguanhao 阅读(430) 评论(0) 推荐(0) 编辑
摘要: Sql Server 各版本秘钥 2019,2017,2016,2014,2012 R2 SQL Server 2019 Enterprise:HMWJ3-KY3J2-NMVD7-KG4JR-X2G8G Enterprise Core:2C9JR-K3RNG-QD4M4-JQ2HR-8468J St 阅读全文
posted @ 2024-04-24 14:15 zhaoguanhao 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 在Debian 11上安装Docker,你可以按照以下步骤操作: 更新软件包索引: sudo apt update 安装必要的软件包以允许apt通过HTTPS使用仓库: sudo apt install ca-certificates curl gnupg lsb-release 添加Docker的 阅读全文
posted @ 2024-04-22 11:13 zhaoguanhao 阅读(321) 评论(0) 推荐(0) 编辑
摘要: DBCC SHRINKFILE (N'templog', 256); USE lqtestGO -- Truncate the log by changing the database recovery model to SIMPLE.ALTER DATABASE lqtestSET RECOVER 阅读全文
posted @ 2024-04-11 14:48 zhaoguanhao 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 1, golang package main import ( "fmt" "io/ioutil" "net/http" ) func main() { http.HandleFunc("/", serveHome) http.Handle("/static/", http.StripPrefix( 阅读全文
posted @ 2024-04-09 14:33 zhaoguanhao 阅读(15) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 11 下一页