10 2021 档案

摘要:doctest : 。。。 阅读全文
posted @ 2021-10-29 18:03 等待1248 阅读(27) 评论(0) 推荐(0)
摘要:testcase:pycharm ide:鼠标指定到某一个类,按下ctrl+shift+t 新建测试文件,针对这个类,及方法做单元测试,assertEqual('实际执行的值','期望的值'),比较是否相等; self.assertTrue('Foo'.isupper()) Trueself.ass 阅读全文
posted @ 2021-10-29 18:01 等待1248 阅读(108) 评论(0) 推荐(0)
摘要:页面自动刷新:function checkRefresh(){ if (document.cookie == "refresh=1") { document.getElementById("check").checked = true; ref = setTimeout(function(){loc 阅读全文
posted @ 2021-10-28 18:17 等待1248 阅读(87) 评论(0) 推荐(0)
摘要:使用docker exec + bash进入容器时报错由于镜像系统不一,使用错误shell解释器导致,可尝试以下其中一种方案。[root@localhost home]# docker exec -it container-test bashOCI runtime exec failed: exec 阅读全文
posted @ 2021-10-28 18:15 等待1248 阅读(1233) 评论(0) 推荐(0)
摘要:RPM默认安装路径: /etc 一些设置文件放置的目录如/etc/crontab/usr/bin 一些可执行文件/usr/lib 一些程序使用的动态函数库/usr/share/doc 一些基本的软件使用手册与帮助文档/usr/share/man 一些man page文件如:[root@xxx ~]# 阅读全文
posted @ 2021-10-28 18:14 等待1248 阅读(1396) 评论(0) 推荐(0)
摘要:容器下的IP:[root@01dc906b65b9 /]# cat /etc/hosts127.0.0.1 localhost::1 localhost ip6-localhost ip6-loopbackfe00::0 ip6-localnetff00::0 ip6-mcastprefixff02 阅读全文
posted @ 2021-10-28 18:12 等待1248 阅读(75) 评论(0) 推荐(0)
摘要:docker logs NAMES 或者CONTAINER ID docker logs nginx-test |head 或者tail docker logs fcd8fff4731e 阅读全文
posted @ 2021-10-28 18:10 等待1248 阅读(77) 评论(0) 推荐(0)
摘要:docker exec nigix bash -c 'git reset HEAD . ; git checkout . ; git fetch ; git rebase origin/master' the input device is not a TTY 的报错,定时任务去掉-it其实出现该错 阅读全文
posted @ 2021-10-27 18:11 等待1248 阅读(95) 评论(0) 推荐(0)
摘要:docker 安装centOS 1,官网查看现有的镜像, CentOS 镜像库地址:https://hub.docker.com/_/centos?tab=tags&page=1; 2、拉取指定版本的 CentOS 镜像,这里我们安装指定版本为例(centos7): $ docker pull ce 阅读全文
posted @ 2021-10-27 18:08 等待1248 阅读(739) 评论(0) 推荐(0)
摘要:镜像命令:1、列出本地主机上的镜像docker images2、从docker hub上查找镜像docker search [OPTIONS]镜像名字3,下载镜像docker pull 镜像名字[:TAG]4,删除镜像docker rmi -f 镜像ID //删除单个镜像<br>docker rmi 阅读全文
posted @ 2021-10-27 18:07 等待1248 阅读(64) 评论(0) 推荐(0)
摘要:什么是Docker? Docker是基于Go语言实现的云开源项目。docker 安装:1,先卸载旧版: yum remove docker 2,配置yum 源:yum-config-manager --add-repo https://download.docker.com/linux/centos 阅读全文
posted @ 2021-10-27 18:03 等待1248 阅读(433) 评论(0) 推荐(0)