上一页 1 2 3 4 5 6 7 8 9 10 ··· 33 下一页
摘要: Always use adduser (and deluser when deleting users) when you're creating new users from the command line adduser创建home目录 https://askubuntu.com/a/3816 阅读全文
posted @ 2020-03-18 17:48 Go_Forward 阅读(168) 评论(0) 推荐(0) 编辑
摘要: celery使用redis sentinel作为broker的时候,因为redis sentinel配置字符串格式解析报错 ValueError: invalid literal for int() with base 10: '26379;sentinel' https://github.com/ 阅读全文
posted @ 2020-03-13 11:26 Go_Forward 阅读(415) 评论(0) 推荐(0) 编辑
摘要: 在root用户下 visudo amy ALL=(ALL) NOPASSWD:ALL 在amy用户下 vim ~/.bashrc alias sd = "sudo" 阅读全文
posted @ 2020-02-24 15:48 Go_Forward 阅读(406) 评论(0) 推荐(0) 编辑
摘要: from celery.task.control import revokerevoke(task_id, terminate=True) https://stackoverflow.com/questions/8920643/cancel-an-already-executing-task-wit 阅读全文
posted @ 2020-02-19 11:38 Go_Forward 阅读(374) 评论(0) 推荐(0) 编辑
摘要: mv !(foo) foo 阅读全文
posted @ 2020-02-13 16:52 Go_Forward 阅读(165) 评论(0) 推荐(0) 编辑
摘要: minikube ssh kubectl exec -it nginx sh kubectl delete -f kubectl create -f kubectl describe nginx # nginx is pod name kubectl scale # 创建pod的方式: 1. 直接创 阅读全文
posted @ 2020-02-07 22:06 Go_Forward 阅读(86) 评论(0) 推荐(0) 编辑
摘要: # 安装kubectl https://kubernetes.io/docs/tasks/tools/install-kubectl/#install-kubectl-on-linux # 官方安装,不能用google源 https://www.jianshu.com/p/67083a454fcc 阅读全文
posted @ 2020-02-07 20:14 Go_Forward 阅读(500) 评论(0) 推荐(0) 编辑
摘要: FROM # FROM scratch, FROM centos, FROM ubuntu:latest LABEL RUN # 每运行一次RUN,image都会生成新的一层,为了美观,避免无用分层,尽量合并多条命令为一条, 比如 yum install vim && yum install gcc 阅读全文
posted @ 2020-02-06 17:59 Go_Forward 阅读(100) 评论(0) 推荐(0) 编辑
摘要: docker container commit # 根据一个image生成container以后,在container里面进行了改变,将container提交成为新的image, 简写为docker commit docker image build # 简写为docker build docker 阅读全文
posted @ 2020-02-06 17:49 Go_Forward 阅读(169) 评论(0) 推荐(0) 编辑
摘要: sudo groupadd docker # 添加group sudo gpasswd -a think docker # 添加用户到组 sudo service docker restart newgrp docker # 更新用户组 阅读全文
posted @ 2020-02-06 17:14 Go_Forward 阅读(1022) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 33 下一页