11 2018 档案
摘要:格式:INSERT(str,pos,len,newstr) 解释: str:查询的例 pos:起始位置 len:从起始位置开始被后面newstr替换的长度 newstr:需要被替换的字符串 例: 后四位脱敏(将身份证号码从15位开始,替换4位为****) 中间6位脱敏(从第7位开始,替换6位)
阅读全文
摘要:[root@localhost 4]# echo "123" >test.zip 生成sha256文件校验文件 [root@localhost 4]# sha256sum test.zip >test.zip.sha256sum 使用sha256sum校验文件一致性 [root@localhost 4]# sha256sum -c >test.zip [root@localhost 4]#...
阅读全文
摘要:简述: Jenkins在每一次的执行构建后,都会对该构建的项目生成一个历史构建记录以及生成一份历史构建的项目发布包,长期累积可能会占用大量磁盘空间 jenkins构建jobs路径如下图: 解决办法: 删除jenkins旧的构建来释放磁盘空间 1.进入jenkins服务器对应构建Jobs目录删除,如上
阅读全文
摘要:在jenkins中配置自动更新部署项目时,如果采取用execute shell启动/关闭tomcat,会发现可以进行关闭tomcat, 但是无法启动tomcat,虽然构建会显示执行成功,但是查看进程,tomcat是没有启动的。这是因为Jenkins默认 会在Build结束后Kill掉所有的衍生进程。
阅读全文
摘要:问题:公司业务是用的jdk1.7的,但最新版的jenkins (jenkins-2.138.2-1.1.noarch.rpm)却只支持jdk1.8 分析: 1.公司业务用的jdk1.7不能换,不然影响业务软件兼容性,可能会出问题。 2.可将jenkins换为支持jdk1.7的旧版本(好像可行的样子)
阅读全文
摘要:工具: centos 7 jenkins-2.138.2-1.1.noarch.rpm,2018年10月10号最新版(简单rpm包安装见https://www.cnblogs.com/dannylinux/p/9907794.html) jdk1.8,新版jenkins要求1.8 测试脚本/tmp/
阅读全文
摘要:[root@danny lib]# cd /usr/lib/jvm [root@danny jvm]# [root@danny jvm]# ls java java-1.8.0-openjdk-1.8.0.181-3.b13.el7_5.x86_64 jre-1.7.0-openjdk-1.7.0.
阅读全文
摘要:wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key y
阅读全文