Time of Update: 2018-07-30
安裝Linux作業系統之前需要先在windows系統下面安裝一個虛擬機器軟體用來類比運行Linux系統,本文中選用了vmware7.0。 安裝步驟具體如下: 1、首先下載vmware安裝包。 2、將下載好的安裝包進行安裝。 3、安裝完成後重啟電腦,完成安裝。 Vmware安裝完成後就可以安裝Linux作業系統了,本文選擇了ubuntu10.04LTS作為宿主機的Linux作業系統。具體安裝步驟如下: 1、首先下載ubuntu10.04LTS系統鏡像壓縮包。
Time of Update: 2018-07-30
轉自:http://shake863.javaeye.com/blog/187085 將闡述Linux核心中的如下幾個概念 1) 進程組 2) 會話 3) 控制終端 1.概念: a)進程組 Shell 上的一條命令列形成一個進程組 每個進程屬於一個進程組 每個進程組有一個領頭進程 進程組的生命週期到組中最後一個進程終止,
Time of Update: 2018-07-30
[轉載] http://blog.sina.com.cn/s/blog_6e00b3310101fh01.html 錯誤Too many levels of symbolic links 今天在安裝mysql軟體的時候,mysql/bin目錄下用ln -s mysql /usr/local/bin/mysql 建立軟串連,後來啟用mysql時彈出錯誤: -bash: /usr/local/bin/mysql: Too many levels of symbolic links
Time of Update: 2018-07-30
[root@Linux var]# df -hl 檔案系統 容量 已用 可用 已用% 掛載點/dev/hdb2 75G 75G 0 100% //dev/hdb1 99M 9.2M 85M 10% /bootnone 251M 0 251M 0%
Time of Update: 2018-07-30
本文參考文章地址: http://hi.baidu.com/donghaozheng/blog/item/02e1b231f0df64a25fdf0eea.html 本文參考友善之臂的MICRO2440使用者手冊
Time of Update: 2018-07-30
轉自:http://andyniu.iteye.com/blog/1965571 core 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 practice,
Time of Update: 2018-07-31
常用基礎命令,僅作記錄 mkdir與rmdir [rmdir不能刪除非空目錄] mkdir -p /usr/xx/bb [遞迴建立目錄] mkdir -p rcha/{xx,yy,zz} [在rcha目錄下建立xx,yy和zz3個平行目錄] tree rcha rcha/ |--xx |--yy |--zz rmdir -p rcha/xx
Time of Update: 2018-07-30
1. 庫: 本質上來說是一種可執行代碼的二進位形式。 linux下的庫有兩種:靜態庫和動態庫(共用庫) 1.1 靜態庫: 在程式編譯時間被串連到目標代碼中,程式運行時,將不再需要該靜態庫,因此體積較大。 優點:程式運行時將不再需要該靜態庫 缺點:可執行檔的體積變大。 尾碼是 .a 1.2 動態庫: 編譯時間不串連到代碼中,在運行時才載入,因此程式運行時還需要動態庫存在,因此代碼體積較小。 優點:在程式運行時才被載入記憶體中。
Time of Update: 2018-07-31
轉載: Linux從2.0開始增加對SMP系統的支援。在2.2前的核心中,SMP實現在使用者級,Linux核心本身並不能因為有多個處理器而得到加速;在2.4核心後,SMP實現在核心級,使用多處理器可以加快核心的處理速度。 1、SMP中的系統引導
Time of Update: 2018-07-31
1 . 系統內容: Distributor ID: Ubuntu Description: Ubuntu 14.04.5 LTS Release: 14.04 Codename: trusty QT工程連結引用第三方庫暫時知道的有兩種方法: 一、在Makefile中添加相關路徑參數 二、修改.pro檔案,添加相關參數
Time of Update: 2018-07-31
在linux的網路編程中,經常需要用到網路資訊如:ip、gateway、dns等。以下指令碼實現了擷取網路資訊的功能,包括ip、broadcast、netmask、gateway以及dns的資訊 default_route=$(ip route show)default_interface=$(echo $default_route | sed -e 's/^.*dev \([^ ]*\).*$/\1/' | head -n 1)address=$(ip addr show
Time of Update: 2018-07-31
/usr/bin/vi ~/.bashrc 配置jdk時候root環境下 亂修改了一些變數導致不可用。 內容: 1:source /etc/environment,轉到自己沒有修改過的PATH的檔案,然後ls命令就可以用了; 2:找到自己修改過的PATH檔案,我的是~/.bashrc檔案 3:vim ~/.bashrc,對錯誤的地方進行了修改 4:source ~/.bashrc,轉到已經修改過的檔案; 5:ls,可以正常使用。
Time of Update: 2018-08-01
開啟檔案流程:系統調用 fd=open("/dev/pcie_ssd",O_RDWR); 代碼定位fs: open.c檔案裡 SYSCALL_DEFINE3(open, const char __user *, filename, int, flags, umode_t, mode) {if (force_o_largefile())flags |= O_LARGEFILE;return do_sys_open(AT_FDCWD, filename,
Time of Update: 2018-08-01
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/lockstat.txt LOCK STATISTICS- WHATAs the name suggests, it provides statistics on locks.- WHYBecause things like lock contention can severely impact
Time of Update: 2018-08-01
1、linux下如何安裝hiredis 1)下載地址 https://github.com/redis/hiredis 2)編譯和安裝 解壓後的檔案夾執行 make;make install; 3)標頭檔包含 include <hiredis/hiredis.h> 4)編譯選項 makefile檔案中加入 LDFLAGS = -lhiredis 2、主要結構 主要關注2個結構體,
Time of Update: 2018-07-31
我們知道Linux的目錄結構為樹狀結構,最頂級的目錄為根目錄 /。 其他目錄通過掛載可以將它們添加到樹中,通過解除掛載可以移除它們。 在開始本教程前我們需要Crowdsourced Security Testing道什麼是絕對路徑與相對路徑。 絕對路徑:路徑的寫法,由根目錄 / 寫起,例如: /usr/share/doc 這個目錄。 相對路徑:路徑的寫法,不是由 / 寫起,例如由 /usr/share/doc 要到 /usr/share/man 底下時,
Time of Update: 2018-07-31
Linux核心日誌開關 1、讓pr_debug能輸出 --- a/kernel/printk/printk.c +++ b/kernel/printk/printk.c @@ -59,7 +59,7 @@ /* We show everything that is MOREimportant than this.. */ #define MINIMUM_CONSOLE_LOGLEVEL 1 /*Minimum loglevel we let people
Time of Update: 2018-07-31
1. 首先,編寫c程式helloworld.c: #include <linux/init.h> #include <linux/module.h> #include <linux/kernel.h> static int hello_init(void) { printk("<1>Hello World!\n");
Time of Update: 2018-08-02
1.......................................... 友好的顯示所有服務的運行狀態: service --status-all chkconfig --list 2................................ 查看單個服務的運行狀態 如 service sshd status 3................................ 查看啟動狀態,是否開機自動啟動 chkconfig -
Time of Update: 2018-08-02
一、利用進程來查看 命令裡 ps -aux | grep xxx 是查看某個進程或者服務是否存在。 二、利用chkconfig組態工具chkconfig --list 可以列出sysV和xinet服務在各個runlevel的預設啟動狀態。 三、利用SERVICE 命令 service 服務名 status 如: [root@localhost ~]# service sshd status openssh-daemon