愤怒中的小草

博客园 首页 新随笔 联系 订阅 管理
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 16 下一页

2019年2月22日 #

摘要: """"import osimport time#fork只用于linux中pid = os.fork()print("hello")if pid == 0: print("子进程{},父进程是{}".format(os.getpid(),os.getppid()))else: print("父进程 阅读全文
posted @ 2019-02-22 23:37 愤怒中的小草 阅读(168) 评论(0) 推荐(0) 编辑

摘要: import timefrom concurrent.futures import ThreadPoolExecutor,as_completedfrom concurrent.futures import ProcessPoolExecutor#多进程编程#耗CPU的操作,用多进程编程;对于IO操 阅读全文
posted @ 2019-02-22 22:57 愤怒中的小草 阅读(187) 评论(0) 推荐(0) 编辑

2019年2月19日 #

摘要: 限流描述 /LBSer/p/4083131.html 第一步添加pom文件 第二步 添加配置 问题:由于实现完全基于封装好的jar包,a56爆大奖在线娱乐当异常发生时,接口返回的数据格式无法控制(直接在源码里写死了) 而a56爆大奖在线娱乐想返回基于自定义的json字符串 阅读全文
posted @ 2019-02-19 09:18 愤怒中的小草 阅读(211) 评论(0) 推荐(0) 编辑

2019年2月17日 #

摘要: 1. jenkins下载地址 https://jenkins.io/download/ 下载最新的war包,或者在更新插件的时候会报错 启动 2. 安装插件 安装gitlib和maven插件 修改镜像在maven的settings.xml文件里的mirrors节点,添加如下子节点 3. 全局配置 系 阅读全文
posted @ 2019-02-17 18:08 愤怒中的小草 阅读(304) 评论(0) 推荐(0) 编辑

2019年2月15日 #

摘要: 环境centos7 第一步安装scaner插件 第二步 重启之后配置sonarqube 进入Jenkins-->系统管理-->系统设置,找到sonarqube servers,填写相关信息,name自己起,url要填写完全,token使用前面复制的token。 由于a56爆大奖在线娱乐安装的jenkins和sonar 阅读全文
posted @ 2019-02-15 10:56 愤怒中的小草 阅读(757) 评论(0) 推荐(0) 编辑

摘要: 第一步 使用上一篇博客中下载的sonar6.7.6上传到centos7 准备 安装jdk1.8 解压unzip sonarqube-6.7.6.zip 由于elasticsearch需要非root用户启动 增加用户 adduser sonar passwd sonar 给sonarqube-6.7. 阅读全文
posted @ 2019-02-15 10:10 愤怒中的小草 阅读(249) 评论(0) 推荐(0) 编辑

2019年2月14日 #

摘要: sonar下载地址 https://www.sonarqube.org/downloads/ 下载请选择 然后解压 在目录F:\tools\sonarqube-6.7.6\bin\windows-x86-64 启动StartSonar.bat 在浏览器输入http://localhost:9000 阅读全文
posted @ 2019-02-14 14:06 愤怒中的小草 阅读(1004) 评论(0) 推荐(0) 编辑

2019年2月13日 #

摘要: 由于python提供的服务没有加入到注册中心,没有办法实现高可用现将python加入到注册中心实现高可用以下是基础样例,具体功能待完善 # coding:utf-8 import tornado.httpserver import tornado.ioloop import tornado.opti 阅读全文
posted @ 2019-02-13 20:28 愤怒中的小草 阅读(1788) 评论(0) 推荐(0) 编辑

2019年1月29日 #

摘要: docker安装以后的网络类型 说明:桥接网络 默认情况下启动的Docker容器,都是使用 bridge,Docker安装时创建的桥接网络,每次Docker容器重启时,会按照顺序获取对应的IP地址,这个就导致重启下,Docker的IP地址就变了 无指定网络 使用 --network=none ,do 阅读全文
posted @ 2019-01-29 15:48 愤怒中的小草 阅读(13348) 评论(0) 推荐(0) 编辑

摘要: 生成镜像docker build -t="eureka" .打标记docker tag eureka:latest 172.16.120.194:5000/eureka:latest上传到仓库docker push 172.16.120.194:5000/eureka:latest从仓库下载dock 阅读全文
posted @ 2019-01-29 09:31 愤怒中的小草 阅读(182) 评论(0) 推荐(0) 编辑

上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 16 下一页