会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Tigergao's Notes Record💻
NoBug💻
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
12
13
14
15
16
17
18
19
20
···
27
下一页
2021年2月15日
strace -cp 诊断
摘要: strace -c php do.php 各项含义如下: - % time:执行耗时占总时间百分比 - seconds:执行总时间 - usecs/call:单个命令执行时间 - calls:调用次数 - errors: 出错次数 - syscall: 系统调用
阅读全文
posted @ 2021-02-15 20:59 tigergaonotes
阅读(239)
评论(0)
推荐(0)
2021年2月9日
shell运算符
摘要: 运算符号 代表意义 = 等于 应用于:整型或字符串比较 如果在[] 中,只能是字符串 != 不等于 应用于:整型或字符串比较 如果在[] 中,只能是字符串 < 小于 应用于:整型比较 在[] 中,不能使用 表示字符串 > 大于 应用于:整型比较 在[] 中,不能使用 表示字符串 -eq 等于 应用于
阅读全文
posted @ 2021-02-09 12:32 tigergaonotes
阅读(71)
评论(0)
推荐(0)
CPU飙升排查
摘要: 怎么排查CPU飙升 线上有些系统,本来跑的好好的,突然有一天就会出现报警,CPU使用率飙升,然后重启之后就好了。例如,多线程操作一个线程不安全的list往往就会出现这种现象。那么怎么定位到具体的代码范围呢?今天笔者就教大家一个小技巧 代码准备 这次,笔者准备了一个demo代码,大致线程模型是这样的:
阅读全文
posted @ 2021-02-09 09:37 tigergaonotes
阅读(198)
评论(0)
推荐(0)
2021年2月1日
python类和函数
摘要: #/usr/bin/python #coding=utf-8 class Car(): def __init__(self,name,year): self.name = name self.year = year def model(self): vv = f"my car is {self.na
阅读全文
posted @ 2021-02-01 21:22 tigergaonotes
阅读(51)
评论(0)
推荐(0)
2021年1月26日
oracle体系结构
摘要: Oracle的体系结构大体上分为两部分: Instance(实例) 和 Database(数据库) 。 如图1所示: 图1 Oracle 数据库体系结构 我们平时说的 Oracle Server (Oracle服务器)就是由 Oracle Instance 和 Oracle Database 组成的
阅读全文
posted @ 2021-01-26 21:43 tigergaonotes
阅读(174)
评论(0)
推荐(0)
2021年1月25日
python使用pip安装库超时报错解决办法
摘要: 原因:pip源超时了,安装不上 pip install matplotlib -i http://pypi.douban.com/simple --trusted-host pypi.douban.com 阿里云 http://mirrors.aliyun.com/pypi/simple/ 中国科技
阅读全文
posted @ 2021-01-25 21:13 tigergaonotes
阅读(198)
评论(0)
推荐(0)
2021年1月24日
清理僵尸进程
摘要: [oracle@unspaydb1 ~]$ toptop - 10:16:52 up 263 days, 23:42, 6 users, load average: 13.11, 10.55, 8.19Tasks: 1111 total, 7 running, 1103 sleeping, 0 st
阅读全文
posted @ 2021-01-24 19:41 tigergaonotes
阅读(288)
评论(0)
推荐(0)
2021年1月20日
python采用json.dump和json.load存储数据
摘要: #!/usr/bin/python # -*- coding: UTF-8 -*- import json numbers = [2,3,4,7,11,13] filename = 'numbers.json' with open(filename,'w') as f: json.dump(numb
阅读全文
posted @ 2021-01-20 22:33 tigergaonotes
阅读(116)
评论(0)
推荐(0)
2021年1月17日
python异常处理
摘要: 使用 try-except代码块来处理异常。
阅读全文
posted @ 2021-01-17 21:03 tigergaonotes
阅读(60)
评论(0)
推荐(0)
2021年1月16日
pyhon笔记入门
摘要: 人生苦短,我用Python 博客园精华区01-15 23:46 (一)认识Python Python背景介绍 Python的格言: Life is short,use python. (人生苦短,我用Python。) 由Guido van Rossum于1989年圣诞节为打发无聊时间,而开发的一个新
阅读全文
posted @ 2021-01-16 22:27 tigergaonotes
阅读(193)
评论(0)
推荐(0)
上一页
1
···
12
13
14
15
16
17
18
19
20
···
27
下一页
公告