Time of Update: 2018-12-04
參考:http://www.cnblogs.com/guoqiaojin/archive/2012/08/24/2653609.html asic (阿塞克) 於Mon Jul 16 12:48:46 2012)提到:int main() {printf("hello ");fork();printf("world\n");}執行結果是列印了兩行 hello world和我之前所理解的不一樣,我理解的是父進程執行到fork()函數才產生子進程,這樣的話應該是列印一個hello和兩個world
Time of Update: 2018-12-04
文章目錄 Ubuntu 虛擬環境中 MySQL 等指令碼無法執行 目標:快速建立環境用語測試 deb 包安裝 / web 應用部署。可參考 https://github.com/wolf0403/lvmvm 的 README 基礎環境:Ubuntu Natty (11.04) server. 檔案系統:測試環境的快速部署依賴 LVM (Logical Volume Management) 。安裝宿主系統方法不限,留足夠硬碟建立單一分區,如
Time of Update: 2018-12-04
編譯和串連:編譯通常是對單個源檔案進行編譯成.o檔案;要加上-c選項,比如 gcc -o aa.o -c
Time of Update: 2018-12-04
著作權資訊: 著作權歸smilestone322所有,保留所有權利,僅用來學習,請勿用於商業用途,歡迎轉載,轉載請註明出處。謝謝!5.linux usb和windows usb 驅動開發異同小結 從<1>到<9>從介紹了usb驅動的基礎知識,及對windows
Time of Update: 2018-12-04
一、uboot的目錄結構: 1、Board ,和開發板有關的檔案 2、Common,實現uboot支援的命令 3、CPU,與處理器相關的代碼 4、Disk,對磁碟的支援 5、Doc,文檔目錄 6、Drivers,uboot支援的裝置驅動程式都放在該目錄 7、Fs,檔案系統的支援
Time of Update: 2018-12-04
一、proc檔案系統概述 1、proc檔案系統是 核心 和 使用者 互動的一種機制;通過proc檔案系統,可以下使用者態下查看linux核心的一些狀態,也可以通過proc檔案系統對核心做一些配置 比如: 通過 /proc/meminfo,查詢記憶體使用量的情況二、proc檔案/子目錄 介紹 1、apm : 進階電源管理資訊 2、bus : 匯流排以及匯流排上的裝置 3、devices
Time of Update: 2018-12-04
這裡只說明一些常用參數,自己不常用的這裡忽略,tar是一個集打包\解包\壓縮\解壓於一體的命令。用法:tar [選項···] [檔案]···GNU ‘tar’將許多檔案一起儲存至一個單獨的磁帶或磁碟歸檔,並能從歸檔中單獨還原所需檔案。常用樣本:tar -cf archive.tar foo bar #從檔案foo bar建立歸檔檔案 archive.tar.tar -tvf archive.tar #詳細列舉歸檔檔案archive.tar中的所有檔案。tar -xf archive.tar#展開
Time of Update: 2018-12-04
安裝Linux系統以後, 預設是缺少開發環境和協助文檔的. 我們可以使用下面的命令來配置基本的開發環境:1. 安裝必要的開發工具和環境(dpkg-dev, gcc, g++, libc-dev, make, ...):#sudo apt-get install build-essential2. 安裝協助文檔:#sudo apt-get install binutils-doc#sudo apt-get install binutils-doc cpp-doc gcc-doc
Time of Update: 2018-12-04
組建彙編開發環境。最低限度工具:彙編器連結器調試器還有要為進階語言程式建立的彙編曆程:進階語言編譯器目標代碼反組譯碼器用於最佳化的簡檔產生工具*******************************************************************************彙編器1MASM。。。。。。。。。。。。INTEL平台彙編其鼻祖2NASM。。。。。。。。。。。。UNIX商業3GAS
Time of Update: 2018-12-04
Linux核心中提供的一些字串轉換函式:lib/vsprintf.c 1. unsigned long long simple_strtoull(const char *cp, char **endp, unsigned int base) 2. unsigned long simple_strtoul(const char *cp, char **endp, unsigned int base) 3. long simple_strtol(const char *cp,
Time of Update: 2018-12-04
首先是 apache 以及 subversion的安裝,可以參考http://blog.163.com/buypc_hao/blog/static/10792077520124310834880/ 然後許可權配置,若要配置為匿名可讀需要在 Require valid-user 加上 <LimitExcept GET PROPFIND OPTIONS REPORT> Require
Time of Update: 2018-12-04
There are a number of directories under /etc/rc.d that look like rc?.d (where ? is the number of the run-level) and rcsysinit.d, all containing a number of symbolic links. Some begin with a K, the others begin with an S, and all of them have two
Time of Update: 2018-12-04
Nginx 通常與 指令碼語言解析器分開部署在不同的伺服器上,以減輕壓力Varnish: 高效能HTTP加速器 Memcached: 分布式記憶體對象緩衝系統 協議簡單 基於libevent的事件處理 內建的記憶體管理方式 互不同新的Memcached之間具有分布特徵Bacula: 開源備份軟體DRBD: Distributed Replicated Block Device叢集 LVS負載平衡叢集 RHCS叢集 MySQL + heartbeat +
Time of Update: 2018-12-04
我們都知道在中國上美國的網站是很慢的,然而在linux的使用過程中,很多時候配置環境的軟體是要求我們通過輸入指令而自動安裝的。所以一個好的源檔案就顯得尤為重要。這裡我們可以參考http://wiki.ubuntu.org.cn/index.php?title=Qref/Source&variant=zh-cn。首先要瞭解我們自身的ubuntu版本。這個cat /etc/issue語句可以實現這個功能。然後我們通過sudo gksu gedit
Time of Update: 2018-12-04
1.Linux的目錄配置以『樹狀目錄』來配置,至於磁碟分割槽(partition)則需要與樹狀目錄相配合! 請問,在預設的情況下,在安裝的時候系統會要求你一定要分割出來的兩個Partition為何?答:就是根目錄『/』與記憶體置換空間『Swap』2.若在分割的時候,在 IDE1 的 slave 硬碟中,分割『六個有用』的分割槽 (具有 filesystem 的) ,此外,已知有兩個 primary
Time of Update: 2018-12-04
http://www.linuxgraphics.cn/android/index.htmlhttp://blog.chinaunix.net/u2/85805/http://blog.csdn.net/stevenliyong/category/578556.aspxhttp://blog.csdn.net/cuijpus/archive/2008/06/15/2549803.aspxhttp://dbus.freedesktop.org/doc/dbus-tutorial.html#gli
Time of Update: 2018-12-04
Linux Input Device 介紹: APIsjollen 發表於 April 8, 2009 12:18 PMLinux 的 Input Device 是重要的一個 subsystem,在進行實例介紹前,先大略瞭解一下相關的 API。Linux Input Deviceinput.c是Linux的”input”驅動程式,主要支援鍵盤與滑鼠的輸入;input.c介面有趣的地方是採用了事件(event)的方式來處理輸入,以下是input.c介面重要的資料結構與函數:* struct
Time of Update: 2018-12-04
原始通訊端(SOCK_RAW). 應用原始通訊端,我們可以編寫出由TCP和UDP通訊端不能夠實現的功能.注意原始通訊端只能夠由有 root許可權的人建立. /******************** DOS.c *****************/#include <stdlib.h>#include <stdio.h>#include <errno.h>#include <string.h>#include <
Time of Update: 2018-12-04
文章目錄 1. lsmod – List Modules that Loaded Already2. insmod – Insert Module into Kernel3. modinfo – Display Module Info4. rmmod – Remove Module from Kernel5. modprobe – Add or Remove modules from the kernel1. Installing the linux
Time of Update: 2018-12-04
人才很重要,在IT領域,Linux人才很重要,如何成為符合企業需求的Linux人才呢?是精通Linux下的那一堆的命令(or Shell指令碼編程)嗎?還是能夠修改Linux核心的一些東西?還是能夠熟練地用Linux部署企業的應用?還是能夠高效地在Linux平台下進行軟體開發(C,Perl,PHP,Java)?分兩條線路:一、重Linux應用與系統維護管理1.Linux下的Shell