摘要: 公众号管用前缀词语 突发 注意 定了 今晚抵达 好消息 痛心 重磅 刚刚 今起 赶紧收藏 放假通知 公众号推文图片尺寸 头条推文 900383 非头条尺寸 200200 公众号内容布局 天气 热点 原创内容 事件 相关记录 公众号文章搜索 https://weixin.sogou.com/ 微博内容 阅读全文
posted @ 2025-06-09 11:04 w6h5n 阅读(9) 评论(0) 推荐(0)
摘要: # 保留最后 10000 行tail -n 10000 /path/to/test.log > /tmp/temp.log \&& mv /tmp/temp.log /path/to/test.log 原理是将大的日志文件取最后10000行放到一个临时文件, 然后将临时文件覆盖掉大的日志文件。 阅读全文
posted @ 2025-04-08 10:53 w6h5n 阅读(88) 评论(0) 推荐(0)
摘要: 备份的数据有点多,需要保留30天内的数据 1 预览文件,先确认 find . -type f -mtime +30 2 确认后执行删除(任选其一) find . -type f -mtime +30 -delete 或者 find . -type f -mtime +30 -exec rm {} \ 阅读全文
posted @ 2025-04-08 09:48 w6h5n 阅读(459) 评论(0) 推荐(0)
摘要: 在centos7中可以使用Conda在不破坏系统环境的情况下安装python多个环境,这里记录安装Python3.10的过程。 1 安装wget yum install wget 2 下载Miniconda安装脚本 wget https://repo.anaconda.com/miniconda/M 阅读全文
posted @ 2025-04-08 08:49 w6h5n 阅读(642) 评论(0) 推荐(0)
摘要: 1 Ollama安装 访问地址 https://ollama.com/ 下载windows版本,默认安装到c盘不可选择其它的路径,这点比较坑。 但是你可以切换模型的路径这里修改为d:/models_path,变量名为:OLLAMA_MODELS,如图所示 验证变量值:echo %OLLAMA_MOD 阅读全文
posted @ 2025-04-02 15:57 w6h5n 阅读(109) 评论(0) 推荐(0)