摘要:
在使用https git拉取代码时,每次git pull的时候都会让输入用户名和密码 进入项目目录 命令:git config --global credential.helper store 然后会生成一个本地文件用于记录用户名和密码,这个文件我们无需关心 再次git pull一下,会让输入用户名
阅读全文
posted @ 2019-05-29 13:32
chester·chen
阅读(2297)
推荐(0)
摘要:
def getHost(){ def remote = [:] remote.name = 'server02' remote.host = '39.19.90' remote.user = 'root' remote.port = 22 remote.password = '#########' remote.allowAnyHosts ...
阅读全文
posted @ 2019-05-29 11:56
chester·chen
阅读(340)
推荐(0)
摘要:
一、安装redis 第一步:下载redis安装包 wget http://download.redis.io/releases/redis-4.0.6.tar.gz 第二步:解压压缩包 tar -zxvf redis-4.0.6.tar.gz 第三步:yum安装gcc依赖 yum install g
阅读全文
posted @ 2019-05-25 18:42
chester·chen
阅读(204)
推荐(0)
摘要:
dotnet应用用IdentityServer4做了登陆的功能,本地运行没有问题,部署到服务器上面就出现上面的问题,打开服务器的日志记录开关,获取到下面的异常信息。原来是 通过分析日志信息,发现报错的原因是因为IdentityServer4的加密签名导致的。 IS4中如果token的类型是JWT,则
阅读全文
posted @ 2019-05-25 14:25
chester·chen
阅读(1145)
推荐(0)
摘要:
创建类的执行流程: 遇到class关键词,执行type的__init__方法,创建Foo类这个对象 遇实例化对象(obj=Foo()),执行type里的__call__方法 在Python中一切皆为对象,class(类)作为模板同样也是对象。 我们可以通过type在运行期间动态创建类,同样我们也可以
阅读全文
posted @ 2019-04-29 09:33
chester·chen
阅读(167)
推荐(0)
摘要:
构建镜像最具挑战性的一点是使镜像大小尽可能的小。Dockerfile中的每条指令都为图像添加了一个图层,您需要记住在移动到下一层之前清理任何不需要的工件。对于多阶段构建,您可以在Dockerfile中使用多个FROM语句。每个FROM指令可以使用不同的基础,并且每个指令都开始一个新的构建。您可以选择
阅读全文
posted @ 2019-04-28 16:29
chester·chen
阅读(1708)
推荐(0)
摘要:
earliest: 当各分区下有已提交的offset时,从提交的offset开始消费;无提交的offset时,从头开始消费 latest :当各分区下有已提交的offset时,从提交的offset开始消费;无提交的offset时,消费新产生的该分区下的数据 enable_auto_commit (b
阅读全文
posted @ 2019-04-28 10:38
chester·chen
阅读(1124)
推荐(0)
摘要:
kafka 在send之后不会立即把消息发送到broker。会把消息发到producer所在电脑内存里,后端的IOThread会扫描内存,并从中取出消息进行消费。 在调用close()或者flush()方法之后,会立即将消息发送到broker里。
阅读全文
posted @ 2019-04-28 10:36
chester·chen
阅读(1579)
推荐(0)
摘要:
1.下载https://www.elastic.co/downloads/logstash到/usr/local/src 2.解压 3.创建配置文件 输入 运行 4.新建测试log文件 写入测试数据:aa 5.打开kibana 新建index partner 查看 至此,简单完成了日志系统,生产中,
阅读全文
posted @ 2019-04-10 13:08
chester·chen
阅读(1210)
推荐(1)
摘要:
which nohup .bash_profile中并source加载 如果没有就安装吧 yum provides */nohup nohup npm run start & nohup ./kibana &
阅读全文
posted @ 2019-04-10 12:21
chester·chen
阅读(571)
推荐(0)