Time of Update: 2018-12-04
一般都說Swap分區是記憶體大小的1到2倍比較合適,但是有人說其實作為一般用途來講,1~2G 就到頂了,妄想從虛擬記憶體上提高系統效能,是不可能的,去買記憶體條才是王道。 突破128M Swap限制 經常看到有些Linux(國內漢化版)安裝手冊上有這樣的說明:Swap空間不能超過128M。為什麼會有這種說法?在說明“128M”這個數位來曆之前,先給問題一個回答:現在根本不存在128M的限制!現在的限制是2G!
Time of Update: 2018-12-04
svn,一個開源的版本控制軟體,做過團隊開發的人一定對它不陌生,沒用過它也會用過相應的軟體..版本控制這一方面,google做的比較好...google svn 程式碼程式庫也做的相當強大. 不論是windows 下,還是linux 的各種版本,,Qt配置svn都是相當簡單的.步驟都一樣.Tools---->Option---->VersionControl---->Subversion
Time of Update: 2018-12-04
在ubuntu 9.10上編譯核心,輸入make menuconfig 進入核心配置介面時出現如下錯誤: *** Unable to find the ncurses libraries or the *** required header files. *** 'make menuconfig' requires the ncurses libraries. *** *** Install ncurses (ncurses-devel) and try again. *** make[1]
Time of Update: 2018-12-04
對於單網卡要實現網關,必須讓網卡有兩個ip-一個內部ip,一個外部ip,其實也就是虛擬出一個網卡來。設定IP地址:ip addr add 192.168.3.187/24 dev eth0ip addr add 192.168.4.187/24 dev eth0設定路由:ip route add 192.168.3.0/24 via 192.168.3.187ip route add 192.168.4.0/24 via 192.168.4.187預設閘道:ip route add
Time of Update: 2018-12-04
轉載自:http://www.cublog.cn/u2/76349/showart_2227666.html Linux setitimer對於電腦使用的玩家的常用軟體,然後我就學習及深入的研究Linuxsetitimer,在這裡和大家一起探討Linux setitimer的使用方法,希望對大家有用。Linuxsetitimer()為Linux的API,並非C語言的Standard
Time of Update: 2018-12-04
memdev裝置驅動源碼memdev.h 自訂標頭檔******************************************************************************#ifndef _MEMDEV_H_#define _MEMDEV_H_#ifndef MEMDEV_MAJOR#define MEMDEV_MAJOR 254 /*預設的mem的主裝置號*/#endif#ifndef MEMDEV_NR_DEVS#define
Time of Update: 2018-12-04
什麼是chroot?chroot基本上重定義了一個程式的運行環境。更確切地說,它重定義了一個程式(或登入工作階段)的“ROOT”目錄或“/”。 也就是說,對於chroot了的程式或shell來說,chroot環境之外的目錄是不存在的。 那這樣又有什麼用呢?如果入侵者入侵了你的電腦,他們就不能看見你系統裡所有的檔案了。 這樣,就限制了入侵者可能執行的命令,從而禁止了他們溢出不安全檔案的機會。但唯一的缺點是, 我認為這不能阻止他們察看網路連接和其他資料。因此,你應做一些本文未深入涉及的事情:
Time of Update: 2018-12-04
轉自:http://fedora.linuxsir.org/main/?q=node/91作者:北南南北來自:LinuxSir.Org摘要:本文主要講述在Linux 系統中使用者(user)和使用者組(group)管理相應的概念;使用者(user)和使用者組(group)相關命令的列舉;其中也對單使用者多任務,多使用者多任務也做以解說,本文應該說是比較基礎的文檔;+++++++++++++++++++++++++++++++++++++++++++++++++++++++++本文++++++++
Time of Update: 2018-12-04
Linux發展很多年了。雖然Linux是免費的,是穩定的,是有大量優勢的,但是就是無法撼動Windows的壟斷地位。或許Linux的定位就不該是和Windows搶地盤。我在論壇裡經常看到有這樣那樣的爭論,說Windows龐大、垃圾、臃腫...
Time of Update: 2018-12-04
In one of our earlier articles, we learned how command line arguments are accessed from within the code. Here in this article, we will see how these command line arguments can be used by a Linux process to change its own name.Linux process that
Time of Update: 2018-12-04
雖然以前配過好多次jdk環境變數,都是貼上別人的配置代碼,直到這次出問題了才好好思考為什麼要這樣配如果你用的系統裡有jdk,那麼path必須如下配置 #vi /etc/profile在最後面加入以下內容:#set java-jdk
Time of Update: 2018-12-04
# PS1='自訂內容' 注意兩邊的單引號 樣本: PS1='(/u@/H /d /t)/$' ---------------------------------------------------------------------------------------------------------------- PS1:就是使用者平時的提示符。 PS2:第一行沒輸完,等待第二行輸入的提示符。
Time of Update: 2018-12-04
轉自:http://www.wantso.com/ShowArtitle.ASP?art_id=8331&cat_id=16常用網路命令 在Red Hat Linux 7.1系統提供了與網路相關的工具,掌握好這些工具是十分必要的: 第一類:設定工具 1.netconf: netconf是Red Hat
Time of Update: 2018-12-04
copy local file to remote serverscp filename user@server:new_filenamescp -r dir user@server:new_dirit will make one connection from local to remotecopy remote file to localscp user@server:dir/file_name local_dir/new_filenamedefault dir is current
Time of Update: 2018-12-04
相關資料結構: struct cdev { struct kobject kobj; struct module *owner; const struct file_operations *ops; struct list_head list; dev_t dev; unsigned int count; }; struct kobj_map { struct probe { struct probe *next; dev_t dev; unsigned long
Time of Update: 2018-12-04
菜鳥編譯Linux核心 雙眼皮的豬 菜鳥俺,最近研究了一下Linux核心的編譯,有些許心得,望同大家分享一下,故有此文…我們這裡要談的不涉及到源碼,只是一些核心編譯的步驟及相關知識…因為本人是菜鳥。所以,也就希望和菜鳥們分享一下… 首先,您要確定您有一台裝有Linux的系統,編譯核心可以在本機上直接對本機核心進行編譯,也可以從網上下載核心在其基礎上進行編譯.我們這裡詳細講一下升級核心的方法,
Time of Update: 2018-12-04
在linux系統的 /etc/sysconfig/network-script/ifcfg-eth0檔案中存放著這台機子網卡IP地址配置的相關資訊,它的具體格式為:[root@localhost network-scripts]# cat ifcfg-eth0DEVICE=eth0BOOTPROTO=noneONBOOT=yesTYPE=EthernetNETMASK=255.255.255.128IPADDR=11.19.13.16USERCTL=noPEERDNS=yesGATEWAY=61
Time of Update: 2018-12-04
linux下定時器的使用 -- alarm() & setitimer():1、alarm------------------------------------------- 如果不要求很精確的話,用alarm()和signal()就夠了 unsigned int alarm(unsigned int seconds) 函數說明:
Time of Update: 2018-12-04
本文為轉載 http://www.opensolution.org.cn/archives/502.html一、free 該工具主要是顯示系統裡可用和已用的記憶體Linux通常按一定的演算法把常用的資料載入到系統的虛擬記憶體buffers和cached中,以便於使用者程式在訪問系統資源更快。而由free查看到的buffers是用於存放中繼資料,而cached是用於存放真實的檔案內容。 由free
Time of Update: 2018-12-04
轉自:http://www.cppblog.com/kongque/archive/2011/03/07/141262.aspxcore dump的概念:A core dump is the recorded state of the working memory of a computer program at a specific time, generally when the program has terminated abnormally (crashed). In