Time of Update: 2014-09-02
標籤:blog http 使用 strong 檔案 log on linux c 建立使用者、設定密碼、修改使用者、刪除使用者:useradd testuser
Time of Update: 2014-09-02
標籤:des style blog http os io 使用 for 檔案 chkconfig命令主要用來更新(啟動或停止)和查詢系統服務的運行級資訊。謹記chkconfig不是立即自動禁止或
Time of Update: 2014-09-02
標籤:style ar 代碼 sp on linux c size 管理 2005年4月7日,Linus
Time of Update: 2014-09-02
標籤:cccccc linux style 網路 介面 #ifconfig命令:用來查看和配置網路裝置 顯示當前啟用狀態的網路介面的資訊: [[email protected]_168_102_centos ~]# ifconfigeth0 Link encap:Ethernet HWaddr 0
Time of Update: 2014-09-02
標籤:linux 虛擬機器 程式員 Java軟體工程師必備技能之一:Linux 下安裝JDK 對於選擇在Linux 下開發應用的程式員來說的
Time of Update: 2014-09-02
標籤:style os 使用 檔案 2014 log sp amp on tail 命令從指定點開始將檔案寫到標準輸出.使用tail命令的-f選項可以方便的查閱正在改變的記錄檔,tai
Time of Update: 2014-09-02
標籤:style os java ar sp on linux c size 執行個體一:設定臨時環境變數 &n
Time of Update: 2014-09-02
標籤:style os io 使用 資料 log sp on linux kill Linux中的kill命令用來終止指定的進程(terminate a proce
Time of Update: 2014-09-02
標籤:style blog http color os io ar for 檔案 說明:涉及到的標頭檔(.h),目錄預設都是基於 /usr/include/ 目錄.1.在 "/sys/
Time of Update: 2014-09-02
Linux效能診斷工具,linux效能診斷vmstat:虛擬記憶體狀況–swpd free buff cache si so in cs參考:http://www.cnblogs.com/ggjucheng/archive/2012/01/05/2312625.htmliostat:io狀況avgqu-sz
Time of Update: 2014-09-02
centos7配置靜態IPcentos7按照初始安裝時候的developer類型一路裝好,在vmware裡已經設定為bridge模式,按理說是會自動按照DHCP連網成功的,結果卻發現連網卡都沒有啟用,這裡記錄下。配置網卡vim
Time of Update: 2014-09-02
Centos開啟FTP服務第一步:#chkconfig vsftpd on //開機自啟動vsftpd服務第二步:#/etc/init.d/vsftpd start //開啟vsftpd服務第三步:#vi /etc/vsftpd/vsftpd.conf //編輯vsftp設定檔找到下面這個並禁用:anonymous_enable=NO //禁用匿名使用者登陸再添加一行:local_enable=YES //開啟本機使用者登陸第四步:建立使用者#adduser -d /var/ftp/test -
Time of Update: 2014-09-02
CentOS下修改TCP串連數一、檔案數限制修改(1)vi/etc/security/limits.conf加入:*soft nofile 32768*hard nofile 32768儲存並退出。新登入一個ssh視窗(或者本機重新登入),ulimit -n,發現已經更改過來。但是這樣還不夠,當串連超過1024後,還是會報檔案控制代碼錯誤。這就需要更改核心參數了。vi /ect/sysctl.conf加入fs.file-max = 32768(2)
Time of Update: 2014-09-02
centos安裝rsync先安裝rsync軟體yum安裝yum install rsync,編譯安裝訪問http://rsync.samba.org/,下載最新的rsync穩定版本wget http://rsync.samba.org/ftp/rsync/src/rsync-3.0.9.tar.gzwget http://rsync.samba.org/ftp/rsync/src/rsync-patches-3.0.9.tar.gztar -zxvf rsync-3.0.9.tar.gztar
Time of Update: 2014-09-02
CentOS下TCP斷線監測TCP正常的斷開,通訊雙方(服務端和用戶端)都是能知道的。但是非正常的斷開,比如直接拔掉了網線,就只能靠如下兩種方法,實現短時間內的檢測。 一,心跳包機制心跳包機制,是網遊設計中的常用機制。從使用者層面,自己發包去判斷對方連線狀態。可以根據情況,很靈活的使用。比如,20秒發送一個最小的資料包(也可以根據實際情況稍帶一些其他資料)。如果發送沒有回應,就判斷對方掉線了。
Time of Update: 2014-09-02
CentOS下使用yum快速安裝memcached1. 尋找Memcachedyum search memcached首先檢查yum軟體倉庫中是否存在memcached,如果有 直接進入第3步安裝即可,否則執行第2步。2.
Time of Update: 2014-09-02
python命令列下按tab建補全的方法此方法只在centos6上測試通過,其它系統木有測試1、在使用者家目錄下建立一個名字叫.pythonstartup 的隱藏檔案,寫入如下內容:# python startup fileimport readlineimport rlcompleterimport atexitimport os# tab completion readline.parse_and_bind('tab: complete')# history file
Time of Update: 2014-09-02
Linux查看機器是多少位,Linux查看機器命令:file /bin/ls樣本:如上所示,我的機器是32位的。怎查看linux版本 怎查看LINUX是哪個位查看linux機器是32位還是64位的方法:file /sbin/init 或者file /bin/ls/sbin/init: ELF64-bitLSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared
Time of Update: 2014-09-02
CentOS6.5安裝配置Tengine一、安裝pcre:複製代碼cd /usr/local/srcwget http://downloads.sourceforge.net/project/pcre/pcre/8.34/pcre-8.34.tar.gztar zxvf pcre-8.34.tar.gzcd pcre-8.34./configure --prefix=/usr/local/pcremakemake install複製代碼二、下載proxy_cache外掛程式cd
Time of Update: 2014-09-02
CentOS下查看多核負載1. Linux下,如何看每個CPU的使用率:#top -M之後按下數字1. (或者top之後按1也一樣)則顯示多個CPU 的資訊,和記憶體資訊:[root@testpc ~]# top -Mtop - 15:38:40 up 2 days, 2:05, 2 users, load average: 0.00, 0.00, 0.00Tasks: 138 total, 1 running, 137 sleeping, 0 stopped, 0 zombieCpu0 : 0