上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 36 下一页
摘要: import datetime from dateutil.relativedelta import relativedelta t=datetime.datetime.now() #当前日期 d = datetime.date.today() print(d) # 1天前 d1= d - rela 阅读全文
posted @ 2022-09-19 20:35 lucky_tomato 阅读(579) 评论(0) 推荐(0) 编辑
摘要: 删除redis指定分组 用法: redis-cli -h redis实例连接地址 -n 库 -a 密码 keys "要删除的[key]*" | xargs redis-cli -h redis实例连接地址 -n 库 -a 密码 del 如果不确定是否匹配成功就先重定向到文件,查看文件内容 redis 阅读全文
posted @ 2022-09-19 20:00 lucky_tomato 阅读(312) 评论(0) 推荐(0) 编辑
摘要: from datetime import datetime, timedelta now_time = datetime.now() utc_time = now_time - timedelta(hours=8) # 减去8小时 utc_time = utc_time.strftime("%Y-% 阅读全文
posted @ 2022-09-19 19:34 lucky_tomato 阅读(1166) 评论(0) 推荐(0) 编辑
摘要: 删除镜像发现报错,报错如下: [root@test 22:58:58 ~/docker]# docker rmi dd34e67e3371 Error response from daemon: conflict: unable to delete dd34e67e3371 (must be for 阅读全文
posted @ 2022-09-18 14:21 lucky_tomato 阅读(72) 评论(0) 推荐(0) 编辑
摘要: 问题: Error response from daemon: Get "https://x.x.x.x:80/v2/": http: server gave HTTP response to HTTPS client 绝对的大坑啊,搞得心态的蹦了,这是因为docker1.3.2版本开始默认dock 阅读全文
posted @ 2022-09-18 14:19 lucky_tomato 阅读(2057) 评论(0) 推荐(1) 编辑
摘要: 构建镜像时很慢,容量越来越大 解决办法: 单独把dockerfile文件放到空目录构建就行 阅读全文
posted @ 2022-09-17 19:15 lucky_tomato 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 好讨厌安装docker服务~,经常各种问题,今天又出现无法访问docker映射的80端口,研究一下找到解决方法 1、关闭firewalld systemctl stop firewalld && systemctl mask firewalld && systemctl disable firewa 阅读全文
posted @ 2022-09-17 19:13 lucky_tomato 阅读(674) 评论(0) 推荐(0) 编辑
摘要: @:直接解析主域名 rsgz.top 或 test.com 比如dnspod设置 @主机记录,记录值为192.168.1.1,当解析nslookup test.com,会返回记录值 阅读全文
posted @ 2022-08-12 22:09 lucky_tomato 阅读(2075) 评论(0) 推荐(1) 编辑
摘要: 数据库游标可以看作一个指针,它指向了数据库的查询结果,我们可以使用游标来返回和遍历查询结果。 阅读全文
posted @ 2022-08-12 22:01 lucky_tomato 阅读(51) 评论(0) 推荐(0) 编辑
摘要: Ctrl + Shift + F 全局查找 Ctrl + Shift + R 全局替换 Ctrl + F 当前文件查找 Ctrl + R 当前文件替换 阅读全文
posted @ 2022-08-12 22:00 lucky_tomato 阅读(131) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 36 下一页