会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
黄褐色的菊花怪
大大怪将军!!!
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
···
18
下一页
2023年1月2日
容器时间Dockerfile
摘要: cat Dockerfile FROM prom/prometheus:latest # /usr/share/zoneinfo/Asia/Shanghai COPY Shanghai /etc/localtime ENV TIME_ZONE Asia/Shanghai
阅读全文
posted @ 2023-01-02 15:40 Gshelldon
阅读(33)
评论(0)
推荐(0)
2022年11月6日
LNMP 在docker中
摘要: 参考的镜像地址 迁移php的项目记得把数据库一起迁走。 https://dockerfile.readthedocs.io/en/latest/content/DockerImages/dockerfiles/php-nginx.html 创建配置目录 mkdir -p /opt/docker/et
阅读全文
posted @ 2022-11-06 19:23 Gshelldon
阅读(82)
评论(0)
推荐(0)
搭建ELK7.3上的企业级分布式监控报警系统ElastAlert(邮箱)
摘要: 感谢CSDN博主的博文。原始博文有问题,这里修改过。 原文链接:https://blog.csdn.net/weixin_38652136/article/details/106672218 https://blog.csdn.net/weixin_45015255/article/details/
阅读全文
posted @ 2022-11-06 15:39 Gshelldon
阅读(617)
评论(0)
推荐(0)
2022年11月5日
数据库常用操作记录
摘要: 1、mysqldump -B 在备份数据库的时候会在备份的语句中写入create database的语句,导回来的时候就不需要指定库了,在-B的后面可以添加多个库的名字。 --singe-transaction这个参数在innodedb引擎中独有,作用是在导出的时候不锁表导出数据,保证数据的一致性。
阅读全文
posted @ 2022-11-05 21:25 Gshelldon
阅读(148)
评论(0)
推荐(0)
2022年7月10日
KVM 虚拟机
摘要: KVM 虚拟机 1、安装kvm 开启cpu虚拟化 虚拟机最低配置,内存 == 4G 磁盘 == 100G 操作系统CentOS7.6 1810 [root@localhost ~]# cat /proc/cpuinfo | grep vm [root@localhost ~]# yum instal
阅读全文
posted @ 2022-07-10 17:31 Gshelldon
阅读(4286)
评论(0)
推荐(0)
2022年7月9日
VNC Viewer 连接KVM控制台报错
摘要: 报错信息 报错信息 Unable to connect to VNC Server using your chosen security setting. Either upgrade VNC Server to a more recent version from RealVNC, or sele
阅读全文
posted @ 2022-07-09 14:53 Gshelldon
阅读(1347)
评论(0)
推荐(0)
2022年6月26日
数据类型公共方法
摘要: 数据类型公共方法 “+” 可以用来拼接字符串、元组、列表 >>> words1 = ["a", 'b', 'c'] >>> wwords2 = ["d", "e", "f"] >>> words1 + wwords2 ['a', 'b', 'c', 'd', 'e', 'f'] >>> words1
阅读全文
posted @ 2022-06-26 21:33 Gshelldon
阅读(52)
评论(0)
推荐(0)
集合
摘要: 集合 集合是无序的,没有重复的元素,如果有重复的会自动去重。 用{} 或者 set表示,如果直接使用{}是一个字典,空集合的表示方式为 set() 如果里面是键值对就是字典,如果是单个元素就是集合 names = {"frank", "jimi", "bander"} 1、自动去重 >>> name
阅读全文
posted @ 2022-06-26 21:32 Gshelldon
阅读(103)
评论(0)
推荐(0)
2022年6月12日
python 列表
摘要: 列表 当我们有多个数据需要保存的时候,可以考虑使用列表。列表是有序的,用户可以通过下标的方式对列表进行切片,还可以使用下标来修改列表的元素。 1.列表的表示方式 names = ["tank","tom","frank","jerry","honey"] # 使用list传入一个可迭代对象进行转换
阅读全文
posted @ 2022-06-12 11:34 Gshelldon
阅读(97)
评论(0)
推荐(0)
2022年5月22日
字符串
摘要: 字符串 1.字符串的表示方法 单引号 双引号 三引号 一般来嵌套使用 a = 'hello' b = "word" c = """hahahhah""" # 嵌套的使用 >>> print("小明说:‘昨天去happy了!’") 小明说:‘昨天去happy了!’ >>> print("I'am xi
阅读全文
posted @ 2022-05-22 16:33 Gshelldon
阅读(154)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
···
18
下一页
公告