03 2024 档案
摘要:vim /usr/share/vim/vim82/defaults.vim 将set mouse改为r,保存退出即可
阅读全文
摘要:debian11.6 download https://cdimage.debian.org/cdimage/archive/11.6.0/amd64/iso-dvd/
阅读全文
摘要:将数据还原到新的测试库,通常涉及数据库备份文件的还原或数据迁移。这里提供一种通用的SQL Server数据库还原到测试库的方法: 1. 数据库备份文件还原: •如果你有一个数据库备份文件(.bak),你可以通过SQL Server Management Studio (SSMS) 或 T-SQL命令
阅读全文
摘要:用户数据库迁移至其他盘 1. 分离数据库: •登录到SQL Server Management Studio (SSMS)。 •右键点击要迁移的用户数据库,选择“任务(Tasks)” -> “分离(Detach)”。 •在弹出的对话框中,勾选你要迁移的数据库,并确认分离操作。 2. 物理文件移动:
阅读全文
摘要:SELECT t.name AS TableName, c.name AS ColumnName, c.system_type_id AS DataTypeID, s.name AS DataTypeName, c.max_length AS MaxLength, c.is_nullable AS
阅读全文
摘要:sqlserver查询每张表的大小MB SELECT t.NAME AS TableName, s.NAME AS SchemaName, p.rows AS RowCounts, SUM(a.total_pages) * 8 /1024 AS TotalSizeMB FROM sys.tables
阅读全文
摘要:https://grafana.com/grafana/dashboards/
阅读全文
摘要:update & build @echo off rem for /f "tokens=2 delims==" %I in ('wmic os get localdatetime /value') do set datetime=%I for /f "tokens=2 delims==" %%I i
阅读全文
摘要:https://www.cnblogs.com/Bug-Hunter/p/17237328.html
阅读全文
摘要:https://blog.51cto.com/u_13066/6995364
阅读全文
摘要:https://grafana.com/grafana/dashboards/
阅读全文
摘要:https://prometheus.io/download/ 在Debian系统上安装Prometheus,可以按照以下步骤操作:1. 添加官方存储库首先,我们需要添加Prometheus的官方存储库到Debian系统中。以下是从Debian 11 Bullseye开始的安装步骤,对于Debian
阅读全文
摘要:nginx 4层负载层配置 Nginx 不是一个传统的4层负载均衡器,但可以通过 stream 模块配置 TCP/UDP 负载均衡。以下是一个简单的示例配置,展示如何配置 Nginx 作为4层负载均衡器: 在这个配置中,Nginx 监听在 12345 端口上的连接,并将它们代理到名为 backend
阅读全文
摘要:root@debian:~# cat /etc/network/interfaces## This file describes the network interfaces available on your system## and how to activate them. For more
阅读全文
摘要:https://blog.csdn.net/tangshiyilang/article/details/130618973
阅读全文
摘要:root@debian:~# cat /etc/systemd/system/nginx.service [Unit] Description=Nginx Service Documentation="http://nginx.org/en/docs/" After=network.target r
阅读全文
摘要:https://www.cmdschool.org/archives/21971
阅读全文
摘要:server2019 安装openssh 在Windows Server 2019上安装OpenSSH,你可以按照以下步骤操作: 打开“服务器管理器”。 选择“管理” > “添加角色和功能”。 在“添加角色和功能向导”中,选择“功能”,然后点击“下一步”。 在“选择功能”界面,勾选“OpenSSH
阅读全文
摘要:https://zhuanlan.zhihu.com/p/634969945 windows 一般自带 ssh 服务,只是需要去把服务开启下: 检查 OpenSSH 的可用性 以管理员身份打开 PowerShell 并运行: Get-WindowsCapability -Online | Where
阅读全文
摘要:debian 12.5 1, update Debian system sudo apt updatesudo apt upgrade 2, Install OpenJDK sudo apt install -y openjdk-11-jdk 3, Add Jenkins 存储库 wget -q -
阅读全文