原创 ansible 如何在遠程服務器 A 和B 之間複製大文件

見 https://stackoverflow.com/questions/42186301/ansible-create-multiple-folders-if-dont-exist 見 https://stackoverflow.co

原创 在 ansible 文件中設置變量

見 https://stackoverflow.com/questions/22522985/how-can-i-write-variables-inside-the-tasks-file-in-ansible - name: Set

原创 wget curl 下載文件到指定的目錄,並指定下載文件的重命名

wget url -P <aimPath> -O fileName curl -L url -o <filePath>  

原创 Error saying error: dpkg frontend is locked by another process

First, find out the id of the process that is holding the lock file. lsof /var/lib/dpkg/lock-frontend The above comman

原创 shell 中怎麼判斷磁盤的綁定情況

cat /proc/mounts 即可

原创 docker 的使用之怎麼將運行的容器中的文件拷貝到宿主機中

# 列出正在運行的容器 docker ps # container_id 也可以使用 containerName 來替換 docker cp container_id:/path/to/your_file.txt /path/on/yo

原创 mongo 如何查找所有客戶端連接

見 https://stackoverflow.com/questions/23808264/how-to-get-connected-clients-in-mongodb

原创 sonobuoy 測試 k8s cluster 的一致性

sonobuoy 的release 鏈接: https://github.com/vmware-tanzu/sonobuoy/releases 測試提交的 github:https://github.com/cncf/k8s-confor

原创 mysql 客戶端的連接方式

# password 跟 -p 之間必須沒有空格,否則會將 password 當做數據庫處理 mysql -u <username> -p<password> -P <port> -D <connected_database>  

原创 怎麼在 Ubuntu 18.04 LTS 搭建 rabbitmq cluster

文檔見 https://www.rabbitmq.com/clustering.html#restarting RabbitMQ is an open source message-broker software that origina

原创 go iris 在運行項目的時候報錯

 go iris 在運行項目時報錯 Get https://proxy.golang.org/github.com/%21burnt%21sushi/toml/@v/v0.3.1.mod: dial tcp 216.58.200.241:

原创 cat 與 EOF 的使用

cat 和 EOF 在shell中常常被組合使用來將多行的內容寫入到一個文件中,但是在使用該命令的時候存在寄出坑: shell 腳本: #!/usr/bin/env bash # 該行的 >> 表示追加的意思,如果再將該腳本執行一次,

原创 go 語言中的nil

In Go, nil is the zero value for pointers, interfaces, maps, slices, channels and function types, representing an unini

原创 git tag 以及發佈 release

給某個 commit 打 tag 見 https://blog.csdn.net/XuYongshi02/article/details/52386201 發佈 release 的方式: 1、先對對應的 commit 綁定 tag 2、按

原创 爬蟲與反爬蟲的博弈

爬蟲與發爬蟲的廝殺,一方爲了拿到數據,一方爲了防止爬蟲拿到數據,誰是最後的贏家? 重新理解爬蟲中的一些概念 爬蟲:自動獲取網站數據的程序 反爬蟲:使用技術手段防止爬蟲程序爬取數據 誤傷:反爬蟲技術將普通用戶識別爲爬蟲,這種情況多出現在封i