- 博客(17)
- 资源 (1)
- 收藏
- 关注
原创 software 版本名称含义
1. alphaalpha:测试人员使用的测试版beta(beta1, beta2):公开测试版rc:发行候选版,基本不再增加新功能,主要修复bug,最终正式版的前一个版本final:最终版,正式发布版的一个表示stable:稳定版release:正式发布版,官方推荐,有些用GA表示GA: general availability,正式发布的版本...
2020-02-29 17:32:23 313
原创 mysql 基本使用
1.建表mysql> create database test;Query OK, 1 row affected (0.02 sec)mysql> use test;Database changedmysql> ALTER TABLE test_db COMMENT = 'test time table' -> ;Query OK, 0 row...
2020-02-29 17:07:03 220
原创 git checkout -- <filename> 放弃本地某文件修改
git checkout -- <filename> 放弃本地某文件修改
2020-02-25 00:53:38 660
原创 python list
list: append最后追加, pop最后抛出, remove移除第一个, del(l[index]), extend([]),count, index, sort, reverse, [::-1]In [27]: l ...
2020-02-22 22:55:06 418
原创 linux curl
curl -X POST -d "a":"b" -d "c":"d" urlcurl -X GET -d "a=b" url -H "Authorization: token"[root@k8s-master sh-test]# curl -d "a":"b" -d "c":"d" http://192.168.159.1:8001/helloworld{"code":200,...
2020-02-22 16:44:02 186
原创 python requests
python3pip install requestsresponse 返回结果 类型 response.json() 返回内容json格式 response.text 返回内容str类型(unicode编码) response.content 返回内容bytes类型 response.headers 响应头 response.re...
2020-02-22 16:11:44 187
原创 harbor docker 镜像仓库源
harbor镜像源/etc/docker/daemon.json{"registry-mirrors": ["https://reg-mirror.qiniu.com","https://<xxx>.mirror.aliyuncs.com","https://docker.mirrors.ustc.edu.cn","http...
2020-02-21 02:14:07 473
原创 python yaml
1. yaml文件示例yaml0.yaml- a: b- c: d e: f h: i2.代码In [1]: from ruamel import yamlIn [2]: f = open('yaml0.yaml', 'r')In [3]: a = f.read()In [4]: aOut[4]: '- a: b\n- c: d\n e: f\n...
2020-02-19 00:01:29 325
原创 linux xargs
[root@k8s-master test2]# cat test2.txt HELLOWORLDTHIS IS A TESTEOF TEST![root@k8s-master test2]# cat test2.txt | xargs -I {} echo start {} endstart HELLOWORLD endstart THIS IS A TEST end...
2020-02-08 17:01:42 105
原创 linux find
[root@k8s-master test2]# ll总用量 8-rw-r--r--. 1 root root 11 2月 8 16:32 test1.txt-rw-r--r--. 1 root root 36 2月 8 16:34 test2.txt[root@k8s-master test2]# find . -type f -name '*1.txt'./test1...
2020-02-08 16:53:09 330
原创 linux EOF
EOF: END OF FILE>>输入追加>输入重定向<输出重定向<<输出追加[root@k8s-master test2]# ll总用量 0[root@k8s-master test2]# cat <<EOF >test1.txt> A> B> CDEFG> EOF[r...
2020-02-08 16:36:07 125
原创 linux grep
-c: --count列数-d: --directories目录-e: --regexp:正则-f: --file规则文件-l: --file-with-matches匹配的文件-L: --files-without-match不符合的文件-n: --line-number:标出该行的列-o: --only-matching:只显示匹配的部分-v: ...
2020-02-08 16:27:27 89
原创 linux sed
说明:[root@k8s-master test1]# cat test.txthello1worldhello1worldhello1world221hellothis is a test!^开始$结束.任意一个* 0个或多个[]指定范围中[^] 不在指定范围中\(..\)保存匹配的字符,后面用数字表式[root@k8s-master t...
2020-02-08 15:30:17 154
原创 k8s nfs pv pvc
1. nfs准备1. yum install nfs-utils rpcbind -y2. cd / && mkdir tmp13. chown -R nfsnobody.nfsnobody /tmp14. vim /etc/exports[root@k8s-master manifests]# cd /etc[root@k8s-master etc]# vi...
2020-02-04 00:16:12 270
原创 python 使用k8s api
1.获取host和token[root@k8s-master k8s]# kubectl config view | grep server server: https://192.168.159.135:6443[root@k8s-master k8s]# kubectl get secret -nkube-system | grep adminadmin-user-t...
2020-02-02 12:45:31 2328
原创 linux grep cut tr
[root@k8s-master ~]# kubectl config viewapiVersion: v1clusters:- cluster: certificate-authority-data: DATA+OMITTED server: https://192.168.159.135:6443 name: kubernetescontexts:- co...
2020-02-02 10:37:46 297
EXCEL VBA 宏 合并任意数量 的 表
2018-07-13
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人