Time of Update: 2018-07-28
http://blog.csdn.net/xuxinyl/article/details/6454119 我們在使用VMWARE的虛擬化軟體時經常會發現它們能都能虛擬出一個網卡,貌似很神奇的技術,其實在Linux下很簡單,有兩種虛擬設 備,TUN時點對點的裝置,tap表示乙太網路裝置的,做為虛擬網卡驅動,Tun/tap驅動程式的資料接收和發送並不直接和真實網卡打交道,而是通
Time of Update: 2018-07-28
http://blog.csdn.net/wangwenwen/article/details/13629193 1.安裝vlan(vconfig)和載入8021q模組 #aptitude install vlan #modprobe 8021q 或: #yum install vconfig #modprobe 8021q #lsmod |grep -i 8021q
Time of Update: 2018-07-29
dnscache.py 的詳細代碼如下,在linux下,直接“import dnscache”不用修改其它任何東西,即可擁有如windows下面的dns緩衝效果,有必要的話,可以在一個有效時間內,清空一下緩衝 # -*- encoding: utf-8 -*-import socket, threading CON_ONLY_CHECK_IPV4 = True # 是否只採用IPV4查詢 #def getaddrinfo(host, port,
Time of Update: 2018-07-29
https://my.oschina.net/7shell/blog/308887 公司業務需求,一台伺服器,雙網卡,需要同時訪問外網和內網。在設定過程中,同事反映原本好用的內網地址(192.168.1.100)在設定上外網地址後變的不好用,只要停止外網那個網卡內網就可以正常訪問了。
Time of Update: 2018-07-29
分析: kill -15 `ps -eaf | grep -v grep | grep -i nodemanager | awk '{print $2}'` 這句代碼的含義 1. 關於grep: grep全稱是Global Regular Expression Print,表示全域Regex版本,它的使用許可權是所有使用者。
Time of Update: 2018-07-29
1.為什麼使用CGI。 如前面所見,任何的HTML均是靜態網頁,它無法實現一些複雜的功能,而CGI可以為我們實現。如: a.列出伺服器上某個目錄中的檔案,對目錄中的檔案進行操作;
Time of Update: 2018-07-29
1. sysyfs展示了linux裝置模型,sysfs中顯示的每一個對象都對應一個kobject,但反過來不成立,每一個kobject並不一定出現在sysfs中,但kset會。使用了kobject_add函數添加某個kset中的kobject會在sysfs中顯示為一個目錄,其屬性為目錄中的檔案。 2. kobject的作用為嵌入其他對象(如裝置等)的結構體中,將其連結到裝置模型中,並維護其生命週期(通過引用計數)。 3. kobject的存在需要建立它的模組的存在,因此:
Time of Update: 2018-07-29
使用許可權 : 所有使用者 使用方式 : sleep [--help] [--version] number[smhd] 說明 : sleep 可以用來將目前動作延遲一段時間 參數說明 : --help : 顯示輔助訊息 --version : 顯示版本編號 number : 時間長度,後面可接 s、m、h 或 d 其中 s 為秒,m 為 分鐘,h 為小時,d 為日數 例子 : 顯示目前時間後延遲 1 分鐘,之後再次顯示時間 : date;sleep 1m;date
Time of Update: 2018-07-29
The Linux kernel accepts boot time parameters as it starts to boot system. This is used to inform kernel about various hardware parameter. You need boot time parameters: * Troubleshoot system * Hardware parameters that the kernel would not able to
Time of Update: 2018-07-29
首先要說明的是我的系統是fedora,其他系統可能不完全相同。 1,時間儲存在硬體即時鐘(RTC)中,RTC由主板電池供電,即使關斷電源也不會造成時間丟失。 2,系統啟動時從RTC擷取時間,這個步驟在rc.sysinit中做:
Time of Update: 2018-07-29
http://huobumingbai.blog.51cto.com/1196746/309113 1. 準備工作: 1) 兩台Linux機器,其中一台做伺服器,一台做客戶機。(這裡使用虛擬機器來示範)
Time of Update: 2018-07-29
http://www.cnblogs.com/tureno/articles/3748195.html Linux應用:Linux下的升級包及打補丁製作,在做開發的過程中難免需要給核心及下載的一些源碼打補丁或者說是升級,所以我們學習在Linux下使用diff製作補丁以及如何使用patch打補丁顯得尤為重要。 前言
Time of Update: 2018-07-28
http://oboguev.net/kernel-etc/linux-cluster-setup.html Helpful reading: https://alteeve.ca/w/AN!Cluster_Tutorial_2 https://alteeve.ca/w/2-Node_Red_Hat_KVM_Cluster_Tutorial_-_Archive RedHat 7 documentation
Time of Update: 2018-07-29
1, 主板資訊 .查看主板的序號 -------------------------------------------------- #使用命令 dmidecode | grep -i 'serial number' #查看板卡資訊 cat /proc/pci ------------- ... 1, 主板資訊 .查看主板的序號 -------------------------------------------------- #使用命令 dmidecode |
Time of Update: 2018-07-29
http://blog.csdn.net/lingfengtengfei/article/details/12398299 Linux epoll詳解 一、什麼是epoll epoll是什麼。按照man手冊的說法:是為處理大批量控制代碼而作了改進的poll。當然,這不是2.6核心才有的,它是在2.5.44核心中被引進的(epoll(4) is a new API introduced in Linuxkernel
Time of Update: 2018-07-29
核心層: 1. 核心arch/x86/kernel/syscall_table_32.S .long sys_mysyscall /* 285 */ /* available */ 2. arch/x86/include/asm/unistd_32.h #define __NR_mysyscall 285 3.
Time of Update: 2018-07-28
http://os.51cto.com/art/201006/203963.htm 我們通過free命令查看機器空閑記憶體時,會發現free的值很小。這主要是因為,在linux中有這麼一種思想,記憶體不用白不用,因此它儘可能的cache 和buffer一些資料,下面是查看記憶體的命令供大家參考 1.Linux 查看記憶體的插槽數,已經使用多少插槽.每條記憶體多大,已使用記憶體多大 dmidecode|grep-P-A5"
Time of Update: 2018-07-28
提示符: [root@localhost ~]#
Time of Update: 2018-07-29
通過修改proc系統的drop_caches清理free的cache $echo 3 > /proc/sys/vm/drop_caches drop_caches的詳細文檔如下: Writing to this will cause the kernel to drop clean caches, dentries and inodes from memory, causing that memory to become free. To free pagecache: * echo
Time of Update: 2018-07-29
標籤:www. 檔案夾 否則 help 不能 nbsp 依賴包 rom ftp 我這裡使用的時centos7-mini,centos系統本身預設安裝有python2.x,版本x根據不同版本系統有