博客日历
没有更新博客的时候,我都在认真对待生活~
Linux常用命令
服务器端口探测 yum install -y nmap nmap直接IP地址/域名 nmap -Pn 127.0.0.1 查询文件 查询文件-格式化日期 Linux系统中ll命令显示内容日期格式 单次执行 ll -rt --time-style="+%Y-%m-%d %H:%M:%S" 永久生效 sudo echo "export TIME_STYLE='+%Y-%m-%d %H:%M:%S'" >> /etc/profile && source /etc/profile 查询磁盘空间 查询大文件占用 在Linux中如何查找最大的10个文件方法汇总 获取大于100M的文件列表 find -type f -size +100M -print0 | xargs -0 du -h | sort -nr 获取指定目录下最大的前10个文件 find / -type f -print0 | xargs -0 du -h | sort -rh | head -n...
日记|2025/12/14
为什么富人往往能够比较容易挣到钱,一个源于我自己从弹珠机游戏引发的🤔思考。
日记|2025/12/13
2025/12/13
Hexo主题butterfly美化
Hexo-butterfly文章顶部添加波浪效果
莔记工具箱 | 倒数纪念日Lite
Ai辅助编程开发,欢迎扫码体验!无广、纯净!
WSL中安装Ubuntu并启用远程连接
参考博客 WSL2 安装 GUI,并使用 XRDP实现连接(内含汉化操作) Ubuntu换阿里云源 备份系统源 cp /etc/apt/sources.list /etc/apt/sources.list.backup 清空源 > /etc/apt/sources.list 添加阿里云源 deb https://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiversedeb https://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiversedeb https://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiversedeb https://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe...
Linux下压力测试Stress工具
CPU及内存压力测试 ubuntu下安装stress sudo apt updatesudo apt install stressstress --version cron定时任务配置 每5分钟执行一次,仅在05-21点之间执行。 */10 5-21 * * * CRON_RANDOM_DELAY=1 /root/stress/stress.sh >> /var/log/stress_test.log 2>&1 stress.sh脚本 #!/bin/bash# 获取当前时间戳START_TIME=$(date +"%Y-%m-%d %H:%M:%S")START_SEC=$(date +%s)echo "============================================="echo "压力测试开始时间: $START_TIME"echo "---------------------------------------------"#...
Linux配置Git访问
生成ssh-key密钥对(公钥\私钥) ssh-keygen -t rsa -C "your_email@xx.com" [root@root .ssh]# ssh-keygen -t rsa -C "your_email@xx.com"Generating public/private rsa key pair.Enter file in which to save the key (/root/.ssh/id_rsa): # 确认密钥保存路径Enter passphrase (empty for no passphrase): # 确认是否设置私钥密码Enter same passphrase again: Your identification has been saved in /root/.ssh/id_rsa. # 打印私钥保存路径Your public key has been saved in /root/.ssh/id_rsa.pub. # 打印公钥保存路径The key fingerprint...
Dm数据库使用记录
DM数据库中使用语法与MySQL异同之处 group by https://blog.csdn.net/Oraclesand/article/details/126870609 group_concat https://www.cnblogs.com/bugfdj/p/18547505 https://www.cnblogs.com/yujin595/p/9829821.html DM数据库中使用 在DM8数据库中MERGE的单条数据的插入/更新使用示例: MERGE INTO "T_CUSTOMER_INFO" t1USING ( select #{customer_id} as customer_id , #{name} as name from dual ) t2 ON ( t1.customer_id = t2.customer_id and t1.TASK_ID IS NULL )WHEN MATCHED THEN ## 存在匹配记录,更新操作 UPDATE SET t1.name =...