Linux DNS配置

摘要: 1、查看DNS配置: [root@localhost ~]# cat /etc/resolv.conf # Generated by NetworkManager # No nameservers found; try putting DNS servers into your# ifcfg fil 阅读全文
posted @ 2019-03-13 14:37 jwq_test 阅读(623) 评论(0) 推荐(0) 编辑

如何进入kubernetes的一个pod

摘要: 首先,使用kubectl get pod —— 查看pod-name 然后,使用kubectl exec -ti pod-name -- /bin/sh 进入docker容器,也是类似操作: 首先,使用docker ps —— 查看container-name 然后,使用docker exec -t 阅读全文
posted @ 2019-03-13 09:22 jwq_test 阅读(3834) 评论(0) 推荐(0) 编辑

如何确定kubernetes依赖的各个组件版本?

摘要: kubernetes依赖的各个组件版本都可以在对应的changlog中找到,如1.10版本依赖情况如下:https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG-1.10.md#external-dependencies 阅读全文
posted @ 2019-03-11 10:02 jwq_test 阅读(1430) 评论(0) 推荐(0) 编辑

查看docker版本

摘要: [root@localhost ~]# docker --versionDocker version 1.13.1, build 07f3374/1.13.1[root@localhost ~]# [root@localhost ~]# docker infoContainers: 10 Runni 阅读全文
posted @ 2019-03-11 09:48 jwq_test 阅读(40457) 评论(0) 推荐(0) 编辑

查看Linux系统版本

摘要: 1. 查看内核版本命令: [root@localhost ~]# uname -aLinux localhost.localdomain 3.10.0-327.el7.x86_64 #1 SMP Thu Nov 19 22:10:57 UTC 2015 x86_64 x86_64 x86_64 GN 阅读全文
posted @ 2019-03-11 09:47 jwq_test 阅读(1870) 评论(0) 推荐(0) 编辑

svn中已经svn add还未svn commit提交的,如何取消?

摘要: svn revert --recursive 要取消的文件或文件夹 阅读全文
posted @ 2019-01-24 08:59 jwq_test 阅读(3397) 评论(0) 推荐(0) 编辑

git push 出现 you are not allowed to upload merges 错误提示

摘要: 需要执行git rebase 阅读全文
posted @ 2019-01-03 08:58 jwq_test 阅读(2106) 评论(0) 推荐(0) 编辑

git回退到某个commit的某个文件

摘要: 操作步骤如下: 1. git log "filename" (如:git log code/base/unidentified.c,查看当前文件的commit-id记录) 2. git reset "commit-id" "filename" (如: git reset 12edd3a code/b 阅读全文
posted @ 2018-12-28 15:46 jwq_test 阅读(3079) 评论(0) 推荐(0) 编辑