<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>遨遊飛翔 &#187; centos</title>
	<atom:link href="http://blog.shian.tw/tag/centos/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.shian.tw</link>
	<description>學習筆記 For php、jQuery、MySql、Centos、Suse、Server、CodeIgniter</description>
	<lastBuildDate>Sun, 09 Oct 2011 16:00:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<atom:link rel='hub' href='http://blog.shian.tw/?pushpress=hub'/>
		<item>
		<title>利用bandwidthd偵測各ip流量</title>
		<link>http://blog.shian.tw/bandwidthd.html</link>
		<comments>http://blog.shian.tw/bandwidthd.html#comments</comments>
		<pubDate>Mon, 11 Aug 2008 06:17:15 +0000</pubDate>
		<dc:creator>shian</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos]]></category>

		<guid isPermaLink="false">http://blog.shian.tw/?p=56</guid>
		<description><![CDATA[bandwidthd是一套相當簡單但是卻相當好用的ip流量偵測套件，只要設定好要偵測的網段後，bandwidthd會自動去偵測區段裡每個ip的流量，而且也可以很清楚知道每個ip從哪個port進出的流量，並且可以選擇日、週、月、年的區間流量圖來觀看。 準備: 至 bandwidthd 下載套件 安裝: 1. 解壓縮 # tar -zxvf bandwidthd-2.0.1 2.安裝 bandwidthd # cd bandwidthd-2.0.1 # ./configure # make # make install 3.目錄: 預設安裝目錄:    /usr/local/bandwidthd/ 設定檔: /usr/local/bandwidthd/etc/bandwidthd.conf 網頁目錄: /usr/local/bandwidthd/htdocs/ 設定: 1.設定偵測區段ip流量 # vi /usr/local/bandwidthd/etc/bandwidthd.conf 修改 subnet 為你的區網ip mask &#8230; <a href="http://blog.shian.tw/bandwidthd.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://blog.shian.tw/bandwidthd.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iftop 即時監看主機連線狀態</title>
		<link>http://blog.shian.tw/iftop.html</link>
		<comments>http://blog.shian.tw/iftop.html#comments</comments>
		<pubDate>Mon, 16 Jun 2008 08:00:00 +0000</pubDate>
		<dc:creator>shian</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://blog.shian.tw/?p=31</guid>
		<description><![CDATA[iftop是一套即時監控主機網路連線狀態,透過iftop可以很快清楚知道誰連到這台主機,之前也是用這套抓出來自中國大陸的機器人,並且安裝即使用也相當的簡單 準備: 到 iftop 官網下載此套件 安裝: 1. 解壓縮 iftop 並進入該目錄 # tar -zxvf iftop.tar.gz # cd iftop 2. 使用tarball安裝 # ./configure # make # make install 使用: # iftop -i eth0 參數說明: -i: 監控網路卡介面 -B: 以bytes為單位 -n: 以IP顯示不用DNS反解 -N: 只顯示port不顯示服務名稱 &#8230; <a href="http://blog.shian.tw/iftop.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://blog.shian.tw/iftop.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Postfix 多重網域+虛擬帳號</title>
		<link>http://blog.shian.tw/postfix-virtual.html</link>
		<comments>http://blog.shian.tw/postfix-virtual.html#comments</comments>
		<pubDate>Mon, 05 May 2008 03:33:12 +0000</pubDate>
		<dc:creator>shian</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[postfix]]></category>

		<guid isPermaLink="false">http://blog.shian.tw/?p=49</guid>
		<description><![CDATA[利用postfix達成多重網域+虛擬帳號的設定 準備: 主要的郵件主機網址 : msa.shian.tw 新增的郵件主機虛擬網域 : mail.shian.tw 註:每個domainname必須要設 MX 設定: 1.修改 postfix main.cf # vi /etc/postfix/main.cf 修改 default_privs = nobody 新增 virtual_alias_maps virtual_alias_maps = hash:/etc/postfix/virtual 2.定義虛擬使用者的對應表 /etc/postfix/virtual # vi /etc/postfix/virtual 新增 mail.shian.tw   anything taco@mail.shian.tw taco.mail.shian.tw 註: #網域 名稱 #taco&#60;-新增的帳號 &#8230; <a href="http://blog.shian.tw/postfix-virtual.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://blog.shian.tw/postfix-virtual.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>MySQL Query Cache</title>
		<link>http://blog.shian.tw/mysql-query-cache.html</link>
		<comments>http://blog.shian.tw/mysql-query-cache.html#comments</comments>
		<pubDate>Thu, 17 Jan 2008 17:41:25 +0000</pubDate>
		<dc:creator>shian</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.shian.tw/?p=48</guid>
		<description><![CDATA[MySQL 也有 cache可以使用! 提高資料庫效能有很重要的效用,可以節約大量的 CPU 時間 ,並且設定也非常的簡單,但是MySQL的版本要4以上才有這功能!! 設定: 1. 修改 /etc/my.cnf 檔案 # vi /etc/my.cnf 2.在 [mysqld] 裡加入下面這2行 query_cache_size=2m query_cache_type = 1 註: query_cache_type = 1 =&#62; 全部使用 query cache query_cache_type = 2 =&#62; 選擇性使用或不使用 query cache SELECT SQL_CACHE &#8216;*&#8217; FROM table &#8230; <a href="http://blog.shian.tw/mysql-query-cache.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://blog.shian.tw/mysql-query-cache.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Mysql 5.1.22 Replication Master to Slave</title>
		<link>http://blog.shian.tw/mysql-5122-replication-master-to-slave.html</link>
		<comments>http://blog.shian.tw/mysql-5122-replication-master-to-slave.html#comments</comments>
		<pubDate>Mon, 14 Jan 2008 17:10:00 +0000</pubDate>
		<dc:creator>shian</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.shian.tw/?p=47</guid>
		<description><![CDATA[Mysql 5.1.22 Replication Master to Slave 預設環境 Master = 192.168.1.102 Slave = 192.168.1.103 要進行資料同步的資料庫 = shian Mysql 安裝位置 = /usr/local/mysql 注意: 我所安裝的Mysql是用Tarball方式安裝,所以下面的Mysql路徑會有所不一樣 , 請依照你的主機路徑做變更 安裝流程 1. 在Master上開一個帳號給Slave 2. 關閉 Master 的 MySQL 3. 備份要同步化的資料庫 4. 編輯 /etc/my.cnf 檔 5. 啟動 Master 的MySQL &#8230; <a href="http://blog.shian.tw/mysql-5122-replication-master-to-slave.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://blog.shian.tw/mysql-5122-replication-master-to-slave.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tarball Apache2 &amp; PHP5</title>
		<link>http://blog.shian.tw/tarball-apache2-php5.html</link>
		<comments>http://blog.shian.tw/tarball-apache2-php5.html#comments</comments>
		<pubDate>Tue, 01 Jan 2008 06:00:22 +0000</pubDate>
		<dc:creator>shian</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos]]></category>

		<guid isPermaLink="false">http://blog.shian.tw/?p=46</guid>
		<description><![CDATA[安裝apach和php有很多方法,像是利用rpm檔來裝,或是使用yum安裝,本篇介紹使用tarball 方式來安裝apache和php, 使用tarball安裝的方式比較麻煩一點,建議初學者可以使用yum的方式安裝 Apache 安裝 安裝： ./configure &#8211;prefix=/usr/local/apache &#8211;enable-so &#8211;enable-ssl &#8211;enable-rewrite make make install 註: &#8211;prefix=/usr/local/apache/ : 安裝apache的位置 &#8211;enable-so : 啟用模組 &#8211;enable-ssl : 啟用ssl &#8211;enable-rewrite : 啟用rewrite PHP 安裝 安裝： ./configure &#8211;prefix=/usr/local/php/ &#8211;with-apxs2=/usr/local/apache/bin/apxs &#8211;with-mysql=/usr/local/mysql/ &#8211;with-gd &#8211;with-jpeg-dir=/usr/lib &#8211;with-zlib-dir=/usr/lib &#8211;with-libxml-dir=/usr/lib &#8211;enable-ftp &#8211;enable-socket &#8230; <a href="http://blog.shian.tw/tarball-apache2-php5.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://blog.shian.tw/tarball-apache2-php5.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Yum 介紹使用</title>
		<link>http://blog.shian.tw/yum.html</link>
		<comments>http://blog.shian.tw/yum.html#comments</comments>
		<pubDate>Fri, 10 Aug 2007 19:49:42 +0000</pubDate>
		<dc:creator>shian</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos]]></category>

		<guid isPermaLink="false">http://blog.shian.tw/?p=35</guid>
		<description><![CDATA[Yum 是一套相當好用以及方便的套件管理,針對Linux上套件的安裝移除更新,可以相當簡單的使用,並可以解決安裝套件時會出現相依性問題 安裝: Yum在安裝好CentOS後即安裝好,所以並不需要另外安裝 可以使用 rpm -qa &#124; grep yum 檢查是否有安裝 使用: 因為Yum預設伺服器是在國外,要更新或安裝心套件都會連到國外的伺服器,所以我們要先更改一些設定,把伺服器設定為國內各大學的機器上 1.先備份 CentOS-Base.repo 這一隻檔案 #cp /etc/yum.repos.d/CentOS-Base.repo  /etc/yum.repos.d/CentOS-Base.repo.bak 2.修改 CentOS-Base.repo #vi /etc/yum.repos.d/CentOS-Base.repo 3.修改地方 下面這4個裡面內容需要修改 [base][update][addons][extras] 4.修改內容 [base] 1.將mirrorlist 那段前面加上 # 註解起來(預設的國外伺服器) #mirrorlist=xxxxxxxxxxxxxxxxxxx 2.將baseurl,gpgkey 修改成下面這樣 baseurl=http://ftp.cse.yzu.edu.tw/pub/CentOS/$releasever/os/$basearch/ gpgkey=http://ftp.cse.yzu.edu.tw/pub/CentOS/RPM-GPG-KEY-centos4 [update] 1.將mirrorlist 那段前面加上 &#8230; <a href="http://blog.shian.tw/yum.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://blog.shian.tw/yum.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux 掛載 NTFS格式硬碟</title>
		<link>http://blog.shian.tw/linux-ntfs.html</link>
		<comments>http://blog.shian.tw/linux-ntfs.html#comments</comments>
		<pubDate>Sun, 29 Jul 2007 00:53:44 +0000</pubDate>
		<dc:creator>shian</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos]]></category>

		<guid isPermaLink="false">http://blog.shian.tw/?p=33</guid>
		<description><![CDATA[Linux 掛載 NTFS格式硬碟 準備: 掛載NTFS必須安裝二個套件&#8230; 1. FUSE 2. ntfs-3g 安裝: 1.安裝fuse 下載下來的檔案可能是tar壓縮的檔案,則必須先tar解壓縮 解壓縮後進入該fuse目錄 執行下列指令 ./configure make make install 2.安裝 ntfs-3g 下載下來的檔案可能是tar壓縮的檔案,則必須先tar解壓縮 解壓縮後進入該ntfs-3g目錄 執行下列指令 ./configure make make install 安裝好之後 可以下 make clean  清除暫存檔 使用方法: *必須使用root身份執行 # modprobe fuse &#60;&#8211;執行該命令 掛載fuse 掛載ntfs: &#8230; <a href="http://blog.shian.tw/linux-ntfs.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://blog.shian.tw/linux-ntfs.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ssh 登入防護</title>
		<link>http://blog.shian.tw/ssh.html</link>
		<comments>http://blog.shian.tw/ssh.html#comments</comments>
		<pubDate>Sat, 28 Jul 2007 02:55:12 +0000</pubDate>
		<dc:creator>shian</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos]]></category>

		<guid isPermaLink="false">http://blog.shian.tw/?p=32</guid>
		<description><![CDATA[說明: 1.限制 root 不可使用ssh : 因為開放root就等於開放大門給有心人來試 root的密碼,如果猜對的話! 你的主機就變成對方的工具了!! 2.限制使用SU指令: 限制登入的使用者使用SU這指令,可以防止使用者用SU 變成root 3.設定某帳號才能使用ssh: 可以做控管,開放了哪些帳號可以用ssh登入主機 方法: 1. 編輯sshd_config檔 vi/etc/ssh/sshd_config 設定限制root不能使用ssh 將PermitRootLogin "YES" 改成　PermitRootLogin "NO" 存檔離開 2. 編輯su vi /etc/pam.d/su ＃auth required /lib/security/$ISA/pam_whelle.so use_uid 將前面的"#"刪除　存檔離開 設定只有wheel群組的成員才能使用su命令 usermod -G 10 帳號 3. 編輯sshd_config vi/etc/ssh/sshd_config &#8230; <a href="http://blog.shian.tw/ssh.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://blog.shian.tw/ssh.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

