同步時間
yum install ntpdate
ntpdate cn.pool.ntp.org
linux資源監控
2.解壓編譯安裝執行make 再執行make install
3.監控tsar -i 1 -l
程序埠檢視
netstat -nlp | grep 9169 //9169表示程序id
檢視服務端連線數
netstat -n | awk '/^tcp/ end '
日誌排序 ll -lrt
檢視cpu數量與單個cpu的核心數
cat /proc/cpuinfo | grep processor | wc -l
檢視系統總記憶體與使用記憶體
free -h
cpu記憶體,磁碟使用率
free -m | awk 'nr==2'
df -h | awk '$nf=="/"'
top -bn1 | grep load | awk ''
linux伺服器命令
今天公司的開發環境的linux伺服器,我要了乙個賬號來玩玩 拿到賬號和密碼,我就用xshell登陸上去 1 檢視已掛載的分割槽列表 df h 顯示已經掛載的分割槽列表 2 檢視目錄中的檔案 ls 檢視目錄中的檔案 ls l 顯示檔案和目錄的詳細資料 ls f 檢視目錄中的檔案 ls a 顯示隱藏檔案...
效能測試之nmon對linux伺服器的監控
nmon是一款計算機效能系統監控工具,因為它免費,體積小,安裝簡單,耗費資源低,廣泛應用於aix和linux系統 效能測試時,需要根據測試場景的執 況,分析一段時間內系統資源的變化,這時需要nmon採集資料並儲存下來,以下是常用的引數 f 引數 生成檔案,檔名 主機名 當前時間.nmon t 引數 ...
linux 重啟伺服器命令
linux有如下的關機和重啟命令 shutdown,reboot,halt,poweroff,那麼它們有什麼區別呢?shutdown是最常用也是最安全的關機和重啟命令,它會在關機之前呼叫fsck檢查磁碟,其中 h和 r是最常用的引數 plain view plain copy h 停止系統服務並關機...