Time of Update: 2014-09-04
標籤:style os 使用 ar sp on c linux 時間 學到一定程度了就會關注系統方面的一些配置,只是就需要相關的命令了。現在把Linux查看系統配置常用命令列出來# uname
Time of Update: 2014-09-04
標籤:runtime.getruntime.e1、在實際開發中,使用Runtime.getRuntime().exec()執行Linux指令碼時,需要同時讀取標準輸出資料流與錯誤輸出資料流緩衝區資料,因為作業系統緩衝區大小有限制,不及時處理會導致緩衝區佔滿而掛住,這種問題發生在於開發人員對該介面不瞭解而引發Bug。具體可以通過使用兩個線程同時去讀錯誤和標準輸出資料流緩衝區資料,然後用proc.waitFor()可以擷取執行的結果。這種事最常見的情境,只關註腳本執行結果。2、但在實際開發中,通過R
Time of Update: 2014-09-04
標籤:style color os 檔案 sp on c linux ef 1. 關閉IPV6 vi /etc/sysconfig/networkNETWORKING_IPV6=no&
Time of Update: 2014-09-03
標籤:互連網 防火牆 伺服器 linux 使用者 1 精簡安裝包(迷你安裝)2 禁用開機不需要的服務3.最佳化核心參數/etc/sysctlconf4.配置國內高速yum源5增加系統檔案描述符,堆棧等配置6禁用root遠程登陸,修改ssh為特殊連接埠7
Time of Update: 2014-09-04
標籤:os 使用 檔案 div sp log on c linux 3、
Time of Update: 2014-09-03
標籤:style blog http color os io 使用 strong ar 終於決定將學習環境徹底轉到Linux上來,下面記錄一下轉移學習環境的各種軟體和環境的安裝和配置。1、cen
Time of Update: 2014-09-03
標籤:blog http os io 使用 strong ar 資料 art 轉自:http://blog.csdn.net/aklixiaoyao/article/details/754886
Time of Update: 2014-09-03
標籤:des style blog http color os io strong ar There are some useful tools in Unix/Linux to check
Time of Update: 2014-09-03
標籤:management 電腦硬體 電腦系統 interface 電腦程式 一、作業系統發展史維基百科搜尋作業系統作業系統(英文:Operating System,縮寫:OS)是管理電腦硬體與軟體資源的電腦程式,同時也是電腦系統的核心與基石。 作業系統功能:· 進程管理(Processing&nb
Time of Update: 2014-09-03
標籤:service 防火牆 管理工具 網路 linux Linux系統管理 –RHEL-7 防火牆篇 Linux系統的防火牆功能是由核心實現的:2.0 版核心中,包過濾機制是ipfw,管理工具是ipfwadm2.2 版核心中,包過濾機制是ipchain,管理工具是ipchains2.4 版及以後的核心中,
Time of Update: 2014-09-03
標籤:style io 使用 strong ar 檔案 資料 div sp 對系統安全非常重要的一個命令 chattr chattr 用於設定檔案屬性
Time of Update: 2014-09-03
標籤:io 使用 ar for 檔案 2014 sp log on GROUPMOD(8) &nbs
Time of Update: 2014-09-03
標籤:style blog color io ar 檔案 資料 art div 1.讀取已經開啟的檔案#include<unistd.h>ssize_t read(int
Time of Update: 2014-09-04
每天一個linux命令(九月),linux命令九月2014-09-02 top 即時顯示系統中各個進程的資源佔用狀況,類似於Windows的工作管理員 命令參數: -b 批處理 -c 顯示完整的治命令 -I 忽略失效過程 -s 保密模式 -S 累積模式 -i<時間> 設定間隔時間 -u<使用者名稱> 指定使用者名稱 -p<進程號> 指定進程 -n<次數>
Time of Update: 2014-09-04
Linux命令(3):mkdir命令,linux命令mkdir1、作用:建立一個目錄;2、格式:mkdir [選項] 路徑;3、常見參數:4、使用執行個體:[root@localhost ~]# mkdir -p ./hello/my[root@localhost ~]# pwd(查看目前的目錄命令)/root/hello/my該執行個體使用選項“-p”一次建立了./hello/my 多級目錄。[root@localhost ~]# mkdir -m 777
Time of Update: 2014-09-04
usage of elinks (命令列下的firefox),usageelinksNo.0Press "Esc" to show main menu=============================================No.1tyep "elinks" to start the program, or add a domain name,for example: # elinks www.google.com.hk No.2use the 'g' key to bring
Time of Update: 2014-09-04
[RK_2014_0904]Linux下測試串口是否工作正常,rk_2014_0904linux一.測試環境PC1:Win8,運行串口調試工具:USR-TCP232-Test.exe;PC2:Ubuntu14.04; PC1和PC2之間使用“USB轉串口”進行串連;USB轉串口使用FT232晶片,相關驅動請搜尋“ft232r usb
Time of Update: 2014-09-04
CentOS 4.x升級到CentOS 5.x說明:當前作業系統:CentOS 4.x 64位實現目的:通過yum命令線上升級CentOS 4.x到CentOS 5.x最新版本一、升級CentOS 4.x到CentOS 4.9版本cd /etc/yum.repos.d/#進入目錄mv CentOS-Base.repo CentOS-Base.repo-bak#備份之前的檔案wget http://vault.centos.org/4.9/CentOS-Base.repo#下載CentOS 4.9
Time of Update: 2014-09-04
Linux主機root切換使用者擷取$?結果異常案例1. 問題描述首先是NBU備份I2000資料庫時,監控頁面查看到總是失敗,但事實上,rman備份操作已經完成,只是最後取$?時異常導致而已。其次,在一次業務升級中,ideploy工具自動升級之前做的環境檢查,各個組件都檢查不通過,無法自動升級,最後手工做的升級,幾百塊單板,真是悲劇。2. 問題現象NDMC21:~ # su - sshusr -c "ls";echo $? bin breeze check.sh
Time of Update: 2014-09-03
linux常用系統監控命令,linux監控命令原文:http://blog.sina.com.cn/s/blog_68f1c17001016uvy.html Linux提供了很多用於監控系統的工具,使用這些工具可以找到導致系統效能降低的瓶頸。系統反應慢並不總是由於CPU慢,它也可能是因為磁碟速度太慢、系統中安裝的記憶體較少、網路擁擠或其他反應較慢的系統組件導致。 一、top –進程活動監控