python

1、 pip freeze 固化依赖包版本,生成依赖清单

--使用:在另一个新环境中快速下载依赖包

--pip install -r requirements.txt

2、 python 源库:https://pypi.org/simple

-pip install -r requirements.txt -i https://pypi.org/simple

3、pip install  -U requests    -U 参数:装最新版本

4、allure下载慢,本地代理下载后传上去

proxy curl -O <allure包地址>

scp allure-commandline.zip root@perf1.hogwargw.ceshiren.com:/tmp

进入服务器解压allure

unzip /tmp/allure-commandline.zip

从临时目录下copy到系统能访问到的目录下

mv /tmp/allure ~/local/allure

将allure文件夹下的bin添加到path

vim ~/.bash_profile

export PATH=/root/local/allure/bin/:$PATH

退出编辑后  . ~/.bash_profile

使用allure命令测试一下

5、job中配置

shell 中加载~/.bash_profile    : . ~/.bash_profile

6、重启节点:会应用bash_profile中的东西

ps -ef | grep java

kill -9 <PID:agent.jar>

posted @ 2022-05-16 16:47  ShirleyZGH  阅读(47)  评论(0)    收藏  举报