<?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; Linux</title>
	<atom:link href="http://blog.shian.tw/tag/linux/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>Linode Facilities Speedtest</title>
		<link>http://blog.shian.tw/linode-facilities-speedtest.html</link>
		<comments>http://blog.shian.tw/linode-facilities-speedtest.html#comments</comments>
		<pubDate>Thu, 29 Sep 2011 08:19:26 +0000</pubDate>
		<dc:creator>shian</dc:creator>
				<category><![CDATA[隨手記]]></category>
		<category><![CDATA[linode]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.shian.tw/?p=937</guid>
		<description><![CDATA[不久前到linode官網發現他們在Tokyo也有機房了，理論上從台灣連到日本應該會比連到美國來的快吧？所以來測試一下是否真的有比較快一點，就簡單的用ping 以及 download檔案的方式測試看看，以下就是測試記錄的過程。 Ping Tokyo, JP ?View Code BASH1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 Reply from 106.187.33.12: bytes=32 time=55ms TTL=54 Reply from 106.187.33.12: bytes=32 time=55ms TTL=54 Reply from 106.187.33.12: bytes=32 &#8230; <a href="http://blog.shian.tw/linode-facilities-speedtest.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://blog.shian.tw/linode-facilities-speedtest.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache install mod_fastcgi &amp; php-fpm</title>
		<link>http://blog.shian.tw/apache-install-mod_fastcgi-php-fpm.html</link>
		<comments>http://blog.shian.tw/apache-install-mod_fastcgi-php-fpm.html#comments</comments>
		<pubDate>Wed, 29 Jun 2011 04:39:07 +0000</pubDate>
		<dc:creator>shian</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.shian.tw/?p=809</guid>
		<description><![CDATA[本篇將實作安裝 mod_fastcgi 和 php-fpm 於 Apache 。 準備 http://www.fastcgi.com/dist/ 安裝 httpd-devel ?View Code BASH1 yum install httpd.x86_64 httpd-devel.x86_64 安裝 php-fpm ?View Code BASH1 yum install php-fpm.x86_64 安裝 mod_fastcgi ?View Code BASH1 2 3 4 5 tar -zxvf mod_fastcgi-2.4.6.tar.gz cd mod_fastcgi-2.4.6/ &#8230; <a href="http://blog.shian.tw/apache-install-mod_fastcgi-php-fpm.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://blog.shian.tw/apache-install-mod_fastcgi-php-fpm.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>centos install dropbox</title>
		<link>http://blog.shian.tw/centos-install-dropbox.html</link>
		<comments>http://blog.shian.tw/centos-install-dropbox.html#comments</comments>
		<pubDate>Sun, 06 Feb 2011 16:00:38 +0000</pubDate>
		<dc:creator>shian</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[dropbox]]></category>

		<guid isPermaLink="false">http://blog.shian.tw/?p=786</guid>
		<description><![CDATA[Dropbox是一套簡單好用的免費雲端儲存服務，該服務有提供網頁版、windows、linux版的存取功能，現在就來安裝linux版的Dropbox吧，以便之後可以利用Dropbox來做異地備份。 Dropbox ?View Code BASH1 2 wget http://www.getdropbox.com/download?plat=lnx.x86 tar -xvf dropbox-lnx.x86-1.0.20.tar.gz python2.6 ?View Code BASH1 2 3 rpm -ihv http://download.fedora.redhat.com/pub/epel/5/$&#40;uname -m&#41;/epel-release-5-4.noarch.rpm rpm -ihv http://centos.alt.ru/repository/centos/5/$&#40;uname -m&#41;/centalt-release-5-3.noarch.rpm yum -y install python26.i386 python26-devel.i386 dropbox for python2.6 ?View Code BASH1 2 3 4 wget &#8230; <a href="http://blog.shian.tw/centos-install-dropbox.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://blog.shian.tw/centos-install-dropbox.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>ipflow</title>
		<link>http://blog.shian.tw/ipflow.html</link>
		<comments>http://blog.shian.tw/ipflow.html#comments</comments>
		<pubDate>Sun, 26 Dec 2010 16:00:47 +0000</pubDate>
		<dc:creator>shian</dc:creator>
				<category><![CDATA[works]]></category>
		<category><![CDATA[ipflow]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.shian.tw/?p=781</guid>
		<description><![CDATA[由於server最近常常會有爆量的情況，常導致cpu、memory會忽然衝高，使用mrtg看流量只能看整體的，沒辦法看單一ip的進出量，所以寫個script去偵測一下，每5分鐘去記錄當下的ip進出量，然後再來查看分析。 ipflow ?View Code BASH1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 #!/bin/bash _now_date=`date +%Y-%m-%d`; _now_time=`date +%H:%M`; _file=&#34;$_now_date.csv&#34;; _pwd=&#34;/srv/ipflow&#34;; &#160; if &#91; ! -f &#34;$_pwd/$_file&#34; &#93;; then touch &#34;$_pwd/$_file&#34;; fi &#160; &#8230; <a href="http://blog.shian.tw/ipflow.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://blog.shian.tw/ipflow.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Function registration failed &#8211; duplicate name</title>
		<link>http://blog.shian.tw/duplicate-name.html</link>
		<comments>http://blog.shian.tw/duplicate-name.html#comments</comments>
		<pubDate>Sun, 21 Dec 2008 22:00:03 +0000</pubDate>
		<dc:creator>shian</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[suse]]></category>

		<guid isPermaLink="false">http://blog.shian.tw/?p=241</guid>
		<description><![CDATA[最近剛好有遇到 Function registration failed &#8211; duplicate name 這個問題，爬了Google很多文章後得知，造成有這Warning訊息的原因似乎是因為重覆裝載了模組的關係。 警告訊息 # /srv/www/cgi-bin/php -v PHP Warning: Function registration failed - duplicate name - session_name in Unknown on line 0 PHP Warning: Function registration failed - duplicate name - session_module_name in Unknown on &#8230; <a href="http://blog.shian.tw/duplicate-name.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://blog.shian.tw/duplicate-name.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>利用shell抓出mail log 的 said: 550</title>
		<link>http://blog.shian.tw/shell-said-550.html</link>
		<comments>http://blog.shian.tw/shell-said-550.html#comments</comments>
		<pubDate>Mon, 17 Nov 2008 12:59:35 +0000</pubDate>
		<dc:creator>shian</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://blog.shian.tw/%e5%88%a9%e7%94%a8shell%e6%8a%93%e5%87%bamail-log-%e7%9a%84-said-550.html</guid>
		<description><![CDATA[正好需要分析一下mail 的log檔，要抓取出550類的狀態mail出來，所以直接利用shell script來做，可以很快的分析log並抓取mail狀態為550出來。 ?View Code BASH1 2 3 4 #!/bin/bash file=&#34;/var/log/mail&#34; tmp=&#34;./edm_tmp.txt&#34; cat $file &#124; grep 'said: 550' &#124; awk '{print $7}' &#124; sed 's/to=,//gp' &#124; uniq &#62; $tmp 參考資料 Shell 設計入門 相關文章Linode Facilities Speedtest (0)Apache install mod_fastcgi &#038; php-fpm &#8230; <a href="http://blog.shian.tw/shell-said-550.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://blog.shian.tw/shell-said-550.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>eAccelerator</title>
		<link>http://blog.shian.tw/eaccelerator.html</link>
		<comments>http://blog.shian.tw/eaccelerator.html#comments</comments>
		<pubDate>Mon, 27 Oct 2008 08:25:23 +0000</pubDate>
		<dc:creator>shian</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.shian.tw/?p=185</guid>
		<description><![CDATA[eAccelerator 是可以加速php的執行速度，網路上可以找到很多相關文章，本篇只記錄安裝eAccelerator的過程，安裝環境為 centos5 手動編譯的apache2和php5 準備: 至 http://eaccelerator.net/ 下載新版的 eAccelerator 安裝 step1: 編譯 extensions ?View Code BASH1 2 3 ./configure --with-php-config=/usr/local/php/bin/php-config make make install step2: 複製編譯好後的eaccelerator.so到php extensions目錄下 ?View Code BASH1 cp /usr/local/php/lib/php/extensions/debug-non-zts-20060613/eaccelerator.so /usr/local/php/lib/php/extensions/ step3: 修改php.ini ?View Code BASH1 2 3 4 &#8230; <a href="http://blog.shian.tw/eaccelerator.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://blog.shian.tw/eaccelerator.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>APT for SUSE</title>
		<link>http://blog.shian.tw/apt-for-suse.html</link>
		<comments>http://blog.shian.tw/apt-for-suse.html#comments</comments>
		<pubDate>Fri, 17 Oct 2008 11:08:46 +0000</pubDate>
		<dc:creator>shian</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[suse]]></category>

		<guid isPermaLink="false">http://blog.shian.tw/?p=180</guid>
		<description><![CDATA[suse本身就有yast2好用的管理系統可以使用，不過想在suse上使用apt的話也是可以，只需要安裝二個套件可以在suse上使用apt了，相當簡單 取得套件 下載 apt套件 安裝apt套件 # rpm apt-*.rpm apt指令 apt-get update : 更新套件清單，在第一次使用apt時最好先更新一次，確保套件是新的 apt-get dist-update : 升級系統 apt-cache search : 搜尋套件，apt-cache search 套件名稱 apt-cache depends : 列出套件相依性，apt-cache depands 套件名稱 apt-get install : 安裝套件，apt-get install 套件名稱 apt-get clean : 清除暫存套件，當使用apt安裝套件時，apt會先下載套件下來安裝，所以可以使用這指令清空apt下載暫存套件 apt-get &#8230; <a href="http://blog.shian.tw/apt-for-suse.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://blog.shian.tw/apt-for-suse.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>[教學] Postgrey</title>
		<link>http://blog.shian.tw/postgrey.html</link>
		<comments>http://blog.shian.tw/postgrey.html#comments</comments>
		<pubDate>Mon, 05 May 2008 03:36:03 +0000</pubDate>
		<dc:creator>shian</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Postgrey]]></category>

		<guid isPermaLink="false">http://blog.shian.tw/?p=52</guid>
		<description><![CDATA[postgrey是一套擋廣告信的軟體,當有信寄到該主機時,會先騙寄信的主機稍後再寄一次,正常的主機都會等候一段時間重送,若是發廣告信的軟體,為了效率通常不會有重送機制 1.安裝相關套件 Net-Server-0.97 IO-Multiplex-1.09 BerkeleyDB-0.34(perl) # perl Makefile.PL # make # make install 2. 安裝Berkeley DB Berkeley DB(db-4.4.20) # cd build_unix/ # ../dist/configure # make # make install 3.安裝Postgrey # tar -zxvf postgrey-1.27.tar.gz # cd postgrey-1.27 將postgery執行檔放置/usr/local/sbin # cp postgrey &#8230; <a href="http://blog.shian.tw/postgrey.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://blog.shian.tw/postgrey.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>pop-before-smtp</title>
		<link>http://blog.shian.tw/pop-before-smtp.html</link>
		<comments>http://blog.shian.tw/pop-before-smtp.html#comments</comments>
		<pubDate>Mon, 05 May 2008 03:35:35 +0000</pubDate>
		<dc:creator>shian</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[postfix]]></category>

		<guid isPermaLink="false">http://blog.shian.tw/?p=51</guid>
		<description><![CDATA[pop-before-smtp 是用pop認證來代替smtp認證帳號,只要寄信之前先收信後就可以寄信,這時候smtp認證就是使用之前的pop認證 準備: 1. perl modules Time::HiRes File::Tail Net::Netmask Date::Parse DB_File 可至 http://search.cpan.org/ 下載安裝 2.pop-before-smtp-1.42.tar.gz 可至 https://sourceforge.net/project/showfiles.php?group_id=5017 下載安裝 安裝: 1. 安裝所需的 perl modules # perl Makefile.PL # make # make install 註: 這是針對perl modules 安裝的方法 2. 設定 pop-before-smtp 解壓縮： # &#8230; <a href="http://blog.shian.tw/pop-before-smtp.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://blog.shian.tw/pop-before-smtp.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>vm-pop3d</title>
		<link>http://blog.shian.tw/vm-pop3d.html</link>
		<comments>http://blog.shian.tw/vm-pop3d.html#comments</comments>
		<pubDate>Mon, 05 May 2008 03:34:53 +0000</pubDate>
		<dc:creator>shian</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[vm-pop3d]]></category>

		<guid isPermaLink="false">http://blog.shian.tw/?p=50</guid>
		<description><![CDATA[vm-pop3d 可以收取postfix上虛擬帳號的mail至收信軟體裡 1.安裝 vm-pop3d # tar -zxvf vm-pop3d-1.1.7f-T7.tar.gz # cd vm-pop3d-1.1.7f-T7.tar.gz # ./configure # make # male install 2.將vm-pop3d 加入 chkconfig # mv vm-pop3d.init /etc/rc.d/init.d/vm-pop3d # chkconfig &#8211;add vm-pop3d # chkconfig vm-pop3d on # vi /etc/rc.d/init.d/vm-pop3d 將 start) echo -n &#8230; <a href="http://blog.shian.tw/vm-pop3d.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://blog.shian.tw/vm-pop3d.html/feed</wfw:commentRss>
		<slash:comments>0</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>Tarball MySQL</title>
		<link>http://blog.shian.tw/tarball-mysql.html</link>
		<comments>http://blog.shian.tw/tarball-mysql.html#comments</comments>
		<pubDate>Fri, 23 Nov 2007 10:06:11 +0000</pubDate>
		<dc:creator>shian</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.shian.tw/?p=29</guid>
		<description><![CDATA[安裝MySQL有很多方式,像是 CENTOS的YUM或是SUSE的YAST2,或是下載RPM來安奘, 但是為了想要讓MySQL預設的編碼為UTF-8,所以就自己用Tarball的方式來安裝 準備: 到Mysql 官網下載 Source 安裝: 1. 增加一位叫 mysql 的使用者帳號 # adduser mysql 2.進入解壓縮後的Mysql目錄下,並開始編譯 # ./configure &#8211;prefix=/usr/local/mysql &#8211;localstatedir=/usr/local/mysql/var &#8211;with-charset=utf8 # make # make install 參數說明: &#8211;prefix 設定安裝Mysql的位置 &#8211;localstatedir 設定資料庫檔的存放位置 &#8211;with-charset 設定預設語系 3. 開啟預設資料庫/表格: # scripts/mysql_install_db 4. 改變 /usr/local/mysql &#8230; <a href="http://blog.shian.tw/tarball-mysql.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://blog.shian.tw/tarball-mysql.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux 安裝 rtorrent</title>
		<link>http://blog.shian.tw/linux_rtorrent.html</link>
		<comments>http://blog.shian.tw/linux_rtorrent.html#comments</comments>
		<pubDate>Sat, 22 Sep 2007 22:11:10 +0000</pubDate>
		<dc:creator>shian</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[rtorrent]]></category>

		<guid isPermaLink="false">http://blog.shian.tw/?p=42</guid>
		<description><![CDATA[在Linux 上跑bt 有很多軟體可以跑, 像是azureus 或是用 wine + bt 軟體都是可以運作,用過許多在Linux上bt軟體,還是推薦 rtorrent , 可以用ssh 文字介面就可以操作了也相當省資源 , 只是安裝比較麻煩一點,本篇介紹如何安裝rotrrent 並運作。 準備:需要準備下列的檔案自己編譯它 1.curl 2.sigc++-2.0 3.libtorrent 4.rtorrent * 或是下載筆者所打包的檔案 點我下載 安裝: a.安裝 curl # tar -zxvf curlxxxxxxx # cd /curlxxx # ./configure &#8211;prefix=/usr # make # &#8230; <a href="http://blog.shian.tw/linux_rtorrent.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://blog.shian.tw/linux_rtorrent.html/feed</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>suse 架設 zeus + php + mysql</title>
		<link>http://blog.shian.tw/suse-install-zeus-php-mysql.html</link>
		<comments>http://blog.shian.tw/suse-install-zeus-php-mysql.html#comments</comments>
		<pubDate>Fri, 14 Sep 2007 08:00:00 +0000</pubDate>
		<dc:creator>shian</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[suse]]></category>

		<guid isPermaLink="false">http://blog.shian.tw/?p=41</guid>
		<description><![CDATA[本篇介紹在SUSE裡架設 zeus + php4.4.4 + mysql 1.安裝 mysql 到官網抓取 下面六個檔 MySQL-client-standard-4.1.22-0.sles9.i586.rpm MySQL-devel-standard-4.1.22-0.sles9.i586.rpm MySQL-server-standard-4.1.22-0.sles9.i586.rpm MySQL-shared-compat-4.1.22-0.sles9.i586.rpm MySQL-shared-standard-4.1.22-0.sles9.i586.rpm MySQL-test-standard-4.1.22-0.sles9.i586.rpm 用rpm -ivh 安裝這6個rpm檔 , 注意:第一個安裝最好為 MySQL-server-standard-4.1.22-0.sles9.i586.rpm,不然會出現相依性問題! 2.安裝 zeus (注意 如果有裝apache 必須停掉) a. ./zinstall b. 詢問是否接受該說明文件的內容 輸入accept c. Where should the product be installed? [/usr/local/zeus]: &#8230; <a href="http://blog.shian.tw/suse-install-zeus-php-mysql.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://blog.shian.tw/suse-install-zeus-php-mysql.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>PHP如何手動編譯自己所需的extensions檔案</title>
		<link>http://blog.shian.tw/php_extensions.html</link>
		<comments>http://blog.shian.tw/php_extensions.html#comments</comments>
		<pubDate>Wed, 12 Sep 2007 18:53:14 +0000</pubDate>
		<dc:creator>shian</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.shian.tw/?p=39</guid>
		<description><![CDATA[當PHP是自己編譯php於Linux上後,之後如果我們必須用到某個extensions時,則必須自己手動去編譯它,例如像是 mbstring.so , gd.so 之類的 extensions, 本篇在介紹如何手動編譯自己所需的extensions檔案 準備: 1. 當從官網抓下所需的php壓縮檔後並解開,裡面會有個ext的資料夾,裡面有很多目錄代表不同的extensions 2. 修改 /etc/php.ini , 讓php去載入我需要的extensions # vi /etc/php.ini extension_dir = "/usr/lib/php/extensions" &#60;&#8211;說明我存放的extensions位置 [extension section] extension=mbstring.so &#60;&#8211;我要載入的 extensions 檢查: 可以執行 /srv/www/cgi-bin/php -v 來看看 extensions 載入是否有錯 , 如果有下面這錯誤訊息, 表示/usr/lib/php/extension/ 裡沒有該 mbstring.so 的 &#8230; <a href="http://blog.shian.tw/php_extensions.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://blog.shian.tw/php_extensions.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>使用vmware 架設 ipcop</title>
		<link>http://blog.shian.tw/vmware-ipcop.html</link>
		<comments>http://blog.shian.tw/vmware-ipcop.html#comments</comments>
		<pubDate>Sat, 25 Aug 2007 23:47:37 +0000</pubDate>
		<dc:creator>shian</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[ipcop]]></category>

		<guid isPermaLink="false">http://blog.shian.tw/?p=26</guid>
		<description><![CDATA[家裡原本是用一台P2 450 的古董電腦架IPCOP當防火牆,最近發現那台古董電腦開始有問題的樣子,忽然想到&#8230;或許可以用 vmware 這套軟體來模擬新的環境,所以就動手試看看了 準備: 1. 實體電腦1台 + 2片網路卡 2. vmware + ipcop 軟體 步驟: 1. 先在實體電腦灌好作業系統, 我是灌winxp 當作業系統 2. 安裝好 vmware 軟體 說明: 在此不講解如何安裝vmware, 因為在網路上已經有相當多的資料了 3. 對 vmware  做設定 a.增加在實體電腦上的2片網路卡在 vmware裡, 如圖所示,我增加了2片網路卡在 VMnet2 和 VMnet3 上 b.在vmware 裡 &#8230; <a href="http://blog.shian.tw/vmware-ipcop.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://blog.shian.tw/vmware-ipcop.html/feed</wfw:commentRss>
		<slash:comments>2</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>

