会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
平凡之路
生命在于折腾,生命不息,折腾不止。 ----LSC
博客园
首页
新随笔
联系
订阅
管理
2023年2月17日
Mac 安装 minikube
摘要: 二进制安装 curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-darwin-amd64 sudo install minikube-darwin-amd64 /usr/local/bin/minikub
阅读全文
posted @ 2023-02-17 17:13 LiShiChao
阅读(109)
评论(0)
推荐(0)
2023年1月30日
python浮点数计算问题
摘要: >>> 0.15 * 3 0.44999999999999996 >>> from decimal import Decimal >>> Decimal('0.15') * 3 Decimal('0.45')
阅读全文
posted @ 2023-01-30 15:26 LiShiChao
阅读(27)
评论(0)
推荐(0)
2022年11月15日
object.__new__创建对象
摘要: # python一切皆对象class Foo(object): def __init__(self, name, version=None): self.name = name self.version = version def __setstate__(self, state): self.na
阅读全文
posted @ 2022-11-15 10:48 LiShiChao
阅读(53)
评论(0)
推荐(0)
2022年11月9日
python添加模块路径的三种方法
摘要: 查看python的模块路径方法是 import sys print sys.path 这个就会打印出所有的模块路径。 下边是在这个python系统路径中加入新的模块路径的三种方法, 1、添加环境变量PYTHONPATH,python会添加此路径下的模块,在.bash_profile文件中添加如下类似
阅读全文
posted @ 2022-11-09 20:47 LiShiChao
阅读(4262)
评论(0)
推荐(1)
2022年11月1日
安装redis 最新版 redis-6.2.6
摘要: 编译安装redis # 下载源码包 ~]# wget http://download.redis.io/releases/redis-6.2.6.tar.gz ~]# tar -zxvf redis-6.2.6.tar.gz # 编译安装 ~]# cd redis-6.2.6 redis-6.2.6
阅读全文
posted @ 2022-11-01 13:42 LiShiChao
阅读(463)
评论(0)
推荐(0)
2022年10月31日
nginx转发tcp
摘要: 安装依赖 yum install -y nginx-all-modules yum install -y nginx-mod-stream
阅读全文
posted @ 2022-10-31 10:04 LiShiChao
阅读(34)
评论(0)
推荐(0)
2022年10月30日
k8s资源配置清单模版
摘要: 常用配置 kind: Service apiVersion: v1 metadata: name: fastapiapp labels: app: fastapi spec: selector: app: fastapi ports: - protocol: TCP port: 80 targetP
阅读全文
posted @ 2022-10-30 11:35 LiShiChao
阅读(40)
评论(0)
推荐(0)
2022年10月29日
k8s--使用 kubeadm 搭建 k8s 1.25.3 版本
摘要: 环境准备 # 节点ip 172.25.131.227 k8s-master-01 # 设置主机名 ~]# hostnamectl set-hostname k8s-master-01 # 设置hosts解析 echo "172.25.131.227 k8s-master-01" >>/etc/hos
阅读全文
posted @ 2022-10-29 10:44 LiShiChao
阅读(452)
评论(0)
推荐(0)
2022年9月19日
yaml注解
摘要: yaml注解 apiVersion: v1 #指定api版本,此值必须在kubectl apiversion中 kind: Pod #指定创建资源的角色/类型 metadata: #资源的元数据/属性 name: test-pod #资源的名字,在同一个namespace中必须唯一 labels:
阅读全文
posted @ 2022-09-19 09:16 LiShiChao
阅读(99)
评论(0)
推荐(0)
2022年6月21日
OpenResty 使用介绍
摘要: yum安装 http://openresty.org/cn/linux-packages.html#centos # add the yum repo: wget https://openresty.org/package/centos/openresty.repo sudo mv openrest
阅读全文
posted @ 2022-06-21 17:14 LiShiChao
阅读(264)
评论(0)
推荐(0)
下一页
公告