原创 利用Nginx的proxy_store搭建鏡像服務器

Nginx的proxy_store作用是直接把靜態文件在本地硬盤創建並讀取,類似於七牛或者又拍這樣的鏡像CDN功能,首次訪問會自動獲取源站的靜態圖片等文件,之後的訪問就是直接從CDN服務器讀取,加快了速度。 需要配置一下參數:     #

原创 測試環境kubernetes升級https模式遇到的問題list

目標:測試環境kubernetes升級爲https的kubernetes。     kubernetes 網絡配置由open vswitch 轉變爲flannel 問題1:kubernetes網絡配置由open vswitch轉變爲fla

原创 linux 修改主機名

用sysctl 修改kernel.hostname 查看:sysctl kernel.hostname 修改:sudo sysctl kernel.hostname=R80 注意: 上述方法重啓後會失效。應配合: echo HOSTNAM

原创 tar解壓.tar.bz2文件失敗:tar: Error is not recoverable: exiting now

tar解壓.tar.bz2文件失敗:tar: Error is not recoverable: exiting now 使用tar解壓.tar.bz2文件: 1 tar -jxvf xxxx.tar.bz2 原因:未安裝bzip 解決辦

原创 nginx優化之request_time 和upstream_response_time

1、request_time 官網描述:request processing time in seconds with a milliseconds resolution; time elapsed between the first b

原创 linux shell 獲取本機ip

本機IP獲取 /sbin/ifconfig -a|grep inet|grep -v 127.0.0.1|grep -v inet6|awk '{print $2}'|tr -d "addr:" k8s 獲取容器所造node節點的ip

原创 Jenkins中使用docker插件,java.lang.NullPointerException: uri was not specified

ERROR: Build step failed with exception java.lang.NullPointerException: uri was not specified at com.google.common.ba

原创 mount gluster 報錯:unknown filesystem type 'glusterfs'

解決辦法 安裝glusterfs-fuse包

原创 使用maven打包時報錯PKIX path building failed: sun.security.provider.certpath

[ERROR] Plugin org.apache.maven.plugins:maven-surefire-plugin:2.12.4 or one of its dependencies could not be resolved:

原创 ansible 使用的一些記錄

1 jinja模板中調用facts的信息,引用方式例子: {{ ansible_default_ipv4.address }} 2 yaml 文件中,內容中的冒號可以用單引號處理,例子:  etcdctl set /coreos.com/

原创 js 判斷變量是否爲空

var isArray=function(v){ var toString = Object.prototype.toString; return toString.apply(v) === '[object Array]'; } va

原创 Eclipse中maven命令不作用直接terminated

從svn上把代碼download下來後導入到myeclipse中,myeclipse上不報錯沒有任何錯誤信息,但是使用maven命令進行操作時,直接terminated。 首先查看myeclipse中的jdk版本號,判斷是不是myecli

原创 svn checkout 一個文件

通過命令行操作 1、檢出目錄images svn co --depth=empty http://www.iusesvn.com/project1/images images_work_dir  這樣就在本地形成了一個工作拷貝目錄imag

原创 linux supervisor 安裝與使用

      守護進程(Daemon)是一種運行在後臺的特殊進程,它獨立於控制終端並且週期性的執行某種任務或等待處理某些發生的事件。由於在linux中,每個系統與用戶進行交流的界面稱爲終端,每一個從此終端開始運行的進程都會依附於這個終端,這

原创 docker_ce 安裝

  如果之前安裝過舊版本的Docker,請先卸載: yum remove docker docker-common container-selinux docker-selinux docker-engine 安裝  yum-utils