自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(42)
  • 收藏
  • 关注

原创 Python版本切换的解决方法,升级Python 2.7 到 Python 3.7

之前解决问题的时候,记录的一个Python版本切换的解决方法,今天在解决其他问题的时候,查看了下之前写的这个解决方法。3、修改profile文件,在terminal里运行open ~/.bash_profile,打开~/.bash_profile,直接修改文件即可。2、安装pkg包,默认安装路径如下:/Library/Frameworks/Python.framework/Versions/3.7。使用Python 3.7时,直接将~/.bash_profile文件中3.7的版本打开,即。

2023-11-23 14:17:02 386

原创 linux服务器安装gitlab

重启gitlab , sudo gitlab-ctl restart。先简单配置IP,启动gitlab后,报错:502。.修改两个参数的端口,并去掉注释。内存不够导致,服务器的配置太低。重新配置IP+端口,再次测试。一、安装gitlab。二、配置gitlab。

2023-11-22 13:41:32 947

原创 解决Python3.10报错问题 SSLError(“Can‘t connect to HTTPS URL because the SSL module is not available

按照这两个步骤,问题解决。剩余详细的逻辑见博客。首先:先切换镜像源,没有解决。

2023-11-09 18:22:04 916 1

原创 解决Jenkins执行git脚本时报错:No such device or address问题

Jenkins执行BeanShell脚本时,报错:jenkins fatal: could not read Username for 'http://112.11.120.1': No such device or address。解决服务器拉取git仓库的代码权限,使用高级子模块克隆功能。

2023-11-09 18:09:25 940

原创 Mac mysql安装

MySQL :: Download MySQL Community Serverhttps://dev.mysql.com/downloads/mysql/初始密码设置:配置变量 vim ~/.bash_profile中PATH=$PATH:/usr/local/mysql/bin关闭掉MySQL系统服务,从系统偏好进入【进入shell操作,输入密码】sudo su【进入数据库,重新赋值】./mysqld_safe --skip-grant-tables &..

2022-01-04 03:29:45 176

原创 Mac Allure配置及使用-解决allure版本不兼容导致无法打开报告

换本从Windows到Mac后,工程中的allure无法使用,报错如下:admin@admindeMacBook% allure serve allure-resultzsh: command not found: allure没有安装allure,也没有配置环境变量1、登录allure官网,https://github.com/allure-framework/allure2/releases/tag/2.13.10,下载allure包解压,文件位置如下:2、配置环境变量

2021-07-01 09:29:38 2786

原创 Github删除&上传项目

1、地址:https://github.com/2、删除github项目:3、上传github项目:

2021-02-14 18:54:52 398

原创 Restful Missing URI template variable ‘product_id‘ for method parameter of type int]解决

