摘要: 1、安装ollama ollma下载https://ollama.com/download/windows linux 安装curl -fsSL https://ollama.com/install.sh | sh运行ollama run gemma:2bollama run gemma:7b使用端 阅读全文
posted @ 2024-04-08 11:49 testway 阅读(49) 评论(0) 推荐(0) 编辑
摘要: 问题现象,启动nginx,提示版本不对 [root@k8s-test-node2 modules]# /data/nginx/sbin/nginxnginx: [emerg] module "/usr/lib64/nginx/modules/ngx_http_image_filter_module. 阅读全文
posted @ 2024-02-20 15:15 testway 阅读(68) 评论(0) 推荐(0) 编辑
摘要: 使用docker 搭建mysql ,docker-compose.yml version: "2.1" services: mysql: image: mysql:8.0.35 container_name: mysql8 environment: MYSQL_ROOT_PASSWORD: 2pq8 阅读全文
posted @ 2024-01-15 09:02 testway 阅读(116) 评论(0) 推荐(0) 编辑
摘要: opengauss数据库导入后,新增的用户没有权限,需要对schema下所有表进行批量授权,sql如下 #高斯对单表进行授权 GRANT Delete, Insert, References, Select, Trigger, Truncate, Update ON TABLE "db_test". 阅读全文
posted @ 2024-01-11 13:31 testway 阅读(62) 评论(0) 推荐(0) 编辑
摘要: python ElementTree操作xml节点,包括增删改查 xml原文 <Voucher> <Id>967a198783d14835860574c697478156</Id> <Remark>main摘要443344245567583384475</Remark> <Delete>需要删除的节 阅读全文
posted @ 2023-11-08 15:40 testway 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 定时备份mysql指定数据库脚本,保留60天 #!/bin/bash # path cd /opt/pmo/mysql_data target_directory="/opt/pmo/mysql_data" # get time now current_time=$(date +%s) # cal 阅读全文
posted @ 2023-10-10 11:34 testway 阅读(7) 评论(0) 推荐(0) 编辑
摘要: Loadrunner 发生的json请求中,包含有中文。回放脚本,实际发送出去的body 不是中文,而是乱码,这就导致请求不正确,影响测试的实际结果。 要解决这个问题,先要把中文使用函数lr_convert_string_encoding转换一下,再在请求中引用该转换后的参数,回放的请求数据正常。示 阅读全文
posted @ 2023-09-15 18:49 testway 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 现在学生经常需要平板上网课,读书郎家长端有监控平板平板的功能,但是频繁手动操作,也不方便。就用appium实现定时去抓取一下平板使用情况。经过一天的时间,终于实现稳定、定时抓取读书郎平板屏幕截图。里面有一些很实用的知识点 from appium import webdriver import tim 阅读全文
posted @ 2022-10-05 09:14 testway 阅读(530) 评论(0) 推荐(0) 编辑
摘要: 我们在做selenium做UI自动化的时候,chrome 一般都会启动一个新的浏览器。有一个测试,我在chrome安装了油猴插件,新打开的浏览器就没有插件,使用起来就不方便,这样就需要selenium 能直接操作我手动打开的浏览器,在这样的基础上,测试就方便多了。 那么怎样才能让 selenium直 阅读全文
posted @ 2022-09-10 11:04 testway 阅读(4588) 评论(0) 推荐(0) 编辑
摘要: fastjson版本总是出现漏洞,已经使用了较低fastjson版本,需要更新高版本fastjson,由于java应用比较多,逐个打包重新发布版本是不可能的,需要把jar包中的低版本fastjson替换成高版本fastjson,作成shell脚本,这样可以批量解压替换。 deal_path="/Da 阅读全文
posted @ 2022-09-03 12:30 testway 阅读(141) 评论(0) 推荐(0) 编辑