原创 常用memcached命令詳解
常用memcached命令詳解:Memcached作爲緩存服務器,對其操作的命令主要分爲三類:1、 服務器狀態命令:可以查看memcahced服務的當前狀態2、 數據存儲命令:如何存儲數據到memcached服務器中3、 數據讀取命令
原创 shell 變量嵌套取值 ,判斷變量爲空
1、變量嵌套取值bitrate1=100numbers=1eval echo \$bitrate${numbers} >tmpbit tmpbitrate=`cat tmpbit`2、判斷變量爲空if [ ! -n $bitr
原创 awk 模式中使用變量
var=abcdsed:sed -n "/$var/p" // awk: awk '/'"$var"'/'num=2sed: sed -n "${n}p" //awk: awk 'NR=='"$var"''
原创 VirtualBox – Cannot Register the Hard Drive Because a Hard Drive with UUID Already Exists
Failed to open the hard disk <FilePath>.Cannot register the hard disk <FilePath><GUID> becuase a hard disk <DifferentFil
原创 我的友情鏈接
51CTO博客開發
原创 Too many authentication failures for
scp 的時候加參數 -o PubkeyAuthentication=no
原创 win+VirtualBox虛擬機開機後臺自啓動
自動開機腳本D:\software\virtualbox\VBoxManage.exe startvm salt-master-1.120-Nginx --type headlessD:\software\virtualbox\VBoxMa
原创 linux high cpu
1.用top命令查看哪個進程佔用CPU高gateway網關進程14094佔用CPU高達891%,這個數值是進程內各個線程佔用CPU的累加值。 PID USER PR NI VIRT RES SHR S %CPU %MEM
原创 Python 列表(list)、字典(dict)、字符串(string)常用基本操作小結
創建列表sample_list = ['a',1,('a','b')]Python 列表操作sample_list = ['a','b',0,1,3]得到列表中的某一個值value_start = sample_list[0]end_val
原创 sed學習
1.簡介sed是非交互式的編輯器。它不會修改文件,除非使用shell重定向來保存結果。默認情況下,所有的輸出行都被打印到屏幕上。sed編輯器逐行處理文件(或輸入),並將結果發送到屏幕。具體過程如下:首先sed把當前正在處理的行保存在一個臨時
原创 libmysqlclient.so.16()(64bit) is needed by MySQL-shared-compat-5.1.73-1.rhel5.x86_64
出現如下報錯libmysqlclient.so.16()(64bit) is needed by MySQL-shared-compat-5.1.73-1.rhel5.x86_64下載server對應的mysql 兼容包即可解決MySQL-
原创 python安裝mysqldb
1.安裝setuptools-0.6c11wget --no-check-certificate http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.
原创 hung_task_timeout_secs
問題很簡單,但是之前沒有碰到過,大概是在readhat上裝數據庫較少吧,記錄一下:客戶有一臺服務器,安裝了VMW軟件做了虛擬化,在其上搭建了一臺readhat虛擬機,起初給的內存爲16G,在添加了12G的內存後,將虛擬機的內存調整到了20G
原创 sed學習
1.簡介sed是非交互式的編輯器。它不會修改文件,除非使用shell重定向來保存結果。默認情況下,所有的輸出行都被打印到屏幕上。sed編輯器逐行處理文件(或輸入),並將結果發送到屏幕。具體過程如下:首先sed把當前正在處理的行保存在一個臨時
原创 VirtualBox – Cannot Register the Hard Drive Because a Hard Drive with UUID Already Exists
Failed to open the hard disk <FilePath>.Cannot register the hard disk <FilePath><GUID> becuase a hard disk <DifferentFil