Time of Update: 2015-02-13
標籤:linux page cache vs direct ioOverviewBlock device layerpage cacheIO scheduerPage cache contains all file I/O data, direct I/O bypasses the page cache.Page cache helps Linux to economize I/O– Read requests can be made faster by adding a read ahead
Time of Update: 2015-02-10
標籤: 初學Linux,首先需要弄清Linux 標準目錄結構 / root --- 啟動Linux時使用的一些核心檔案。如作業系統核心、引導程式Grub等。 home --- 儲存普通使用者的個人檔案 ftp --- 使用者所有服務 httpd samba user1 user2 bin --- 系統啟動時需要的執行檔案(二進位) sbin
Time of Update: 2015-02-11
標籤:linux巡檢指令碼#!/bin/sh#[email protected]#Modified according to the actual situation mysql server IP and username passwordexport black='\033[0m'export boldblack='\033[1;0m'export red='\033[31m'export boldred='\033[1;31
Time of Update: 2015-02-11
標籤:#!/bin/bash#[email protected]mntlist="/dev/sda3 /dev/sda1 "for mt01 in $mntlistdo#echo $mt01usedpct=$(df -h $mt01 | awk '{print $5}' | grep -v Use | cut -d "%" -f1 -)box=$(uname -a | awk '{print
Time of Update: 2015-02-11
標籤:系統:CentOS release 6.6 (Final) x86_64安裝包:1、LRLG_00031.iso 【Load Generator Standalone (Linux 64-bit) Service Pack 11.52】:HP官網https://softwaresupport.hp.com/group/softwaresupport/search-result/-/facetsearch/document/LID/LRLG_00031 2、linux_
Time of Update: 2015-02-12
標籤:1.《Linux核心設計與實現》 本書重在原理。適合入門的最佳圖書。作者是為2.6核心加入了搶佔的人,對調度部分非常精通,而調度是整個系統的核心,因此本書是很權威的。2.《深入理解Linux核心》
Time of Update: 2015-02-12
標籤:利用外部郵箱發送郵件的方法 bin/mail會預設使用本地sendmail發送郵件,這樣要求本地的機器必須安裝和啟動Sendmail服務,配置很麻煩,並且會帶來不必要的資源佔用。而通過改動設定檔能夠使用外部SMTPserver,能夠達到不使用sendmail而用外部的smtpserver發送郵件的目的:改動/etc/nail.rc (/etc/mail.rc)set [email protected] smtp=smtp.domain.comset smtp-auth-
Time of Update: 2015-02-11
標籤:wget -nH -m --ftp-user=your_username --ftp-password=your_password ftp://your_ftp_host/*
Time of Update: 2015-02-12
標籤:searching for gcc... to the gcc binary 情景:在VM下安裝Linux RedHad9、RedHad6時會出現 Searching for GCC... The path "" is not valid path to the gcc binary.
Time of Update: 2015-02-12
標籤:摘要:linux核心源碼真是好東東,是眾多高手思維的結晶,在linux 原始碼中有個標頭檔為list.h 。很多linux 下的原始碼都會使用這個標頭檔,它裡面定義了一個結構, 以及定義了和其相關的一組函數,這個結構是這樣的:structlist_head{structlist_head *next, *prev;}; 如果您之前學過雙向鏈表,那麼當你看到這個結構的時候,會覺得似曾相識。豈止&
Time of Update: 2015-02-12
標籤:上篇博文《linux核心源碼“雙向鏈表list_head”》中以一個執行個體介紹了list_head雙向鏈表的用法,只有執行個體的代碼,並沒有list_head鏈表的代碼,考慮到各位好學博友的強烈願望,今天把list_head的代碼即list.h標頭檔粘貼到此,供各位好學博友使用。一、list.h標頭檔源碼[[email protected] cstudy]# cat
Time of Update: 2015-02-12
標籤:項目處理問題遇到如下情況,引用第三方的jar包報出ClassDefNotFoundException錯誤導致app崩潰,雙方溝通確認該類存在且排除工程未clean,代碼混淆導致等原因。注意到編譯app的時候提示了很多如下與正常情況下不一樣的資訊:trouble processing:bad class file magic (cafebabe) or version (0033.0000)...while&nb
Time of Update: 2015-02-12
標籤:(1)編譯 c++ 程式需要添加 -lstdc++ 如: gcc -lstdc++ -o test test.c否則會報 "undefinedreference to ‘__gxx_personality_v0‘ " 錯誤 (2)用gcc命令編譯C程式,用g++命令編譯C++程式。g++和gcc本質一樣的,本質上還是gcc,我們實驗室所有的c++程式都是用gcc編譯的,一般的程式用gcc足夠了。 對於 C++ 程式,編譯的時候用 gcc
Time of Update: 2015-02-11
標籤:ftp伺服器如何在linux下開啟FTP服務1. 首先伺服器要安裝ftp軟體,查看是否已經安裝ftp軟體下: #which vsftpd 如果看到有vsftpd的目錄說明伺服器已經安裝了ftp軟體2. 查看ftp 伺服器狀態 #service vsftpd status3.
Time of Update: 2015-02-12
linux核心源碼“雙向鏈表list_head”摘要:linux核心源碼真是好東東,是眾多高手思維的結晶,在linux 原始碼中有個標頭檔為list.h 。很多linux 下的原始碼都會使用這個標頭檔,它裡面定義了一個結構, 以及定義了和其相關的一組函數,這個結構是這樣的:structlist_head{ structlist_head *next, *prev; };
Time of Update: 2015-02-10
linux比較兩個二進位檔案,linux兩個二進位http://androidren.com/index.php?qa=293&qa_1=linux%E6%AF%94%E8%BE%83%E4%B8%A4%E4%B8%AA%E4%BA%8C%E8%BF%9B%E5%88%B6%E6%96%87%E4%BB%B6$ vimdiff -bd test1.bin test2.bin更多說明:ctrl + W +L
Time of Update: 2015-02-11
Linux修改/etc/hosts,linux修改etchosts 目錄結構目錄結構hosts檔案hosts格式配置hosts檔案格式hosts檔案作用hosts檔案hosts —— the static table lookup for host name(主機名稱查詢靜態表)。
Time of Update: 2015-02-11
CentOS下yum安裝Chrome瀏覽器在CentOS6.x 安裝Chrome 瀏覽器的方法。首先在/etc/yum.repos.d目錄中建立google-chrome.repo檔案,其寫入如下內容:[plain]view plaincopy[google-chrome]name=google-chromebaseurl=http://dl.google.com/linux/chrome/rpm/stable/$basearchenabled=1gpgcheck=1gpgkey=https:/
Time of Update: 2015-02-11
Linux流負載平衡中Layer7的資料流(串連跟蹤)識別問題1.支援Layer7的nf_conntrack真的沒有必要做 走火入魔之後,你會覺得需要趕緊將“基於五元組的資料流”改成“基於應用程式層協議固定位移的資料流”,趕緊動手,越快越好!於是此人在支援zone conntrack的Linux 3.17核心上為nf_conn增加了幾個欄位: bool l7; //布爾型,表示是否要進行layer7的匹配。 u32
Time of Update: 2015-02-11
Linux-Maven的使用Maven的使用 本文地址:http://blog.csdn.net/caroline_wendy 使用gradle的配置方法,建立或修改gradle屬性檔案:~/.gradle/gradle.properties帳號和密碼,比如:maven_user=deploymentmaven_password=deploymentmaven_user和maven_password在gradle檔案中,用如下的方式引用這些定義好的變數,並驗證(authent