上一页 1 2 3 4 5 6 7 ··· 14 下一页
摘要: 1、证书生成 生成密钥,采用的是des3算法 openssl genrsa -des3 -out server.key 2048 根据密钥签发申请文件CSR openssl req -new -key server.key -out server.csr#这一步主要是去除密钥的密码,便于后续部署op 阅读全文
posted @ 2024-12-31 14:22 zhaoguanhao 阅读(1285) 评论(0) 推荐(0)
摘要: use database_name; SELECT t.NAME AS TableName, p.rows AS RowCounts, SUM(a.total_pages) * 8/1024 AS TotalSpaceMB, SUM(a.used_pages) * 8/1024 AS UsedSpa 阅读全文
posted @ 2024-12-25 19:57 zhaoguanhao 阅读(16) 评论(0) 推荐(0)
摘要: 为了用 Go 语言编写一个程序,将 SQL Server 中每个表的大小信息传输到 Prometheus,你可以遵循以下步骤。这个过程包括连接到 SQL Server、执行查询获取表大小数据,并使用 Prometheus 客户端库将这些数据暴露给 Prometheus 抓取。步骤 1: 设置项目环境 阅读全文
posted @ 2024-12-25 17:30 zhaoguanhao 阅读(33) 评论(0) 推荐(0)
摘要: select o.name,i.rows from sysobjects o,sysindexes i where o.id=i.id and o.xtype='U' and i.indid<2 and i.rows>3000 order by i.rows DESC use [database_n 阅读全文
posted @ 2024-10-30 13:26 zhaoguanhao 阅读(21) 评论(0) 推荐(0)
摘要: NGINX于1.9.0版本开始支持stream模块来代理tcp连接。在Centos操作系统若前期以YUM方式安装了nginx,后期想要添加stream模块。 1.首先需要检查nginx版本是否支持这一特性,若已支持可直接安装模块,否则重装。2.其次按照如下步骤(部分步骤仅做参考,未必需要执行)2.1 阅读全文
posted @ 2024-10-29 13:35 zhaoguanhao 阅读(1204) 评论(0) 推荐(0)
摘要: SELECT request_session_id as spid, OBJECT_NAME(resource_associated_entity_id) AS tableNameFROM sys.dm_tran_locks WHERE resource_type = 'OBJECT' DECLAR 阅读全文
posted @ 2024-10-23 19:54 zhaoguanhao 阅读(20) 评论(0) 推荐(0)
摘要: .NET v2.0 Classic C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i IISREST 阅读全文
posted @ 2024-10-21 15:13 zhaoguanhao 阅读(26) 评论(0) 推荐(0)
摘要: SELECT * FROM sys.servers 阅读全文
posted @ 2024-10-16 19:20 zhaoguanhao 阅读(17) 评论(0) 推荐(0)
摘要: https://github.com/hey-hoho/ScheduleMasterCore/tree/master 阅读全文
posted @ 2024-10-10 16:48 zhaoguanhao 阅读(23) 评论(0) 推荐(0)
摘要: use <database_name> select top 500 * into #tb from Sys_LoggerOperate where CreateTime > dateadd(day, -1, getdate()) order by time desc select action 接 阅读全文
posted @ 2024-08-12 17:38 zhaoguanhao 阅读(17) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 14 下一页