会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
littlevigra
用个简单例子来让自己清楚工作过程
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
3
4
5
6
7
8
9
10
11
···
70
下一页
2022年4月14日
python2.7 python3 yum
摘要: python3安装后’yum’命令执行会报错,需要修改以下配置: /usr/bin/yum: 将文件第一行改为/usr/bin/python2.7。(2.7.x也改为2.7)/usr/libexec/urlgrabber-ext-down: 将文件第一行改为/usr/bin/python2.7。 参
阅读全文
posted @ 2022-04-14 14:38 littlevigra
阅读(93)
评论(0)
推荐(0)
2022年4月12日
(转)PostgreSQL 来自欧罗巴Patroni 为什么选择ETCD
摘要: 1. etcd使用的是raft协议, raft 协议已经被不少的分布式数据库中使用,定义明确简单,实现方便,对比PAXOS协议(之前写过 raft 和 paxos 相关协议的文字), leader, follower, candidate 三种服务器的状态, 在RAFT 集群中的所有服务器中有体现,
阅读全文
posted @ 2022-04-12 15:40 littlevigra
阅读(143)
评论(0)
推荐(0)
2022年3月31日
jmap -dump
摘要: 1. linux系统1、导dump,cd到tomcat指定的jdk的bin目录下执行 jmap -dump: format=b,file=文件名 pid 2、导jstack, 在jdk的bin目录下执行: jstack pid > a1.txt,间隔几秒在执行一次jstack pid > a2.tx
阅读全文
posted @ 2022-03-31 15:07 littlevigra
阅读(536)
评论(0)
推荐(0)
2022年3月23日
openresty nginx Max open files
摘要: 1. cat /proc/11233/limits Max open files 65535 65535 files 2. cat /usr/lib/systemd/system/openresty.service # /usr/lib/systemd/system/openresty.servic
阅读全文
posted @ 2022-03-23 13:54 littlevigra
阅读(116)
评论(0)
推荐(0)
2022年3月15日
matplotlib和pandas经典操作
摘要: 1. 导入数据 import pandas as pd #导入Pandas df_sales_02 = pd.read_csv('订单记录.csv') #载入数据 df_sales_02.head() #显示头几行数据 2. 数据可视化 import matplotlib.pyplot as plt
阅读全文
posted @ 2022-03-15 21:56 littlevigra
阅读(173)
评论(0)
推荐(0)
2022年3月13日
pandas 关键操作
摘要: 1. 利用loc、iloc提取行数据 import numpy as np import pandas as pd #创建一个Dataframe data=pd.DataFrame(np.arange(16).reshape(4,4),index=list('abcd'),columns=list(
阅读全文
posted @ 2022-03-13 00:22 littlevigra
阅读(54)
评论(0)
推荐(0)
2022年3月12日
(转)DLL load failed while importing _imaging: 找不到指定的模块的解决方法
摘要: 1. 环境Windows10,python3.8,pillow8.4.0 2. 换成python3.8 conda create --name wincoda0226py38 python=3.8 (wincoda0226py38) D:\Users\linux\Desktop>pip instal
阅读全文
posted @ 2022-03-12 14:40 littlevigra
阅读(6712)
评论(0)
推荐(0)
2022年3月6日
(转) 如何优化生产环境的Full GC?
摘要: 1. 如何优化每次Full GC的性能? 就是把每次Full GC时间进一步降低。 -XX:+CMSParallelInitialMarkEnabled,会在CMS的“初始标记”阶段开启多线程并发执行 初始标记阶段,会STW,该阶段开启多线程并发后,可尽可能优化该阶段性能,减少STW时间。 -XX:
阅读全文
posted @ 2022-03-06 21:26 littlevigra
阅读(125)
评论(0)
推荐(0)
2022年2月24日
centos6 yum
摘要: 1. 停止维护的CentOS6,怎么使用yum? - 云+社区 - 腾讯云 (tencent.com) # CentOS-Base.repo # # The mirror system uses the connecting IP address of the client and the # up
阅读全文
posted @ 2022-02-24 10:07 littlevigra
阅读(456)
评论(0)
推荐(0)
2022年2月13日
KeyError: 'CUDA_VISIBLE_DEVICES'
摘要: os.environ["CUDA_VISIBLE_DEVICES"]='0' (9条消息) 解决报错:‘CUDA_VISIBLE_DEVICES‘ 不是内部或外部命令,也不是可运行的程序或批处理文件。_道纪书生的博客-CSDN博客_cuda_visible_devices
阅读全文
posted @ 2022-02-13 16:05 littlevigra
阅读(2084)
评论(0)
推荐(0)
上一页
1
···
3
4
5
6
7
8
9
10
11
···
70
下一页
公告