问题一:2020-11-15 14:33:37.285 [http-nio-9898-exec-4] WARN o.s.w.s.m.support.DefaultHandlerExceptionResolver - Resolved [org.springframework.web.bind.MissingPathVariableException: Missing URI template variable 'product_id' for method parameter of type int.

2020-11-15 05:32:11 1288 1

原创 Virtual Box问题:网络连接&安装中文&分辨率The virtual machine ‘CentOSB‘ has terminated

网络连接不上,ping www.baidu.com找不到主机<转>https://www.cnblogs.com/ezrealyi/p/12513602.html的

2020-10-10 11:17:00 749

原创 VirtualBox在Windows10平台报错rc=-5640问题解决方法

The virtual machine 'CentosOtherLinux01' has terminated unexpectedly during startup with exit code 1 (0x1)VirtualBox error in SupR3HardenedWinReSpa rc=-5640查找网上解决方法:D:\Program Files\Oracle\VirtualBox\drivers\vboxdrv,进入该目录后,点击VBoxDrv.inf,右击,选择..

2020-09-18 10:20:45 5173 5

原创 Windows SSH多个账号key设置

Windows SSH多个账号key设置$ ssh-keygen -t rsa -b 4096 -C "[email protected]"windows执行ssh-add报错如下:ssh-add .\.ssh\id_rsaError connecting to agent: No such file or directory查看ssh-agent服务,发现服务没有启动get-service ssh*Status Name Displ

2020-09-17 16:12:22 376

原创 Windows Git下载及环境变量配置

一、Git下载使用Windows电脑下载Git,官网下载基本不到20%就挂掉了,无法下载下来https://git-scm.com/download/win(很难下载)于是使用淘宝镜像进行下载,https://npm.taobao.org/mirrors/git-for-windows/,速度很快,完全没有问题。二、Windows Git环境变量配置需要配置三个变量,我直接配置到了系统变量Path下了,可用。D:\Program Files\Git\binD:\Program F

2020-09-16 20:00:11 1067 1

原创 JMeter调用webservice接口报错:java.net.MalformedURLException: Illegal character found in host: ‘/‘

今天使用Jmeter5.3,调用webservice接口时,一直报错:Content-Type text/xml X-Gaia-Api-Key 30adfd-a23-2e026 执行后报错如下:java.net.MalformedURLException: Illegal character found in host: '/' at java.net.URL.<init>(Unknown Source) at java.net.URL.<i...

2020-09-16 17:06:56 9040 4

原创 mac java环境配置及插件安装maven&lombok

安装git: 安装jdk:下载地址:https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html安装jdk后路径查询:/usr/libexec/java_home -V默认JDK1.8(Oracle)Home : /Library/Java/JavaVirtualMachines/jdk1.8.0_251.jdk/Contents/Home配置环境变量:/Library/Java/Ja...

2020-09-12 23:23:48 306

原创 python3安装使用

下载安装python3,地址:https://www.python.org/downloads/release/python-380/或者使用:brew install python3 安装which pythonwhich python3python安装路径:系统路径:/System/Library/Frameworks/Python.framework/Version...

2020-09-08 21:39:45 214

原创 Vue&React官网及UI组件库&axios https异步交互实例

VUE:https://element.eleme.cn/#/zh-CN/component/imageReact:https://ant.design/index-cn

2020-09-02 21:50:40 815

原创 springboot openapi接口文档依赖报错及解决方法:Unable to read meta-data for class org.springdoc.core.SwaggerUiConf

java.lang.IllegalStateException: Unable to read meta-data for class org.springdoc.core.SwaggerUiConfigParameters at org.springframework.boot.autoconfigure.AutoConfigurationSorter$AutoConfigurationClass.getAnnotationMetadata(AutoConfigurationSorter.java...

2020-08-29 02:50:53 4215 1

原创 Spring boot使用zuul网关超时解决方法:com.netflix.zuul.exception.ZuulException: Forwarding error

报错内容如下:2020-08-29 00:26:51.232 WARN 43067 --- [io-20000-exec-6] o.s.c.n.z.filters.post.SendErrorFilter : Error during filteringcom.netflix.zuul.exception.ZuulException: Forwarding errorCaused by: com.netflix.client.ClientException: nullCaused by..

2020-08-29 01:52:44 3885

原创 No Feign Client for loadBalancing defined. Did you forge to include spring-cloud-starter-netflix-rib

问题,启动SprintBoot服务时,抛出异常如下:Caused by: java.lang.IllegalStateException: No Feign Client for loadBalancing defined. Did you forget to include spring-cloud-starter-netflix-ribbon? at org.springframework.cloud.openfeign.FeignClientFactoryBean.loadBalance(...

2020-08-28 09:12:54 4849 1

原创 第一个vue实例数据绑定

环境依赖:1、安装node,brew install nodebrew install node==> Downloading https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/bottles/icu4c-67.1.catalina.bottle.tar.gz######################################################################## 100.0%==>

2020-08-17 12:35:19 250

原创 解决Mac安装brew报错Error,镜像源问题

curl https://glide.sh/get | shgo get github.com/Masterminds/glidehttps://glide.sh/Mac安装brew报错1、删除Homebrew文件夹下所有文件cd /Users/didi/Library/Caches/Homebrew2、重新下载homebrew,命令:/usr/bin/ruby -...

2020-08-16 21:15:05 5304 1

原创 Docker使用1

Try running a container: Copy and paste this command into your terminal and then come backdocker run -dp 80:80 docker/getting-started使用手册:https://docs.docker.com/Settings:Configuration:https://docs.docker.com/engine/reference...

2020-08-16 08:22:35 7743

原创 2020-08-11 No module named ‘ToolsUtils‘

pytest test_multiKeyAdd.py --html=report.html --self-contained-htmlERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]pytest: error: unrecognized arguments: --html=report.html --self-contained-html inifile: None rootdir: /Users/test/Py..

2020-08-11 21:27:57 505

原创 python2安装libxml2和libxslt包的艰辛历程

背景:python2于2020-1-1日停止更新包,已有项目用python2编写的脚本,导入了包:libxml2和libxslt,执行脚本,没有这两个包,于是各种安装下载。解决方法:1、下载RPM包,http://rpmfind.net/linux/rpm2html/search.php?query=libxml2http://rpmfind.net/linux/RPM/openmandriva/cooker/riscv64/main/release/lib64xslt1-1.1..

2020-07-28 18:01:21 2948 1

原创 总结:解决ModuleNotFoundError: No module named ‘tools‘问题

调试接口自动化Case时,在Pycharm IDE运行没有问题ipython3 ArgentinaAccess.pyTraceback (most recent call last): File "ArgentinaAccess.py", line 7, in <module> import toolModuleNotFoundError: No module named 'tool'python3 ArgentinaAccess.pyTraceback (mos...

2020-07-15 13:12:35 34322 2

原创 Mac升级10.5.5后,Pycharm报错unKnown error,重新安装后可以使用

pycharm报错:com.illuminatedcloud.intellij.builder.ModifiedIndicatorManagementListener.fileContentLoaded(Lcom/intellij/openapi/vfs/VirtualFile;Lcom/intellij/openapi/editor/Document;)V使用解决方法:1、删除rm -rf/Users/xinyuqing/Library/Preferences/PyCharm2018.1/p.

2020-07-06 12:08:01 936

原创 java unused import statement找不到jdk,最终卸载IDE重新安装后生效

方法一:点击 File-》invalidate Caches/Restart... 重启IDE后,没有生效方法二:重新设置maven,然后使用方法一,重启后仍然没有生效重新build工程/Library/Java/JavaVirtualMachines/jdk1.8.0_251.jdk/Contents/Home/bin/java -Dmaven.multiModuleProjectDirectory=/Users/xinyuqing/IdeaProjects/STest/sr...

2020-06-30 15:39:56 510

原创 Mac电脑Charles安装

Mac电脑安装Charles:1.charles的下载地址:https://www.charlesproxy.com/download/ 下载对应系统的Charles2.charles破解地址:https://www.zzzmode.com/mytools/charles/ 打开链接,按照上面的提示一步一步来就好,破解很好用。Charles在Mac上的破解方法:1...

2020-06-03 10:59:53 3368 1

原创 利用shell脚本通过ssh绕过输入密码直接登录主机 expect方式

场景:需要实现ssh自动登录安装expect: brew install expect脚本:vim test, 加执行权限 chmod +x test#!/usr/bin/expectspawn ssh [email protected] "*password:"send "qwe1234567890"expect "*#"interact执...

2020-04-12 20:01:24 626

原创 Mac go环境配置

1、安装go,https://golang.google.cn/,下载软件https://golang.google.cn/dl/2、默认安装地址:在隐藏文件夹下 /usr/local/go3、配置环境变量,GOPATH,GOROOT,GOBINcat ~/.bash_profileexport GOPATH="/Users/didi/go"export GOROOT...

2020-04-12 11:49:50 2064

原创 解决Jenkins调用python脚本,报错:from jira import JIRAImportError: No module named jira

原文链接:https://blog.csdn.net/alice_tl/article/details/877365521、python3.7官网下载:https://www.python.org/downloads/, downloads-》python3.7.7 下载稳定版本包2、安装pkg包,默认安装路径如下:/Library/Frameworks/Python.framework/...

2020-04-08 07:33:03 170 1

原创 Python2和Python3 request请求module报错解析

python2和python3环境切换,调用request请求时,python3不识别python2的调用方法,module不一样导致,出现问题如下:python2: import urllibpython3: import urllib.request, import urllib.parse1、module 'urllib' has no attribute 'urlopen'...

2019-12-23 23:05:12 437

原创 python3读取yaml文件

将通用内容存放在yaml中,替换时只需要yaml文件即可。host.yamlhost: 10.96.82.148readYaml.py# -*- coding:utf8 -*-import osimport yamlcurrent_path = os.path.abspath(os.path.dirname(__file__)) //获取当前地址print(curr...

2019-12-06 10:39:40 839

原创 python3.7 mysql报错解决方法TypeError: selectSQL() missing 1 required positional argument: 'self'

报错一:raise err.InterfaceError("(0, '')")pymysql.err.InterfaceError: (0, '')数据库打开后直接关闭了,执行sql查询时报错,解决方法:借鉴同学:https://blog.csdn.net/lluozh2015/article/details/78411884报错二:TypeError: selectSQ...

2019-11-18 20:17:02 3511

原创 python3.7 导入自定义模块报错:ModuleNotFoundError: No module named 'helper'

1、报错:ModuleNotFoundError: No module named 'helper'打印出 sys.path和site.getsitepackages# -*- coding:utf8 -*-import sysimport siteimport mockevent.event2 as event2if __name__ == '__main__': ...

2019-11-18 16:54:06 6852 1

原创 【1】mysql报错ERROR 2003 (HY000)和ERROR 1045 (28000)

mysqlmysql: [Warning] Using a password on the command line interface can be insecure.ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1' (111)解决方法:重启mysql:sudo /etc/init.d/my...

2019-11-13 10:32:34 417

原创 python3.7 unittest执行选中的用例

unittest使用二:执行选中的用例unittest提供了基本类 TestCase,可以在此基础上创建新的testCase,如:import unittestclass testABC(unittest.TestCase): def testAB(self): a=1 b=1 self.assertEqual(a,1)def ...

2019-11-10 11:51:08 517

原创 python3.7 a bytes-like object is required not 'str'

return base64.b64encode(base64.b64encode(str(dest1))) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/base64.py", line 58, in b64encode encoded = binascii.b2a_base64(...

2019-11-04 20:31:17 762

原创 Excel计算公式使用

ROUNDUP向上取整,第一个参数为数字,第二个参数为小数点位数(0,结果没有小数点;1,结果小数点为1),如:=ROUNDUP(1.1,0) = 2=ROUNDUP(2.1,0) = 3=ROUNDUP(21.0001,1) = 2.2插入计算公式,如:A2=11,Result=ROUNDUP(A2*10%,1) = 2Excel取小公式:A2=10,C2=1, Result...

2019-11-01 21:59:06 376

原创 python3.7 unittest的使用

1、安装最新pippython -m pip install --upgrade pip2、unittest使用# -*- coding:utf8 -*-import requests as rqimport unittesturl = "http://www.sss.com/pGetCom"headers = { 'content-type': 'applicat...

2019-10-18 00:27:11 813

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除