会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Leonardo-li
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
14
15
16
17
18
19
20
21
22
···
27
下一页
2020年8月20日
docker映射端口无法访问
摘要: 场景: prometheus + grafana 监控docker主机 问题: 启动cadvisor容器后外部无法访问映射端口,iptables,selinux,firewall都已经关闭了,还时访问不到,ping对应的容器IP地址是没有问题的。 解决方法: 运行容器时添加 --net host 参
阅读全文
posted @ 2020-08-20 18:06 Leonardo-li
阅读(1655)
评论(0)
推荐(1)
2020年8月18日
Tomcat日志分析
摘要: 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
阅读(405)
评论(0)
推荐(0)
linux服务器性能测试
摘要: 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
阅读(514)
评论(0)
推荐(0)
2020年8月14日
mysql库表结构对比工具
摘要: 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
阅读(2944)
评论(0)
推荐(0)
2020年7月24日
网络基础知识,不懂看这里
摘要: 1)什么是链接? 链接是指两个设备之间的连接。它包括用于一个设备能够与另一个设备通信的电缆类型和协议。 2)OSI 参考模型的层次是什么? 有 7 个 OSI 层:物理层,数据链路层,网络层,传输层,会话层,表示层和应用层。 3)什么是骨干网? 骨干网络是集中的基础设施,旨在将不同的路由和数据分发到
阅读全文
posted @ 2020-07-24 14:56 Leonardo-li
阅读(299)
评论(0)
推荐(0)
Python之redis、mysql进程守护
摘要: 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
阅读(224)
评论(0)
推荐(0)
linux文件查找工具
摘要: 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
阅读(372)
评论(0)
推荐(0)
2020年7月21日
nginx解决跨域问题
摘要: 1.1 什么是跨域问题? 在前端领域中,跨域是指浏览器允许向服务器发送跨域请求,从而克服Ajax只能同源使用的限制。 一般根据错误来定位是否是跨域问题,报错如下: 或者: 1.2 常见的跨域场景 URL 说明 是否允许通信 http://www.domain.com/a.js http://www.
阅读全文
posted @ 2020-07-21 11:17 Leonardo-li
阅读(3170)
评论(0)
推荐(0)
2019年12月29日
redis插入单个较大的键值
摘要: 1.前言: 在linux的命令行界面或者是进入到redis数据库中,在插入较大的键值时,由于命令行界面对于字符个数的限制,都不能完全将redis的键值粘贴上去,这个时通过shell脚本比较容易实现 2.涉及的文件 redis.sh #执行插入键值的脚本 redis.txt #存放键值数据的文件 3.
阅读全文
posted @ 2019-12-29 11:34 Leonardo-li
阅读(381)
评论(0)
推荐(0)
2019年12月28日
linux系统安全巡检脚本
摘要: 1 #!/bin/bash 2 3 #name: safe_check.sh 4 #Author: lipc 5 #Date: 2019-11-30 6 #Version: 1.0 7 #Notes: 此脚本用来做系统的安全巡检 8 9 read key 10 11 echo "警告:本脚本只是一个
阅读全文
posted @ 2019-12-28 17:38 Leonardo-li
阅读(1422)
评论(0)
推荐(0)
上一页
1
···
14
15
16
17
18
19
20
21
22
···
27
下一页
公告