上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 21 下一页
摘要: 《jenkins+maven+gitlab+ansible自动化发布java项目》 1.自动化部署流程 (1)首先研发提交代码到gitlab的项目分支上。 (2)Jenkins监听对应的gitlab 分支是否有变化。 (3)如果gitlab分支有变化,jenkins拉取对应分支代码到jenkins服 阅读全文
posted @ 2021-03-14 16:06 Leonardo-li 阅读(849) 评论(0) 推荐(0) 编辑
摘要: 场景: prometheus + grafana 监控docker主机 问题: 启动cadvisor容器后外部无法访问映射端口,iptables,selinux,firewall都已经关闭了,还时访问不到,ping对应的容器IP地址是没有问题的。 解决方法: 运行容器时添加 --net host 参 阅读全文
posted @ 2020-08-20 18:06 Leonardo-li 阅读(1578) 评论(0) 推荐(1) 编辑
摘要: 1 #!/bin/bash 2 #Shell statistics.sh 3 #Author lipc 4 #Date 20200818 5 #Ps tomcat接入日志分析,需要tomcat日志开启访问时间记录 6 7 time1=$(date "+%Y-%m-%d %H:%M:%S") 8 ti 阅读全文
posted @ 2020-08-18 18:45 Leonardo-li 阅读(382) 评论(0) 推荐(0) 编辑
摘要: 1 #!/bin/sh 2 #Shell menu.sh 3 #Author lipc 4 #Date 20200818 5 #Ps linux系统压测,有些工具需要下载,脚本不完善,需要调试 6 7 # Check if user is root 8 [ $(id -u) != "0" ] && 阅读全文
posted @ 2020-08-18 18:02 Leonardo-li 阅读(490) 评论(0) 推荐(0) 编辑
摘要: 1.下载工具包 rpm -Uvh http://repo.mysql.com/yum/mysql-connectors-community/el/7/x86_64/mysql-connector-python-2.1.8-1.el7.x86_64.rpm yum -y install mysql-u 阅读全文
posted @ 2020-08-14 14:42 Leonardo-li 阅读(2890) 评论(0) 推荐(0) 编辑
摘要: 1)什么是链接? 链接是指两个设备之间的连接。它包括用于一个设备能够与另一个设备通信的电缆类型和协议。 2)OSI 参考模型的层次是什么? 有 7 个 OSI 层:物理层,数据链路层,网络层,传输层,会话层,表示层和应用层。 3)什么是骨干网? 骨干网络是集中的基础设施,旨在将不同的路由和数据分发到 阅读全文
posted @ 2020-07-24 14:56 Leonardo-li 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 1 #!/usr/bin/env python3 2 # -*- coding: utf-8 -*- 3 # author:lipc 4 5 import os,time 6 process_name = ["mysql","redis"] 7 for i in process_name: 8 tr 阅读全文
posted @ 2020-07-24 14:48 Leonardo-li 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 1 #!/bin/sh 2 # lazy find 3 4 # GNU All-Permissive License 5 # Copying and distribution of this file, with or without modification, 6 # are permitted 阅读全文
posted @ 2020-07-24 14:40 Leonardo-li 阅读(362) 评论(0) 推荐(0) 编辑
摘要: 1.1 什么是跨域问题? 在前端领域中,跨域是指浏览器允许向服务器发送跨域请求,从而克服Ajax只能同源使用的限制。 一般根据错误来定位是否是跨域问题,报错如下: 或者: 1.2 常见的跨域场景 URL 说明 是否允许通信 http://www.domain.com/a.js http://www. 阅读全文
posted @ 2020-07-21 11:17 Leonardo-li 阅读(2167) 评论(0) 推荐(0) 编辑
摘要: 1.前言: 在linux的命令行界面或者是进入到redis数据库中,在插入较大的键值时,由于命令行界面对于字符个数的限制,都不能完全将redis的键值粘贴上去,这个时通过shell脚本比较容易实现 2.涉及的文件 redis.sh #执行插入键值的脚本 redis.txt #存放键值数据的文件 3. 阅读全文
posted @ 2019-12-29 11:34 Leonardo-li 阅读(364) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 21 下一页