原创 字符串截取

例如變量var爲http://www.baidu.com/abc.html: 命令 按個數截取如 res=${var:0:4} 表示從0開始截到3結束輸出結果 http如 res=${var:7}輸出結果 www.baidu.com/abc

原创 curl 命令

curl命令選項:--cacert CA證書 (SSL)--capath CA目錄 (made using c_rehash) to verify peer against (SSL)--compressed 要求返回是壓縮的形勢 (usi

原创 keepalived 安裝

1、清除LVS的安裝 並安裝所需庫yum install -y kernel-develipvsadm openssl* pop*2、編譯安裝wget http://www.keepalived.org/software/keepalive

原创 elk 收藏

$ gem sources --remove https://rubygems.org/$ gem sources -a https://ruby.taobao.org/$ gem sources -l/usr/local/logstash

原创 我的友情鏈接

51CTO博客開發