<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet href="http://tech.ccjhs.tp.edu.tw/blog2/styles/rss.css" type="text/css"?>
<rdf:RDF
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
  xmlns:admin="http://webns.net/mvcb/"
  xmlns="http://purl.org/rss/1.0/"
>
 <channel rdf:about="http://tech.ccjhs.tp.edu.tw/blog2/rss/rss10/1">
  <title>梁小芳的記事本</title>
  <link>http://tech.ccjhs.tp.edu.tw/blog2/1</link>
  <description>&lt;p&gt;「上大聯盟不是夢想，是我的目標。」-松坂大輔&lt;/p&gt;
</description>
    <dc:creator>plrts</dc:creator>
  <dc:date>2025-12-24T20:50:33Z</dc:date>
  <admin:generatorAgent rdf:resource="http://www.lifetype.net" />
  <items>
   <rdf:Seq>
       <rdf:li rdf:resource="http://tech.ccjhs.tp.edu.tw/blog2/post/1/283" />
       <rdf:li rdf:resource="http://tech.ccjhs.tp.edu.tw/blog2/post/1/280" />
       <rdf:li rdf:resource="http://tech.ccjhs.tp.edu.tw/blog2/post/1/123" />
       <rdf:li rdf:resource="http://tech.ccjhs.tp.edu.tw/blog2/post/1/122" />
       <rdf:li rdf:resource="http://tech.ccjhs.tp.edu.tw/blog2/post/1/121" />
       <rdf:li rdf:resource="http://tech.ccjhs.tp.edu.tw/blog2/post/1/48" />
       <rdf:li rdf:resource="http://tech.ccjhs.tp.edu.tw/blog2/post/1/47" />
       <rdf:li rdf:resource="http://tech.ccjhs.tp.edu.tw/blog2/post/1/37" />
       <rdf:li rdf:resource="http://tech.ccjhs.tp.edu.tw/blog2/post/1/36" />
       <rdf:li rdf:resource="http://tech.ccjhs.tp.edu.tw/blog2/post/1/35" />
      </rdf:Seq>
  </items> 
 </channel>
  <item rdf:about="http://tech.ccjhs.tp.edu.tw/blog2/post/1/283">
  <title>無障礙xoops 語系初測</title>
  <link>http://tech.ccjhs.tp.edu.tw/blog2/post/1/283</link>
  <dc:description>&lt;p&gt;為了更新單位的網站(big5)&lt;/p&gt;
&lt;p&gt;做了一些安裝上的測試&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;原有版本資料改為 utf8 ,可是 xoops 卻是 big5 -&amp;gt; 亂碼&lt;/li&gt;
&lt;li&gt;原有版本 xoops big5 升上 新版 -&amp;gt; 亂碼&lt;/li&gt;
&lt;li&gt;安裝xoops 2.3.3 utf8 無障礙版-&amp;gt; 在ie 6 上會有時出現不正常的空白頁&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;看來要再花時間&lt;/p&gt;
&lt;p&gt;我要的是純 utf8 的無障礙&lt;/p&gt;</dc:description>
      
    <dc:subject>Blog設定</dc:subject>
     
    
  <dc:date>2010-01-30T19:47:23Z</dc:date>
    <dc:creator>plrts</dc:creator>
 </item>
  <item rdf:about="http://tech.ccjhs.tp.edu.tw/blog2/post/1/280">
  <title>如何將「 寬度 800 像素」 的模版改為 100%</title>
  <link>http://tech.ccjhs.tp.edu.tw/blog2/post/1/280</link>
  <dc:description>&lt;p&gt;如果寬度是預設給 800 x 600 螢幕的模版。要放大一點的圖就不方便。有時會超出文章的範圍或破壞版面！&lt;/p&gt;
&lt;p&gt;其實只要修改幾個小地方就可以啦！ 你可以參考使用的模版修改類似這些 CSS ！&lt;/p&gt;
&lt;p&gt;&lt;br/&gt;&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;首頁主圖齊右&lt;/p&gt;
&lt;p&gt;BODY {
&lt;br/&gt;
Font-Family: Arial, Helvetica, sans-serif;
&lt;br/&gt;
WIDTH: 100%;
&lt;br/&gt;
COLOR: #FFFFFF;
&lt;br/&gt;
HEIGHT: 100%;
&lt;br/&gt;
TEXT-ALIGN: center;
&lt;br/&gt;
background-color: #8DC63F;
&lt;br/&gt;
background-image: url(47main_image.gif);
&lt;br/&gt;
background-repeat: no-repeat;
&lt;br/&gt;
background-position: &lt;span style=&quot;COLOR: #ff0000&quot;&gt;top right&lt;/span&gt;; /* 改成靠右 */
&lt;br/&gt;
}&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;改變整體寬度&lt;/p&gt;
&lt;p&gt;#container {
&lt;br/&gt;
MARGIN: 0px auto;
&lt;br/&gt;
WIDTH: &lt;span style=&quot;COLOR: #ff0000&quot;&gt;100%&lt;/span&gt;; /* 改變整體寬度 */
&lt;br/&gt;
TEXT-ALIGN: left;
&lt;br/&gt;
}&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;改變內文寬度&lt;/p&gt;
&lt;p&gt;&lt;br/&gt;
#content {
&lt;br/&gt;
FLOAT: left;
&lt;br/&gt;
WIDTH: &lt;span style=&quot;COLOR: #ff0000&quot;&gt;75%&lt;/span&gt;;/* 改變內文寬度 */
&lt;br/&gt;
padding-top: 10px;
&lt;br/&gt;
}&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;改變文章寬度&lt;/p&gt;
&lt;p&gt;.blogbody {
&lt;br/&gt;
MARGIN-BOTTOM: 10px;
&lt;br/&gt;
PADDING-BOTTOM: 10px;
&lt;br/&gt;
PADDING-TOP: 10px;
&lt;br/&gt;
border-top: #FFF 1px solid;
&lt;br/&gt;
width: &lt;span style=&quot;COLOR: #ff0000&quot;&gt;100%&lt;/span&gt;;/* 改變文章寬度 */
&lt;br/&gt;
padding-left: 10px;
&lt;br/&gt;
}&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;改變選單寬度&lt;/p&gt;
&lt;p&gt;&lt;br/&gt;
#links {
&lt;br/&gt;
MARGIN-TOP: 440px;
&lt;br/&gt;
FLOAT: right;
&lt;br/&gt;
TEXT-ALIGN: center;
&lt;br/&gt;
width: &lt;span style=&quot;COLOR: #ff0000&quot;&gt;20%&lt;/span&gt;;/* 改變選單寬度 */
&lt;br/&gt;
margin-left: 0px;
&lt;br/&gt;
}&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;主圖框寬度改成 100 %&lt;/p&gt;
&lt;p&gt;#banner {
&lt;br/&gt;
&lt;span style=&quot;COLOR: #ff0000&quot;&gt;WIDTH: 100%;&lt;/span&gt;HEIGHT: 252px;
&lt;br/&gt;
background-image: url(top.gif);
&lt;br/&gt;
background-repeat: no-repeat;
&lt;br/&gt;
background-position: top left; /* 改成靠左上 */
&lt;br/&gt;
background-color: #F5FAC7;
&lt;br/&gt;
}&lt;/p&gt;
&lt;p&gt;請自行修改您的主圖配新寬版面。&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;部落格名稱改齊右&lt;/p&gt;
&lt;p&gt;.blogtitle {
&lt;br/&gt;
FONT-SIZE: 20px;
&lt;br/&gt;
PADDING-TOP: 30px;
&lt;br/&gt;
TEXT-ALIGN: &lt;span style=&quot;COLOR: #ff0000&quot;&gt;right&lt;/span&gt;;
&lt;br/&gt;
&lt;span style=&quot;COLOR: #ff0000&quot;&gt;padding-right&lt;/span&gt;: 20px;
&lt;br/&gt;
color: #FFFFFF;
&lt;br/&gt;
}&lt;/p&gt;</dc:description>
      
    <dc:subject>Blog設定</dc:subject>
     
    
  <dc:date>2010-01-28T20:24:34Z</dc:date>
    <dc:creator>plrts</dc:creator>
 </item>
  <item rdf:about="http://tech.ccjhs.tp.edu.tw/blog2/post/1/123">
  <title>FreeBSD 下的 MySQL備份方案</title>
  <link>http://tech.ccjhs.tp.edu.tw/blog2/post/1/123</link>
  <dc:description>&lt;a href=&quot;http://www.pc51.net/data/MySQL/2008-05-04/10575.html&quot;&gt;http://www.pc51.net/data/MySQL/2008-05-04/10575.html&lt;/a&gt;</dc:description>
      
    <dc:subject>架站雜記</dc:subject>
     
    
  <dc:date>2008-10-14T14:27:15Z</dc:date>
    <dc:creator>plrts</dc:creator>
 </item>
  <item rdf:about="http://tech.ccjhs.tp.edu.tw/blog2/post/1/122">
  <title>MySql backup script</title>
  <link>http://tech.ccjhs.tp.edu.tw/blog2/post/1/122</link>
  <dc:description>&lt;p&gt;
&lt;a href=&quot;http://bash.cyberciti.biz/backup/mysql-backup.bash.php&quot;&gt;http://bash.cyberciti.biz/backup/mysql-backup.bash.php&lt;/a&gt;&amp;nbsp;
&lt;/p&gt;
&lt;blockquote&gt;
	&lt;p&gt;
	#!/bin/bash&lt;br /&gt;
	# Shell script to backup MySql database&lt;br /&gt;
	# To backup Nysql databases file to /backup dir and later pick up by your&lt;br /&gt;
	# script. You can skip few databases from backup too.&lt;br /&gt;
	# For more info please see (Installation info):&lt;br /&gt;
	# &lt;a href=&quot;http://www.cyberciti.biz/nixcraft/vivek/blogger/2005/01/mysql-backup-script.html&quot;&gt;http://www.cyberciti.biz/nixcraft/vivek/blogger/2005/01/mysql-backup-script.html&lt;/a&gt;&lt;br /&gt;
	# Last updated: Aug - 2005&lt;br /&gt;
	# --------------------------------------------------------------------&lt;br /&gt;
	# This is a free shell script under GNU GPL version 2.0 or above&lt;br /&gt;
	# Copyright (C) 2004, 2005 nixCraft project&lt;br /&gt;
	# Feedback/comment/suggestions : &lt;a href=&quot;http://cyberciti.biz/fb/&quot;&gt;http://cyberciti.biz/fb/&lt;/a&gt;&lt;br /&gt;
	# -------------------------------------------------------------------------&lt;br /&gt;
	# This script is part of nixCraft shell script collection (NSSC)&lt;br /&gt;
	# Visit &lt;a href=&quot;http://bash.cyberciti.biz/&quot;&gt;http://bash.cyberciti.biz/&lt;/a&gt; for more information.&lt;br /&gt;
	# -------------------------------------------------------------------------
	&lt;/p&gt;
	&lt;p&gt;
	MyUSER=&amp;quot;SET-MYSQL-USER-NAME&amp;quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # USERNAME&lt;br /&gt;
	MyPASS=&amp;quot;SET-PASSWORD&amp;quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # PASSWORD&lt;br /&gt;
	MyHOST=&amp;quot;localhost&amp;quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # Hostname
	&lt;/p&gt;
	&lt;p&gt;
	# Linux bin paths, change this if it can&#039;t be autodetected via which command&lt;br /&gt;
	MYSQL=&amp;quot;$(which mysql)&amp;quot;&lt;br /&gt;
	MYSQLDUMP=&amp;quot;$(which mysqldump)&amp;quot;&lt;br /&gt;
	CHOWN=&amp;quot;$(which chown)&amp;quot;&lt;br /&gt;
	CHMOD=&amp;quot;$(which chmod)&amp;quot;&lt;br /&gt;
	GZIP=&amp;quot;$(which gzip)&amp;quot;
	&lt;/p&gt;
	&lt;p&gt;
	# Backup Dest directory, change this if you have someother location&lt;br /&gt;
	DEST=&amp;quot;/backup&amp;quot;
	&lt;/p&gt;
	&lt;p&gt;
	# Main directory where backup will be stored&lt;br /&gt;
	MBD=&amp;quot;$DEST/mysql&amp;quot;
	&lt;/p&gt;
	&lt;p&gt;
	# Get hostname&lt;br /&gt;
	HOST=&amp;quot;$(hostname)&amp;quot;
	&lt;/p&gt;
	&lt;p&gt;
	# Get data in dd-mm-yyyy format&lt;br /&gt;
	NOW=&amp;quot;$(date +&amp;quot;%d-%m-%Y&amp;quot;)&amp;quot;
	&lt;/p&gt;
	&lt;p&gt;
	# File to store current backup file&lt;br /&gt;
	FILE=&amp;quot;&amp;quot;&lt;br /&gt;
	# Store list of databases&lt;br /&gt;
	DBS=&amp;quot;&amp;quot;
	&lt;/p&gt;
	&lt;p&gt;
	# DO NOT BACKUP these databases&lt;br /&gt;
	IGGY=&amp;quot;test&amp;quot;
	&lt;/p&gt;
	&lt;p&gt;
	[ ! -d $MBD ] &amp;amp;&amp;amp; mkdir -p $MBD || :
	&lt;/p&gt;
	&lt;p&gt;
	# Only root can access it!&lt;br /&gt;
	$CHOWN 0.0 -R $DEST&lt;br /&gt;
	$CHMOD 0600 $DEST
	&lt;/p&gt;
	&lt;p&gt;
	# Get all database list first&lt;br /&gt;
	DBS=&amp;quot;$($MYSQL -u $MyUSER -h $MyHOST -p$MyPASS -Bse &#039;show databases&#039;)&amp;quot;
	&lt;/p&gt;
	&lt;p&gt;
	for db in $DBS&lt;br /&gt;
	do&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; skipdb=-1&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; if [ &amp;quot;$IGGY&amp;quot; != &amp;quot;&amp;quot; ];&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; then&lt;br /&gt;
	&amp;nbsp;for i in $IGGY&lt;br /&gt;
	&amp;nbsp;do&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [ &amp;quot;$db&amp;quot; == &amp;quot;$i&amp;quot; ] &amp;amp;&amp;amp; skipdb=1 || :&lt;br /&gt;
	&amp;nbsp;done&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; fi
	&lt;/p&gt;
	&lt;p&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; if [ &amp;quot;$skipdb&amp;quot; == &amp;quot;-1&amp;quot; ] ; then&lt;br /&gt;
	&amp;nbsp;FILE=&amp;quot;$MBD/$db.$HOST.$NOW.gz&amp;quot;&lt;br /&gt;
	&amp;nbsp;# do all inone job in pipe,&lt;br /&gt;
	&amp;nbsp;# connect to mysql using mysqldump for select mysql database&lt;br /&gt;
	&amp;nbsp;# and pipe it out to gz file in backup dir :)&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $MYSQLDUMP -u $MyUSER -h $MyHOST -p$MyPASS $db | $GZIP -9 &amp;gt; $FILE&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; fi&lt;br /&gt;
	done
	&lt;/p&gt;
&lt;/blockquote&gt;</dc:description>
      
    <dc:subject>架站雜記</dc:subject>
     
    
  <dc:date>2008-10-14T14:18:20Z</dc:date>
    <dc:creator>plrts</dc:creator>
 </item>
  <item rdf:about="http://tech.ccjhs.tp.edu.tw/blog2/post/1/121">
  <title>backup.sh</title>
  <link>http://tech.ccjhs.tp.edu.tw/blog2/post/1/121</link>
  <dc:description>&lt;p&gt;
#!/bin/sh&lt;br /&gt;
today=`date &amp;quot;+%Y-%m-%d&amp;quot;`&lt;br /&gt;
olddate=`date -d &amp;quot;-10 day&amp;quot; &amp;quot;+%Y-%m-%d&amp;quot;`
&lt;/p&gt;
&lt;p&gt;
cd /backup/&lt;br /&gt;
tar -zcvf &lt;a href=&quot;http://www.$today.tar.gz/&quot;&gt;www.$today.tar.gz&lt;/a&gt; /var/www&lt;br /&gt;
service mysql stop&lt;br /&gt;
tar -zcvf mysql.$today.tar.gz /var/lib/mysql&lt;br /&gt;
service mysql start&lt;br /&gt;
rm -rf &lt;a href=&quot;http://www.$olddate.tar.gz/&quot;&gt;www.$olddate.tar.gz&lt;/a&gt;&lt;br /&gt;
rm -rf mysql.$olddate.tar.gz
&lt;/p&gt;</dc:description>
      
    <dc:subject>架站雜記</dc:subject>
     
    
  <dc:date>2008-10-14T13:55:38Z</dc:date>
    <dc:creator>plrts</dc:creator>
 </item>
  <item rdf:about="http://tech.ccjhs.tp.edu.tw/blog2/post/1/48">
  <title>服務器更安全</title>
  <link>http://tech.ccjhs.tp.edu.tw/blog2/post/1/48</link>
  <dc:description>&lt;span style=&quot;color: #000000&quot;&gt;&lt;span class=&quot;message&quot;&gt;&lt;/span&gt;&lt;span class=&quot;intro&quot;&gt;編輯Apache的設定檔&lt;/span&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span class=&quot;message&quot;&gt;#&lt;br /&gt;
# Don&#039;t give away too much information about all the subcomponents&lt;br /&gt;
# we are running. Comment out this line if you don&#039;t mind remote sites&lt;br /&gt;
# finding out what major optional modules you are running&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;before&quot;&gt;ServerTokens OS&lt;/span&gt; &lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span class=&quot;intro&quot;&gt;&amp;larr; 找到這一行，將&amp;ldquo;OS&amp;rdquo;改為&amp;ldquo;Prod&amp;rdquo;（在出現錯誤頁的時候不顯示服務器操作繫統的名稱）&lt;br /&gt;
&amp;darr;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;after&quot;&gt;ServerTokens Prod&lt;/span&gt; &lt;span class=&quot;intro&quot;&gt;&amp;larr; 變為此狀態&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span class=&quot;message&quot;&gt;# &lt;br /&gt;
# Optionally add a line containing the server version and virtual host&lt;br /&gt;
# name to server-generated pages (internal error documents, FTP directory&lt;br /&gt;
# listings, mod_status and mod_info output etc., but not CGI generated&lt;br /&gt;
# documents or custom error documents).&lt;br /&gt;
# Set to &amp;quot;EMail&amp;quot; to also include a mailto: link to the ServerAdmin.&lt;br /&gt;
# Set to one of: On | Off | EMail&lt;br /&gt;
#&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;before&quot;&gt;ServerSignature On&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt; &lt;span class=&quot;intro&quot;&gt;&amp;larr; 找到這一行，將&amp;ldquo;On&amp;rdquo;改為&amp;ldquo;Off&amp;rdquo;&lt;br /&gt;
&amp;darr;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;br /&gt;
&lt;span class=&quot;after&quot;&gt;ServerSignature Off&lt;/span&gt; &lt;span class=&quot;intro&quot;&gt;&amp;larr; 在錯誤頁中不顯示Apache的版本&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span class=&quot;message&quot;&gt;#&lt;br /&gt;
# ServerAdmin: Your address, where problems with the server should be&lt;br /&gt;
# e-mailed. This address appears on some server-generated pages, such&lt;br /&gt;
# as error documents. e.g. &lt;a href=&quot;mailto:admin@your-domain.com&quot;&gt;admin@your-domain.com&lt;/a&gt;&lt;br /&gt;
#&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;before&quot;&gt;ServerAdmin root@localhost&lt;/span&gt; &lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span class=&quot;intro&quot;&gt;&amp;larr; 將管理員郵箱設置為自己常用的電子郵件 &lt;br /&gt;
&amp;darr;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;after&quot;&gt;ServerAdmin &lt;a href=&quot;mailto:yourname@yourserver.com&quot;&gt;yourname@yourserver.com&lt;/a&gt;&lt;/span&gt; &lt;span class=&quot;intro&quot;&gt;&amp;larr; 根據實際情況修改預設值&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span class=&quot;message&quot;&gt;#&lt;br /&gt;
# ServerName gives the name and port that the server uses to identify itself.&lt;br /&gt;
# This can often be determined automatically, but we recommend you specify&lt;br /&gt;
# it explicitly to prevent problems during startup.&lt;br /&gt;
#&lt;br /&gt;
# If this is not set to valid DNS name for your host, server-generated&lt;br /&gt;
# redirections will not work. See also the UseCanonicalName directive.&lt;br /&gt;
#&lt;br /&gt;
# If your host doesn&#039;t have a registered DNS name, enter its IP address here.&lt;br /&gt;
# You will have to access it by its address anyway, and this will make&lt;br /&gt;
# redirections work in a sensible way.&lt;br /&gt;
#&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;before&quot;&gt;#ServerName new.host.name:80&lt;/span&gt; &lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span class=&quot;intro&quot;&gt;&amp;larr; 修改主機名&lt;br /&gt;
&amp;darr;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;after&quot;&gt;ServerName &lt;a href=&quot;http://www.centospub.com/&quot; target=&quot;_blank&quot;&gt;www.centospub.com:80&lt;/a&gt;&lt;/span&gt; &lt;span class=&quot;intro&quot;&gt;&amp;larr; 根據實際情況修改，端口號保持默認的80&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span class=&quot;message&quot;&gt;#&lt;br /&gt;
# Possible values for the Options directive are &amp;quot;None&amp;quot;, &amp;quot;All&amp;quot;,&lt;br /&gt;
# or any combination of:&lt;br /&gt;
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews&lt;br /&gt;
#&lt;br /&gt;
# Note that &amp;quot;MultiViews&amp;quot; must be named *explicitly* --- &amp;quot;Options All&amp;quot;&lt;br /&gt;
# doesn&#039;t give it to you.&lt;br /&gt;
#&lt;br /&gt;
# The Options directive is both complicated and important. Please see&lt;br /&gt;
# &lt;a href=&quot;http://httpd.apache.org/docs-2.0/mod/core.html#options&quot; target=&quot;_blank&quot;&gt;http://httpd.apache.org/docs-2.0/mod/core.html#options&lt;/a&gt;&lt;br /&gt;
# for more information.&lt;br /&gt;
#&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;before&quot;&gt;Options Indexes FollowSymLinks&lt;/span&gt; &lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span class=&quot;intro&quot;&gt;&amp;larr; 找到這一行，刪除&amp;ldquo;Indexes&amp;rdquo;，並添加&amp;ldquo;Includes&amp;rdquo;、&amp;ldquo;ExecCGI&amp;rdquo;&lt;br /&gt;
&amp;darr;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;after&quot;&gt;Options Includes ExecCGI FollowSymLinks&lt;/span&gt; &lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span class=&quot;intro&quot;&gt;&amp;larr; 允許執行CGI及SSI&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;message&quot;&gt;#&lt;br /&gt;
# AddHandler allows you to map certain file extensions to &amp;quot;handlers&amp;quot;:&lt;br /&gt;
# actions unrelated to filetype. These can be either built into the server&lt;br /&gt;
# or added with the Action directive (see below)&lt;br /&gt;
#&lt;br /&gt;
# To use CGI scripts outside of ScriptAliased directories:&lt;br /&gt;
# (You will also need to add &amp;quot;ExecCGI&amp;quot; to the &amp;quot;Options&amp;quot; directive.)&lt;br /&gt;
#&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;br /&gt;
&lt;span class=&quot;before&quot;&gt;#AddHandler cgi-script .cgi&lt;/span&gt; &lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span class=&quot;intro&quot;&gt;&amp;larr; 找到這一行，去掉行首的&amp;ldquo;#&amp;rdquo;，並在行尾添加&amp;ldquo;.pl&amp;rdquo;&lt;br /&gt;
&amp;darr;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;after&quot;&gt;AddHandler cgi-script .cgi &lt;/span&gt;&lt;span class=&quot;att1&quot;&gt;.pl&lt;/span&gt; &lt;span class=&quot;intro&quot;&gt;&amp;larr; 允許擴展名為.pl的CGI腳本運行&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span class=&quot;message&quot;&gt;#&lt;br /&gt;
# AllowOverride controls what directives may be placed in .htaccess files.&lt;br /&gt;
# It can be &amp;quot;All&amp;quot;, &amp;quot;None&amp;quot;, or any combination of the keywords:&lt;br /&gt;
# Options FileInfo AuthConfig Limit&lt;br /&gt;
#&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;before&quot;&gt;AllowOverride None&lt;/span&gt; &lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span class=&quot;intro&quot;&gt;&amp;larr; 找到這一行，將&amp;ldquo;None&amp;rdquo;改為&amp;ldquo;All&amp;rdquo;&lt;br /&gt;
&amp;darr;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;after&quot;&gt;AllowOverride All&lt;/span&gt; &lt;span class=&quot;intro&quot;&gt;&amp;larr; 變為此狀態，允許.htaccess&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span class=&quot;message&quot;&gt;# &lt;br /&gt;
# The following directives define some format nicknames for use with&lt;br /&gt;
# a CustomLog directive (see below).&lt;br /&gt;
#&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;before&quot;&gt;LogFormat &amp;quot;%h %l %u %t \&amp;quot;%r\&amp;quot; %&amp;gt;s %b \&amp;quot;%{Referer}i\&amp;quot; \&amp;quot;%{User-Agent}i\&amp;quot;&amp;quot; combined&lt;/span&gt; &lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span class=&quot;intro&quot;&gt;&amp;larr; 找到這一行&lt;br /&gt;
&amp;darr;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;after&quot;&gt;LogFormat &amp;quot;%h %l %u %t \&amp;quot;%&lt;/span&gt;&lt;span class=&quot;att1&quot;&gt;!414&lt;/span&gt;&lt;span class=&quot;after&quot;&gt;r\&amp;quot; %&amp;gt;s %b \&amp;quot;%{Referer}i\&amp;quot; \&amp;quot;%{User-Agent}i\&amp;quot;&amp;quot; combined&lt;/span&gt; &lt;span class=&quot;intro&quot;&gt;&amp;larr; 改為此狀態（添加&amp;ldquo;!414&amp;rdquo;到規則中，對於過長的日志不記錄）&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span class=&quot;message&quot;&gt;#&lt;br /&gt;
# Specify a default charset for all pages sent out. This is&lt;br /&gt;
# always a good idea and opens the door for future internationalisation&lt;br /&gt;
# of your web site, should you ever want it. Specifying it as&lt;br /&gt;
# a default does little harm; as the standard dictates that a page&lt;br /&gt;
# is in iso-8859-1 (latin1) unless specified otherwise i.e. you&lt;br /&gt;
# are merely stating the obvious. There are also some security&lt;br /&gt;
# reasons in browsers, related to javascript and URL parsing&lt;br /&gt;
# which encourage you to always set a default char set.&lt;br /&gt;
#&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;before&quot;&gt;AddDefaultCharset UTF-8&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt; &lt;span class=&quot;intro&quot;&gt;&amp;larr; 找到這一行，在行首添加&amp;ldquo;#&amp;rdquo;&lt;br /&gt;
&amp;darr;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: white&quot;&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;br /&gt;
&lt;span class=&quot;after&quot;&gt;#AddDefaultCharset UTF-8&lt;/span&gt; &lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span class=&quot;intro&quot;&gt;&amp;larr; 不使用UTF-8作為網頁的默認編碼，由網頁上的指定語系決定&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;message&quot;&gt;&amp;lt;Directory &amp;quot;/var/www/icons&amp;quot;&amp;gt;&lt;/span&gt; &lt;span class=&quot;intro&quot;&gt;&amp;larr; 找到這一個標簽，並在標簽中更改相應選項&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;before&quot;&gt;&lt;s&gt;Options Indexes MultiViews&lt;/s&gt;&lt;/span&gt; &lt;span class=&quot;intro&quot;&gt;&amp;larr; 找到這一行，將&amp;ldquo;Indexes&amp;rdquo;刪除&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;intro&quot;&gt;&amp;darr;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;after&quot;&gt;Options MultiViews&lt;/span&gt; &lt;span class=&quot;intro&quot;&gt;&amp;larr; 變為此狀態（不在瀏覽器上顯示樹狀目錄結構）&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: white&quot;&gt;&lt;span class=&quot;message&quot;&gt;AllowOverride None&lt;br /&gt;
Order allow,deny&lt;br /&gt;
Allow from all&lt;br /&gt;
&amp;lt;/Directory&amp;gt;&lt;/span&gt;&lt;/span&gt;</dc:description>
      
    <dc:subject>架站雜記</dc:subject>
     
    
  <dc:date>2008-08-19T20:03:07Z</dc:date>
    <dc:creator>plrts</dc:creator>
 </item>
  <item rdf:about="http://tech.ccjhs.tp.edu.tw/blog2/post/1/47">
  <title>ServerTokens Directive</title>
  <link>http://tech.ccjhs.tp.edu.tw/blog2/post/1/47</link>
  <dc:description>&lt;p&gt;
http://httpd.apache.org/docs/2.2/mod/core.html#servertokens
&lt;/p&gt;
&lt;p&gt;
This directive controls whether &lt;code&gt;Server&lt;/code&gt; response
header field which is sent back to clients includes a
description of the generic OS-type of the server as well as
information about compiled-in modules.
&lt;/p&gt;
&lt;dl&gt;&lt;dt&gt;&lt;code&gt;ServerTokens Prod[uctOnly]&lt;/code&gt;&lt;/dt&gt;&lt;dd&gt;Server sends (&lt;em&gt;e.g.&lt;/em&gt;): &lt;code&gt;Server:
Apache&lt;/code&gt;&lt;/dd&gt;&lt;dt&gt;&lt;code&gt;ServerTokens Major&lt;/code&gt;&lt;/dt&gt;&lt;dd&gt;Server sends (&lt;em&gt;e.g.&lt;/em&gt;): &lt;code&gt;Server:
Apache/2&lt;/code&gt;&lt;/dd&gt;&lt;dt&gt;&lt;code&gt;ServerTokens Minor&lt;/code&gt;&lt;/dt&gt;&lt;dd&gt;Server sends (&lt;em&gt;e.g.&lt;/em&gt;): &lt;code&gt;Server:
Apache/2.0&lt;/code&gt;&lt;/dd&gt;&lt;dt&gt;&lt;code&gt;ServerTokens Min[imal]&lt;/code&gt;&lt;/dt&gt;&lt;dd&gt;Server sends (&lt;em&gt;e.g.&lt;/em&gt;): &lt;code&gt;Server:
Apache/2.0.41&lt;/code&gt;&lt;/dd&gt;&lt;dt&gt;&lt;code&gt;ServerTokens OS&lt;/code&gt;&lt;/dt&gt;&lt;dd&gt;Server sends (&lt;em&gt;e.g.&lt;/em&gt;): &lt;code&gt;Server: Apache/2.0.41
(Unix)&lt;/code&gt;&lt;/dd&gt;&lt;dt&gt;&lt;code&gt;ServerTokens Full&lt;/code&gt; (or not specified)&lt;/dt&gt;&lt;dd&gt;Server sends (&lt;em&gt;e.g.&lt;/em&gt;): &lt;code&gt;Server: Apache/2.0.41
(Unix) PHP/4.2.2 MyMod/1.2&lt;/code&gt;&lt;/dd&gt;&lt;/dl&gt;
&lt;p&gt;
This setting applies to the entire server, and cannot be
enabled or disabled on a virtualhost-by-virtualhost basis.
&lt;/p&gt;
&lt;p&gt;
After version 2.0.44, this directive also controls the
information presented by the &lt;code class=&quot;directive&quot;&gt;&lt;a href=&quot;http://httpd.apache.org/docs/2.2/mod/core.html#serversignature&quot;&gt;ServerSignature&lt;/a&gt;&lt;/code&gt; directive.
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;</dc:description>
      
    <dc:subject>架站雜記</dc:subject>
     
    
  <dc:date>2008-08-19T20:00:39Z</dc:date>
    <dc:creator>plrts</dc:creator>
 </item>
  <item rdf:about="http://tech.ccjhs.tp.edu.tw/blog2/post/1/37">
  <title>Moodle 各版本安裝系統要求</title>
  <link>http://tech.ccjhs.tp.edu.tw/blog2/post/1/37</link>
  <dc:description>&lt;p&gt;
引用文章自 
&lt;/p&gt;
&lt;p&gt;
&lt;a href=&quot;http://docs.moodle.org/en/Environment#Moodle_version_1.9&quot;&gt;http://docs.moodle.org/en/Environment#Moodle_version_1.9&lt;/a&gt;
&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;
&lt;strong&gt;Moodle version 1.6&lt;/strong&gt;&lt;br /&gt;
MySQL
version 4.1.12 or later for sites that are exclusively Latin-1, 4.1.16
if you have other languages, or PostgreSQL 7.4.x or later &lt;br /&gt;
PHP version 4.3.0 or later is required ( &lt;span style=&quot;color: #ff0000&quot;&gt;but don&#039;t use versions 5.0.0 to 5.0.6 which were buggy &lt;/span&gt;) 
&lt;/p&gt;
&lt;p&gt;
&lt;br /&gt;
The php_extension &lt;span style=&quot;color: #ff0000&quot;&gt;iconv&lt;/span&gt; is recommended to be installed/enabled &lt;br /&gt;
The php_extension &lt;span style=&quot;color: #ff0000&quot;&gt;mbstring&lt;/span&gt; is recommended to be installed/enabled 
&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;
&lt;strong&gt;Moodle version 1.8&lt;/strong&gt;&lt;br /&gt;
MySQL version 4.1.16 or later is required, or PostgreSQL 7.4.x or later &lt;br /&gt;
PHP version 4.3.0 or later is required  ( &lt;span style=&quot;color: #ff0000&quot;&gt;but don&#039;t use versions 5.0.0 to 5.0.6 which were buggy &lt;/span&gt;) &lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #ff0000&quot;&gt;Unicode is required &lt;br /&gt;
&lt;/span&gt;The php_extension &lt;span style=&quot;color: #ff0000&quot;&gt;curl &lt;/span&gt;is recommended to be installed/enabled &lt;br /&gt;
The php_extension &lt;span style=&quot;color: #ff0000&quot;&gt;iconv&lt;/span&gt; is recommended to be installed/enabled &lt;br /&gt;
The php_extension &lt;span style=&quot;color: #ff0000&quot;&gt;mbstring&lt;/span&gt; is recommended to be installed/enabled &lt;br /&gt;
The php_extension &lt;span style=&quot;color: #ff0000&quot;&gt;openssl &lt;/span&gt;is recommended to be installed/enabled &lt;br /&gt;
The php_extension &lt;span style=&quot;color: #ff0000&quot;&gt;tokenizer&lt;/span&gt; is recommended to be installed/enabled 
&lt;/p&gt;
&lt;hr /&gt;
&lt;strong&gt;Moodle version 1.9&lt;/strong&gt;&lt;br /&gt;
MySQL version 4.1.16 or later is required, or PostgreSQL 8.0 or later 
&lt;hr /&gt;
&lt;strong&gt;Moodle version 2.0&lt;/strong&gt;PHP version 5.2.0 or later is required</dc:description>
      
    <dc:subject>moodle文件</dc:subject>
     
    
  <dc:date>2008-07-18T11:28:28Z</dc:date>
    <dc:creator>plrts</dc:creator>
 </item>
  <item rdf:about="http://tech.ccjhs.tp.edu.tw/blog2/post/1/36">
  <title>Ubuntu 8.04 LTS 如何安裝 PHP4</title>
  <link>http://tech.ccjhs.tp.edu.tw/blog2/post/1/36</link>
  <dc:description>&lt;p&gt;
&lt;a href=&quot;http://blog.miniasp.com/post/2008/04/How-to-install-PHP4-on-Ubuntu-804-LTS.aspx&quot; target=&quot;_blank&quot;&gt;http://blog.miniasp.com/post/2008/04/How-to-install-PHP4-on-Ubuntu-804-LTS.aspx&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
據我所知 &lt;a href=&quot;http://www.ubuntu.com/&quot; target=&quot;_blank&quot;&gt;Ubuntu Linux&lt;img class=&quot;snap_preview_icon&quot; src=&quot;http://i.ixnp.com/images/v3.38/t.gif&quot; /&gt;&lt;/a&gt; 大概從 6.06 (Dapper) 開始就不支援 PHP4 了，且 &lt;a href=&quot;http://php.net/&quot; target=&quot;_blank&quot;&gt;PHP 官方網站&lt;img class=&quot;snap_preview_icon&quot; src=&quot;http://i.ixnp.com/images/v3.38/t.gif&quot; /&gt;&lt;/a&gt;也宣布從 2007-12-31 起停止了 PHP4 的計畫（也就是以後也不會再出新版），不過我想應該還是有不少網站是用 PHP4 寫的，要讓這些網站在短時間內全部升級改寫成 PHP5 的版本還真不太容易。今天我也把 &lt;a href=&quot;http://www.ubuntu.com/getubuntu/download&quot; target=&quot;_blank&quot;&gt;Ubuntu 8.04 LTS&lt;img class=&quot;snap_preview_icon&quot; src=&quot;http://i.ixnp.com/images/v3.38/t.gif&quot; /&gt;&lt;/a&gt; 裝起來了，並嘗試著也將 php4 裝起來，以下是在 Ubuntu 8.04 成功安裝 php4 的心得分享（當然這個方法在 Ubuntu 6.06, 6.10 或 7.10 一樣適用）。
&lt;/p&gt;
&lt;p&gt;
1. 建立一個檔案到 /etc/apt/sources.list.d/ 目錄下：
&lt;/p&gt;
&lt;div class=&quot;csharpcode-wrapper&quot;&gt;
&lt;pre class=&quot;csharpcode&quot;&gt;
# vi /etc/apt/sources.list.d/dapper.sources.list
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;
&amp;nbsp;&amp;nbsp; 檔案內容僅需要輸入一行即可：
&lt;/p&gt;
&lt;div class=&quot;csharpcode-wrapper&quot;&gt;
&lt;pre class=&quot;csharpcode&quot;&gt;
deb http://tw.archive.ubuntu.com/ubuntu/ dapper universe main restricted multiverse
&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;
2. 執行 apt-get update 指令更新 Packages 資料庫
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;&amp;nbsp; 你可以發現最後面取得的時 dapper/universe 套件，這裡面就有包括 php4 的所有相關套件。
&lt;/p&gt;
&lt;p&gt;
3. 搜尋所有 php4 相關的套件 
&lt;/p&gt;
&lt;pre class=&quot;csharpcode&quot;&gt;
root@ubuntu804:~# apt-cache search php4
&lt;/pre&gt;
&lt;pre class=&quot;csharpcode&quot;&gt;
4. 安裝 php4-cli
&lt;/pre&gt;
&lt;pre class=&quot;csharpcode&quot;&gt;
root@ubuntu804:~# apt-get install php4-cli 
&lt;/pre&gt;
&lt;pre class=&quot;csharpcode&quot;&gt;
5. 大功告成！我們來測試一下 php4 是否可以正常執行：
&lt;/pre&gt;
&lt;pre class=&quot;csharpcode&quot;&gt;
root@ubuntu804:~# php4 -v
PHP Warning:  mime_magic: type search/400       \\input         text/x-tex invalid in Unknown on line 0
PHP Warning:  mime_magic: type search/400       \\section       text/x-tex invalid in Unknown on line 0
PHP Warning:  mime_magic: type search/400       \\setlength     text/x-tex invalid in Unknown on line 0
PHP Warning:  mime_magic: type search/400       \\documentstyle text/x-tex invalid in Unknown on line 0
PHP Warning:  mime_magic: type search/400       \\chapter       text/x-tex invalid in Unknown on line 0
PHP Warning:  mime_magic: type search/400       \\documentclass text/x-tex invalid in Unknown on line 0
PHP Warning:  mime_magic: type regex            [Cc]onstant[[:space:]]+[Ss]tory text/x-inform invalid in Unknown on line 0
PHP 4.4.2-1build1 (cli) (built: Apr  6 2006 09:44:32)
Copyright (c) 1997-2006 The PHP Group
&lt;/pre&gt;
&lt;pre class=&quot;csharpcode&quot;&gt;
&amp;nbsp;
&lt;/pre&gt;
&lt;hr width=&quot;100%&quot; size=&quot;2&quot; /&gt;
&lt;pre class=&quot;csharpcode&quot;&gt;
&amp;nbsp; 你可以發現執行的過程會出現一堆 PHP Warning 的警告訊息，這是因為 Ubuntu 8.04 中預設的
/usr/share/file/magic.mime (MIME 定義檔) 檔案中有幾行 php4
認不得，而導致出現警示訊息，不過這幾行並不會影響 PHP 的運作。
&lt;/pre&gt;
&lt;p&gt;
&amp;nbsp;&amp;nbsp; 因為在 magic.mime 中的這 7 行是用來定義 TeX documents 與 Inform interactive
fiction language 的檔案類型，因為很少用到，所以我覺得將這幾行註解掉應該沒關係！所以我們還是修改一下 magic.mime
檔案，將這幾行「太新」的 MIME 定義給註解掉，讓 php4 不會出現警告訊息。你開啟 /usr/share/file/magic.mime
檔案後直接跳到第598行：
&lt;/p&gt;
&lt;br /&gt;
&lt;pre class=&quot;csharpcode&quot;&gt;
&lt;span&gt;# TeX documents, from Daniel Quinlan (quinlan@yggdrasil.com)&lt;/span&gt;
0       search/400      \\input         text/x-tex
0       search/400      \\section       text/x-tex
0       search/400      \\setlength     text/x-tex
0       search/400      \\documentstyle text/x-tex
0       search/400      \\chapter       text/x-tex
0       search/400      \\documentclass text/x-tex
&lt;/pre&gt;
&lt;pre class=&quot;csharpcode&quot;&gt;
&lt;span&gt;# Type: Inform interactive fiction language&lt;/span&gt;
&lt;span&gt;# URL:  http://www.inform-fiction.org/&lt;/span&gt;
&lt;span&gt;# From: Reuben Thomas &amp;lt;rrt@sc3d.org&amp;gt;&lt;/span&gt;
0       regex           [Cc]onstant[[:space:]]+[Ss]tory text/x-inform
&lt;/pre&gt;
&lt;pre class=&quot;csharpcode&quot;&gt;
&amp;nbsp;
&lt;/pre&gt;
&lt;pre class=&quot;csharpcode&quot;&gt;
這要將這幾行最前面加上井字號 ( # ) 後存檔，然後我們在測試一下 php4 是否正常執行
&lt;/pre&gt;
&lt;pre class=&quot;csharpcode&quot;&gt;
root@ubuntu804:~# php -v
PHP 4.4.2-1build1 (cli) (built: Apr  6 2006 09:44:32)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies&amp;nbsp;
&lt;/pre&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;</dc:description>
      
    <dc:subject>架站雜記</dc:subject>
     
    
  <dc:date>2008-07-17T15:40:04Z</dc:date>
    <dc:creator>plrts</dc:creator>
 </item>
  <item rdf:about="http://tech.ccjhs.tp.edu.tw/blog2/post/1/35">
  <title>LAMP與Moodle教學平台建置</title>
  <link>http://tech.ccjhs.tp.edu.tw/blog2/post/1/35</link>
  <dc:description>&lt;p style=&quot;margin-bottom: 0cm&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;span style=&quot;font-size: medium&quot;&gt;&lt;strong&gt;LAMP&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: medium&quot;&gt;&lt;strong&gt;&lt;span&gt;與&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;span style=&quot;font-size: medium&quot;&gt;&lt;strong&gt;Moodle&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: medium&quot;&gt;&lt;strong&gt;教學&lt;span&gt;平台建置&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0cm&quot;&gt;
推薦瀏覽軟體：&lt;a href=&quot;http://moztw.org/firefox/&quot; target=&quot;_blank&quot;&gt;Mozilla Firefox&lt;/a&gt; + &lt;a href=&quot;http://autocopy.mozdev.org/&quot; target=&quot;_blank&quot;&gt;Auto Copy 擴充套件&lt;/a&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-bottom: 0cm&quot;&gt;
&lt;span&gt;參考資料來源：&lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;
&lt;br /&gt;
&lt;a href=&quot;http://apt.nc.hcc.edu.tw/web/student_server_FC5/student_server_FC5.html&quot;&gt;&lt;span style=&quot;font-size: small&quot;&gt;http://apt.nc.hcc.edu.tw/web/student_server_FC5/student_server_FC5.html
&lt;br /&gt;
&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-size: small&quot;&gt;學生用伺服器建置流程（&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;span&gt;&lt;span style=&quot;font-size: small&quot;&gt;Fedora Core 5 &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;span style=&quot;font-size: small&quot;&gt;版）&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p lang=&quot;zh-TW&quot; style=&quot;margin-bottom: 0cm&quot;&gt;
&lt;strong&gt;相關網路資料&lt;/strong&gt;
&lt;/p&gt;
&lt;p lang=&quot;zh-TW&quot; style=&quot;margin-bottom: 0cm&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;IP&lt;/span&gt;：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;192.168.0.201~235&lt;/span&gt;(&lt;/span&gt;依座位而定&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;)
&lt;br /&gt;
FQDN&lt;/span&gt;：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;test.ttcps.tpc.edu.tw&lt;/span&gt;
&lt;br /&gt;
Domain&lt;/span&gt;：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;ttcps.tpc.edu.tw&lt;/span&gt;
&lt;br /&gt;
DNS Server&lt;/span&gt;：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;163.20.118.5&lt;/span&gt;(for &lt;/span&gt;土城國小&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;)&lt;/span&gt;
&lt;br /&gt;
子網路遮罩&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;(netmask)&lt;/span&gt;：&lt;span style=&quot;font-family: Times New Roman,serif; color: #ff0000&quot;&gt;255.255.255.0&lt;/span&gt;
&lt;br /&gt;
閘道器&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;(gateway)&lt;/span&gt;：&lt;span style=&quot;font-family: Times New Roman,serif; color: #ff0000&quot;&gt;192.168.0.254&lt;/span&gt;
&lt;/p&gt;
&lt;h2 class=&quot;cjk&quot;&gt;&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;Fedora Core 5 ISO &lt;/span&gt;&lt;span&gt;檔下載&lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small&quot;&gt;Fedora &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: small&quot;&gt;官方網站：&lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;a href=&quot;http://fedora.redhat.com/&quot;&gt;&lt;span style=&quot;font-size: small&quot;&gt;http://fedora.redhat.com/&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;
&lt;/h2&gt; 
&lt;p&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;CD&lt;/span&gt;版本（共五片）
&lt;br /&gt;
&lt;/p&gt;
&lt;div style=&quot;margin-left: 40px&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;a href=&quot;ftp://ftp.isu.edu.tw/pub/Linux/Fedora/linux/core/5/i386/iso/FC-5-i386-disc5.iso&quot; target=&quot;_self&quot;&gt;ftp://apt.nc.hcc.edu.tw/pub/fedora/linux/core/5/i386/iso/FC-5-i386-disc1.iso&lt;/a&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;a href=&quot;ftp://ftp.isu.edu.tw/pub/Linux/Fedora/linux/core/5/i386/iso/FC-5-i386-disc5.iso&quot; target=&quot;_self&quot;&gt;ftp://apt.nc.hcc.edu.tw/pub/fedora/linux/core/5/i386/iso/FC-5-i386-disc2.iso&lt;/a&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;a href=&quot;ftp://ftp.isu.edu.tw/pub/Linux/Fedora/linux/core/5/i386/iso/FC-5-i386-disc5.iso&quot; target=&quot;_self&quot;&gt;ftp://apt.nc.hcc.edu.tw/pub/fedora/linux/core/5/i386/iso/FC-5-i386-disc3.iso&lt;/a&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;a href=&quot;ftp://ftp.isu.edu.tw/pub/Linux/Fedora/linux/core/5/i386/iso/FC-5-i386-disc5.iso&quot; target=&quot;_self&quot;&gt;ftp://apt.nc.hcc.edu.tw/pub/fedora/linux/core/5/i386/iso/FC-5-i386-disc4.iso&lt;/a&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;a href=&quot;ftp://ftp.isu.edu.tw/pub/Linux/Fedora/linux/core/5/i386/iso/FC-5-i386-disc5.iso&quot; target=&quot;_self&quot;&gt;ftp://apt.nc.hcc.edu.tw/pub/fedora/linux/core/5/i386/iso/FC-5-i386-disc5.iso&lt;/a&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;DVD&lt;/span&gt;版本（共一片）
&lt;br /&gt;
&lt;/p&gt;
&lt;div style=&quot;margin-left: 40px&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;a href=&quot;ftp://apt.nc.hcc.edu.tw/pub/fedora/linux/core/5/i386/iso/FC-5-i386-DVD.iso&quot; target=&quot;_self&quot;&gt;ftp://apt.nc.hcc.edu.tw/pub/fedora/linux/core/5/i386/iso/FC-5-i386-DVD.iso&lt;/a&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;p&gt;
透過 &lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;BitTorrent &lt;/span&gt;下載：
&lt;br /&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-left: 40px&quot;&gt;
&lt;a href=&quot;http://torrent.fedoraproject.org/&quot; target=&quot;_blank&quot;&gt;http://torrent.fedoraproject.org/&lt;/a&gt;&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt; &lt;/span&gt; 
&lt;/p&gt;
&lt;p&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;sha1sum &lt;/span&gt;檢查碼：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;a href=&quot;ftp://apt.nc.hcc.edu.tw/pub/fedora/linux/core/5/i386/iso/SHA1SUM&quot;&gt;ftp://apt.nc.hcc.edu.tw/pub/fedora/linux/core/5/i386/iso/SHA1SUM&lt;/a&gt;
&lt;br /&gt;
sha1sum for windows&lt;/span&gt;：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;a href=&quot;http://apt.nc.hcc.edu.tw/pub/mirror/sha1sum.exe&quot;&gt;http://apt.nc.hcc.edu.tw/pub/mirror/sha1sum.exe&lt;/a&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p lang=&quot;zh-TW&quot;&gt;
&lt;a name=&quot;install&quot; title=&quot;install&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-size: medium&quot;&gt;&lt;strong&gt;作業系統網路安裝&lt;/strong&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
網路安裝 &lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;ISO &lt;/span&gt;檔：
&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;
	&lt;p&gt;
	&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;a href=&quot;ftp://apt.nc.hcc.edu.tw/pub/fedora/linux/core/5/i386/os/images/boot.iso&quot;&gt;ftp://apt.nc.hcc.edu.tw/pub/fedora/linux/core/5/i386/os/images/boot.iso&lt;/a&gt; &lt;/span&gt; 
	&lt;/p&gt;
	&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
開機的時候，輸入「&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;strong&gt;linux askmethod&lt;/strong&gt;&lt;/span&gt;」，安裝類型選擇「&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;strong&gt;FTP&lt;/strong&gt;&lt;/span&gt;」
&lt;/p&gt;
&lt;p&gt;
安裝類型為 &lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;FTP &lt;/span&gt;時的設定：
&lt;/p&gt;
&lt;blockquote&gt;
	&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;FTP &lt;/span&gt;站台名稱：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;strong&gt;163.19.1.81&lt;/strong&gt;&lt;/span&gt;（或 &lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;strong&gt;apt.nc.hcc.edu.tw&lt;/strong&gt;&lt;/span&gt;）&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;
	&lt;br /&gt;
	Fedora Core 5 &lt;/span&gt;所在目錄：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;strong&gt;pub/fedora/linux/core/5/i386/os&lt;/strong&gt;&lt;/span&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
	或
&lt;/blockquote&gt;
&lt;blockquote&gt;
	&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;FTP &lt;/span&gt;站台名稱：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;strong&gt;140.127.177.17&lt;/strong&gt;&lt;/span&gt;（或 &lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;strong&gt;ftp.isu.edu.tw&lt;/strong&gt;&lt;/span&gt;）&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;
	&lt;br /&gt;
	Fedora Core 5 &lt;/span&gt;所在目錄：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;strong&gt;pub/Linux/Fedora/linux/core/5/i386/os&lt;/strong&gt;&lt;/span&gt;
&lt;/blockquote&gt;
&lt;p&gt;
&lt;a href=&quot;http://apt.nc.hcc.edu.tw/web/student_server_FC5/img/install/install.html&quot; target=&quot;_blank&quot;&gt;網路安裝過程&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
註：
&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;
	&lt;p style=&quot;margin-bottom: 0cm&quot;&gt;
	這裡是以 &lt;a href=&quot;http://apt.nc.hcc.edu.tw/&quot;&gt;新竹縣網&lt;/a&gt; 和 &lt;a href=&quot;http://ftp.isu.edu.tw/&quot;&gt;義守大學&lt;/a&gt; 的 &lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;FTP &lt;/span&gt;站台為範例，路徑一定要對，否則就會出現錯誤訊息 
	&lt;/p&gt;
	&lt;/li&gt;
	&lt;li&gt;
	&lt;p&gt;
	若別的 &lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;FTP &lt;/span&gt;站台速度較佳的話，當然也可以設別的 &lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;FTP &lt;/span&gt;站 
	&lt;/p&gt;
	&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
安裝過程注意事項：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
1.&lt;/span&gt;磁碟分割：請&lt;span&gt;依您的需求與規劃&lt;/span&gt;分割&lt;span&gt;區&lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;
&lt;br /&gt;
2.&lt;/span&gt;在軟體選擇的地方點選「&lt;strong&gt;立即自訂&lt;/strong&gt;」，然後取消所有的勾選，只留下「&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;strong&gt;Base System&lt;/strong&gt;&lt;/span&gt;」內的「&lt;strong&gt;基礎&lt;/strong&gt;」（&lt;a href=&quot;http://apt.nc.hcc.edu.tw/web/student_server_FC5/img/install/21.png&quot;&gt;圖&lt;/a&gt;）
&lt;/p&gt;
&lt;p lang=&quot;zh-TW&quot;&gt;
&lt;a name=&quot;pietty&quot; title=&quot;pietty&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;span style=&quot;font-size: medium&quot;&gt;&lt;strong&gt;PieTTY&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: medium&quot;&gt;&lt;strong&gt;、&lt;/strong&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;span style=&quot;font-size: medium&quot;&gt;&lt;strong&gt;PtTTY&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: medium&quot;&gt;&lt;strong&gt;：&lt;/strong&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;span style=&quot;font-size: medium&quot;&gt;&lt;strong&gt;Microsoft Windows &lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: medium&quot;&gt;&lt;strong&gt;下好用的 &lt;/strong&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;span style=&quot;font-size: medium&quot;&gt;&lt;strong&gt;ssh &lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: medium&quot;&gt;&lt;strong&gt;連線工具&lt;/strong&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;strong&gt;PieTTY&lt;/strong&gt; &lt;/span&gt;官方網站：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;a href=&quot;http://ntu.csie.org/%7Epiaip/pietty/&quot;&gt;http://ntu.csie.org/~piaip/pietty/&lt;/a&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;blockquote&gt;
	下載：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;a href=&quot;http://ntu.csie.org/%7Epiaip/pietty/stable/pietty0327.exe&quot;&gt;http://ntu.csie.org/~piaip/pietty/stable/pietty0327.exe
	&lt;br /&gt;
	&lt;/a&gt;&lt;/span&gt;設定：
&lt;/blockquote&gt;
&lt;ol&gt;
	&lt;li&gt;
	&lt;blockquote&gt;
		選項 &lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;/ &lt;/span&gt;字元編碼 &lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;/ Unicode&lt;/span&gt;（&lt;a href=&quot;http://apt.nc.hcc.edu.tw/web/student_server_FC5/img/pietty01.png&quot;&gt;圖一&lt;/a&gt;）
	&lt;/blockquote&gt;
	&lt;/li&gt;
	&lt;li&gt;
	&lt;blockquote&gt;
		選項 &lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;/ &lt;/span&gt;亞洲語系修正 &lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;/ &lt;/span&gt;取消勾選「&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;Unicode &lt;/span&gt;亞洲寬符號字元」（&lt;a href=&quot;http://apt.nc.hcc.edu.tw/web/student_server_FC5/img/pietty02.png&quot;&gt;圖二&lt;/a&gt;）
		&lt;br /&gt;
	&lt;/blockquote&gt;
	&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;strong&gt;PuTTY&lt;/strong&gt; &lt;/span&gt;官方網站：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;a href=&quot;http://www.chiark.greenend.org.uk/%7Esgtatham/putty/&quot;&gt;http://www.chiark.greenend.org.uk/~sgtatham/putty/&lt;/a&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;blockquote&gt;
	下載：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;a href=&quot;http://the.earth.li/%7Esgtatham/putty/latest/x86/putty.exe&quot;&gt;http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe
	&lt;br /&gt;
	&lt;/a&gt;&lt;/span&gt;設定：&lt;a href=&quot;http://apt.nc.hcc.edu.tw/web/student_server_FC5/img/putty01.png&quot;&gt;圖一&lt;/a&gt;、&lt;a href=&quot;http://apt.nc.hcc.edu.tw/web/student_server_FC5/img/putty02.png&quot;&gt;圖二&lt;/a&gt;
&lt;/blockquote&gt;
&lt;p&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;PuTTY &lt;/span&gt;官方文件：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;a href=&quot;http://www.chiark.greenend.org.uk/%7Esgtatham/putty/docs.html&quot;&gt;http://www.chiark.greenend.org.uk/~sgtatham/putty/docs.html&lt;/a&gt; &lt;/span&gt; 
&lt;/p&gt;
&lt;p lang=&quot;zh-TW&quot;&gt;
&lt;a name=&quot;vi&quot; title=&quot;vi&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;span style=&quot;font-size: medium&quot;&gt;&lt;strong&gt;vi &lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: medium&quot;&gt;&lt;strong&gt;基本指令介紹&lt;/strong&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;vi &lt;/span&gt;（&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;or vim&lt;/span&gt;）是 &lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;Unix-like &lt;/span&gt;作業系統下最通用、強悍的文字編輯器，儘管入門困難，建議一定要花時間將其基本操作學會
&lt;/p&gt;
&lt;blockquote&gt;
	輸入：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;a&lt;/span&gt;、&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;i&lt;/span&gt;、&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;o &lt;/span&gt; 
&lt;/blockquote&gt;
&lt;blockquote&gt;
	到第一行：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;gg
	&lt;br /&gt;
	&lt;/span&gt;到最後一行：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;G
	&lt;br /&gt;
	&lt;/span&gt;到某一行：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;xxG
	&lt;br /&gt;
	&lt;/span&gt;到行首：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;0
	&lt;br /&gt;
	&lt;/span&gt;到行末：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;$&lt;/span&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
	複製：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;yy
	&lt;br /&gt;
	&lt;/span&gt;貼上：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;p
	&lt;br /&gt;
	&lt;/span&gt;復原：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;u&lt;/span&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
	刪一個字：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;x
	&lt;br /&gt;
	&lt;/span&gt;刪整行：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;dd&lt;/span&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
	顯示行數：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;:set nu
	&lt;br /&gt;
	&lt;/span&gt;不顯示行數：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;:set nonu&lt;/span&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
	&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;vi &lt;/span&gt;的搜尋：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;/&lt;/span&gt;、再次搜尋：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;n
	&lt;br /&gt;
	&lt;/span&gt;到 &lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;shell&lt;/span&gt;：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;:sh&lt;/span&gt;（在 &lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;shell &lt;/span&gt;中回到 &lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;vi&lt;/span&gt;：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;exit&lt;/span&gt;）
&lt;/blockquote&gt;
&lt;blockquote&gt;
	儲存：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;:w
	&lt;br /&gt;
	&lt;/span&gt;離開：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;:q
	&lt;br /&gt;
	&lt;/span&gt;儲存兼離開：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;:wq &lt;/span&gt;或 &lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;shift+zz 
	&lt;br /&gt;
	&lt;/span&gt;強制離開（不儲存）：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;:q! &lt;/span&gt; 
&lt;/blockquote&gt;
&lt;p&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;Vim &lt;/span&gt;官方文件：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;a href=&quot;http://www.vim.org/docs.php&quot;&gt;http://www.vim.org/docs.php&lt;/a&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;h2 class=&quot;cjk&quot; lang=&quot;zh-TW&quot;&gt;&lt;a name=&quot;ssh&quot; title=&quot;ssh&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;SSH &lt;/span&gt;基本設定
&lt;/h2&gt; 
&lt;p&gt;
&lt;strong&gt;新增管理者帳號：&lt;/strong&gt;
&lt;/p&gt;
&lt;blockquote&gt;
	&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;useradd &lt;span style=&quot;color: #ff0000&quot;&gt;sysadm&lt;/span&gt;
	&lt;br /&gt;
	passwd &lt;span style=&quot;color: #ff0000&quot;&gt;sysadm&lt;/span&gt;&lt;/span&gt;
&lt;/blockquote&gt;
&lt;p&gt;
&lt;span style=&quot;color: #ff0000&quot;&gt;注意&lt;/span&gt;：這裡是以 &lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;sysadm &lt;/span&gt;為例，當然您可以取自己喜歡的名稱，不過文件後續所用到的所有 &lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;sysadm &lt;/span&gt;字眼，記得要換成您自取的帳號
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;只允許管理者使用 &lt;/strong&gt;&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;strong&gt;ssh &lt;/strong&gt;&lt;/span&gt;&lt;strong&gt;登入：&lt;/strong&gt;
&lt;/p&gt;
&lt;blockquote&gt;
	&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;cp /etc/ssh/sshd_config /etc/ssh/sshd_config.bak
	&lt;br /&gt;
	vi /etc/ssh/sshd_config&lt;/span&gt;
&lt;/blockquote&gt;
&lt;p style=&quot;margin-left: 1cm; margin-right: 1cm&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial&quot;&gt;&lt;span style=&quot;color: #ffffff&quot;&gt;AllowUsers&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;sysadm&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-left: 1cm; margin-right: 1cm&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman,serif; color: #ffffff&quot;&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial&quot;&gt;#&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; color: #ffffff&quot;&gt;在檔案最後面加上這一行，這樣就只有 &lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;sysadm &lt;/span&gt;可以使用 &lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;ssh &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial&quot;&gt;&lt;span style=&quot;color: #ffffff&quot;&gt;連線了&lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #ffffff&quot;&gt;#&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial&quot;&gt;&lt;span style=&quot;color: #ffffff&quot;&gt;若要設定多人，就用空格隔開：&lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;span style=&quot;color: #ffffff&quot;&gt;AllowUsers&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;sysadm sysadm2&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;重新讀取 &lt;/strong&gt;&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;strong&gt;ssh &lt;/strong&gt;&lt;/span&gt;&lt;strong&gt;設定檔：&lt;/strong&gt;
&lt;/p&gt;
&lt;blockquote&gt;
	&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;/etc/rc.d/init.d/sshd restart&lt;/span&gt;
&lt;/blockquote&gt;
&lt;p&gt;
用 &lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;sysadm&lt;/span&gt; &lt;/span&gt;帳號登入後，再用 &lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;strong&gt;su -&lt;/strong&gt; &lt;/span&gt;指令變成 &lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;root&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;OpenSSH &lt;/span&gt;官方文件：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;a href=&quot;http://www.openssh.com/manual.html&quot;&gt;http://www.openssh.com/manual.html&lt;/a&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p lang=&quot;zh-TW&quot;&gt;
&lt;a name=&quot;tcp_wrappers&quot; title=&quot;tcp_wrappers&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;span style=&quot;font-size: medium&quot;&gt;&lt;strong&gt;tcp_wrappers &lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: medium&quot;&gt;&lt;strong&gt;基本設定&lt;/strong&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-left: 40px&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;vi /etc/hosts.deny&lt;/span&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-left: 40px&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial&quot;&gt;&lt;span style=&quot;color: #ffffff&quot;&gt;ALL:ALL&lt;/span&gt; &lt;/span&gt;&lt;/span&gt; 
&lt;/p&gt;
&lt;p style=&quot;margin-left: 40px&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;vi /etc/hosts.allow&lt;/span&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-left: 40px&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial&quot;&gt;&lt;span style=&quot;color: #ffffff&quot;&gt;ALL:&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;192.168.0.0/255.255.255.0&lt;/span&gt;&lt;span style=&quot;color: #ffffff&quot;&gt;:allow&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #ffffff&quot;&gt;sshd:ALL:allow&lt;/span&gt;
&lt;br style=&quot;color: #ffffff&quot; /&gt;
&lt;span style=&quot;color: #ffffff&quot;&gt;vsftpd:ALL:allow&lt;/span&gt;
&lt;br style=&quot;color: #ffffff&quot; /&gt;
&lt;span style=&quot;color: #ffffff&quot;&gt;sendmail:ALL:allow&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;h2 class=&quot;cjk&quot; lang=&quot;zh-TW&quot;&gt;&lt;a name=&quot;selinux&quot; title=&quot;selinux&quot;&gt;&lt;/a&gt;關閉 &lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;SELinux&lt;/span&gt;
&lt;/h2&gt; 
&lt;p style=&quot;margin-left: 40px&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;vi /etc/sysconfig/selinux&lt;/span&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-left: 40px&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial&quot;&gt;&lt;span style=&quot;color: #ffffff&quot;&gt;SELINUX=&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;enforcing&lt;/span&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial&quot;&gt;&lt;span style=&quot;color: #ffffff&quot;&gt;改成&lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;span style=&quot;color: #ffffff&quot;&gt;--&amp;gt; SELINUX=&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;disabled&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;Fedora Core 5 SELinux FAQ&lt;/span&gt;：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;a href=&quot;http://fedora.redhat.com/docs/selinux-faq-fc5/&quot;&gt;http://fedora.redhat.com/docs/selinux-faq-fc5/&lt;/a&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p lang=&quot;zh-TW&quot;&gt;
&lt;a name=&quot;services&quot; title=&quot;services&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-size: medium&quot;&gt;&lt;strong&gt;關閉、啟動基本服務&lt;/strong&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
執行 &lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;strong&gt;ntsysv&lt;/strong&gt; &lt;/span&gt;指令，只留下以下服務：
&lt;/p&gt;
&lt;blockquote&gt;
	&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;acpid
	&lt;br /&gt;
	anacron 
	&lt;br /&gt;
	cpuspeed
	&lt;br /&gt;
	crond
	&lt;br /&gt;
	network
	&lt;br /&gt;
	sendmail
	&lt;br /&gt;
	sshd
	&lt;br /&gt;
	syslog
	&lt;br /&gt;
	&lt;span style=&quot;color: #ff0000&quot;&gt;yum&lt;/span&gt; &lt;/span&gt; 
&lt;/blockquote&gt;
&lt;p&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;strong&gt;runlevel&lt;/strong&gt; &lt;/span&gt;介紹：
&lt;/p&gt;
&lt;blockquote&gt;
	&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;vi /etc/inittab
	&lt;br /&gt;
	ll /etc/rc.d/
	&lt;br /&gt;
	vi /etc/rc.d/rc.local &lt;/span&gt; 
&lt;/blockquote&gt;
&lt;p&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;strong&gt;chkconfig&lt;/strong&gt; &lt;/span&gt;介紹：
&lt;/p&gt;
&lt;blockquote&gt;
	&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;chkconfig --list
	&lt;br /&gt;
	chkconfig --level 345 &lt;span style=&quot;color: #ff0000&quot;&gt;xxx&lt;/span&gt; on
	&lt;br /&gt;
	chkconfig &lt;span style=&quot;color: #ff0000&quot;&gt;xxx&lt;/span&gt; on
	&lt;br /&gt;
	chkconfig --list &lt;span style=&quot;color: #ff0000&quot;&gt;xxx&lt;/span&gt; &lt;/span&gt; 
&lt;/blockquote&gt;
&lt;p&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;strong&gt;man&lt;/strong&gt; &lt;/span&gt;介紹&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;
&lt;br /&gt;
&lt;strong&gt;netstat&lt;/strong&gt; &lt;/span&gt;介紹：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;netstat -tl&lt;/span&gt;
&lt;/p&gt;
&lt;p lang=&quot;zh-TW&quot;&gt;
&lt;a name=&quot;update&quot; title=&quot;update&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-size: medium&quot;&gt;&lt;strong&gt;更新套件（使用 &lt;/strong&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;span style=&quot;font-size: medium&quot;&gt;&lt;strong&gt;yum&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: medium&quot;&gt;&lt;strong&gt;）&lt;/strong&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;YUM - &lt;strong&gt;Y&lt;/strong&gt;ellowdog &lt;strong&gt;U&lt;/strong&gt;pdater &lt;strong&gt;M&lt;/strong&gt;odified
&lt;br /&gt;
YUM &lt;/span&gt;官方網站：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;a href=&quot;http://linux.duke.edu/projects/yum/&quot;&gt;http://linux.duke.edu/projects/yum/&lt;/a&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;修改設定檔：&lt;/strong&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-left: 40px&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;cd /etc/yum.repos.d/
&lt;br /&gt;
cp fedora-core.repo fedora-core.repo.bak
&lt;br /&gt;
vi fedora-core.repo&lt;/span&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-left: 40px&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial&quot;&gt;&lt;span style=&quot;color: #ffffff&quot;&gt;[core]&lt;/span&gt;
&lt;br style=&quot;color: #ffffff&quot; /&gt;
&lt;span style=&quot;color: #ffffff&quot;&gt;name=Fedora Core $releasever - $basearch&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #ff0000&quot;&gt;baseurl=ftp://apt.nc.hcc.edu.tw/pub/fedora/linux/core/$releasever/$basearch/os/&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #ffffff&quot;&gt;#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os/&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #ff0000&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: #ffffff&quot;&gt;mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-core-$releasever&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #ffffff&quot;&gt;enabled=1&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #ffffff&quot;&gt;gpgcheck=1&lt;/span&gt;
&lt;br style=&quot;color: #ffffff&quot; /&gt;
&lt;span style=&quot;color: #ffffff&quot;&gt;gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-left: 40px&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;cp fedora-updates.repo fedora-updates.repo.bak
&lt;br /&gt;
vi fedora-updates.repo&lt;/span&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-left: 40px&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial&quot;&gt;&lt;span style=&quot;color: #ffffff&quot;&gt;[updates]&lt;/span&gt;
&lt;br style=&quot;color: #ffffff&quot; /&gt;
&lt;span style=&quot;color: #ffffff&quot;&gt;name=Fedora Core $releasever - $basearch - Updates&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #ff0000&quot;&gt;baseurl=ftp://apt.nc.hcc.edu.tw/pub/fedora/linux/core/updates/$releasever/$basearch/&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #ffffff&quot;&gt;#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/$releasever/$basearch/&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #ff0000&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: #ffffff&quot;&gt;mirrorlist=http://fedora.redhat.com/download/mirrors/updates-released-fc$releasever&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #ffffff&quot;&gt;enabled=1&lt;/span&gt;
&lt;br style=&quot;color: #ffffff&quot; /&gt;
&lt;span style=&quot;color: #ffffff&quot;&gt;gpgcheck=1&lt;/span&gt;
&lt;br style=&quot;color: #ffffff&quot; /&gt;
&lt;span style=&quot;color: #ffffff&quot;&gt;gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-left: 40px&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;cp fedora-extras.repo fedora-extras.repo.bak
&lt;br /&gt;
vi fedora-extras.repo&lt;/span&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-left: 40px&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial&quot;&gt;&lt;span style=&quot;color: #ffffff&quot;&gt;[extras]&lt;/span&gt;
&lt;br style=&quot;color: #ffffff&quot; /&gt;
&lt;span style=&quot;color: #ffffff&quot;&gt;name=Fedora Extras $releasever - $basearch&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #ff0000&quot;&gt;baseurl=ftp://apt.nc.hcc.edu.tw/pub/fedora/linux/extras/$releasever/$basearch/&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #ffffff&quot;&gt;#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/extras/$releasever/$basearch/&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #ff0000&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: #ffffff&quot;&gt;mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-extras-$releasever&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #ffffff&quot;&gt;enabled=1&lt;/span&gt;
&lt;br style=&quot;color: #ffffff&quot; /&gt;
&lt;span style=&quot;color: #ffffff&quot;&gt;gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-extras&lt;/span&gt;
&lt;br style=&quot;color: #ffffff&quot; /&gt;
&lt;span style=&quot;color: #ffffff&quot;&gt;gpgcheck=1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;更新：&lt;/strong&gt;&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;yum -y update&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;安裝 &lt;/strong&gt;&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;strong&gt;vim-enhanced &lt;/strong&gt;&lt;/span&gt;&lt;strong&gt;加強 &lt;/strong&gt;&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;strong&gt;vi &lt;/strong&gt;&lt;/span&gt;&lt;strong&gt;的功能：&lt;/strong&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-left: 40px&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;yum -y install vim-enhanced
&lt;br /&gt;
mv /bin/vi /bin/vi.bak
&lt;br /&gt;
ln -s /usr/bin/vim /bin/vi&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;安裝 &lt;/strong&gt;&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;strong&gt;yum-updateonboot&lt;/strong&gt;&lt;/span&gt;&lt;strong&gt;，讓系統在開機的時候就執行 &lt;/strong&gt;&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;strong&gt;yum &lt;/strong&gt;&lt;/span&gt;&lt;strong&gt;更新：&lt;/strong&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-left: 40px&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;yum -y install yum-updateonboot
&lt;br /&gt;
chkconfig yum-updateonboot on&lt;/span&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-left: 40px&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;reboot&lt;/span&gt;
&lt;/p&gt;
&lt;h2 class=&quot;cjk&quot; lang=&quot;zh-TW&quot;&gt;&lt;a name=&quot;yum&quot; title=&quot;yum&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;yum &lt;/span&gt;指令介紹
&lt;/h2&gt; 
&lt;ul&gt;
	&lt;li&gt;
	&lt;p style=&quot;margin-bottom: 0cm&quot;&gt;
	更新：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;yum update&lt;/span&gt;
	&lt;/p&gt;
	&lt;/li&gt;
	&lt;li&gt;
	&lt;p style=&quot;margin-bottom: 0cm&quot;&gt;
	安裝：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;yum install &lt;span style=&quot;color: #ff0000&quot;&gt;xxx&lt;/span&gt;&lt;/span&gt;
	&lt;/p&gt;
	&lt;/li&gt;
	&lt;li&gt;
	&lt;p style=&quot;margin-bottom: 0cm&quot;&gt;
	移除：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;yum remove &lt;span style=&quot;color: #ff0000&quot;&gt;xxx&lt;/span&gt;&lt;/span&gt;
	&lt;/p&gt;
	&lt;/li&gt;
	&lt;li&gt;
	&lt;p style=&quot;margin-bottom: 0cm&quot;&gt;
	清除已經安裝過的檔案：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;yum clean packages&lt;/span&gt;（&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;/var/cache/yum/&lt;/span&gt;） 
	&lt;/p&gt;
	&lt;/li&gt;
	&lt;li&gt;
	&lt;p style=&quot;margin-bottom: 0cm&quot;&gt;
	搜尋：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;yum search &lt;span style=&quot;color: #ff0000&quot;&gt;xxx&lt;/span&gt;&lt;/span&gt;
	&lt;/p&gt;
	&lt;/li&gt;
	&lt;li&gt;
	&lt;p style=&quot;margin-bottom: 0cm&quot;&gt;
	列出所有檔案：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;yum list&lt;/span&gt;
	&lt;/p&gt;
	&lt;/li&gt;
	&lt;li&gt;
	&lt;p&gt;
	查詢檔案訊息：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;yum info &lt;span style=&quot;color: #ff0000&quot;&gt;xxx&lt;/span&gt; &lt;/span&gt; 
	&lt;/p&gt;
	&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
&lt;strong&gt;群組安裝功能：&lt;/strong&gt;
&lt;/p&gt;
&lt;blockquote&gt;
	&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;yum grouplist
	&lt;br /&gt;
	yum groupinstall &amp;quot;&lt;span style=&quot;color: #ff0000&quot;&gt;Web Server&lt;/span&gt;&amp;quot;&lt;/span&gt;
&lt;/blockquote&gt;
&lt;p&gt;
&lt;strong&gt;一些檔案：&lt;/strong&gt;
&lt;/p&gt;
&lt;blockquote&gt;
	&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;rpm -qc yum
	&lt;br /&gt;
	/var/log/yum.log&lt;/span&gt;
&lt;/blockquote&gt;
&lt;p&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;Managing Software with yum&lt;/span&gt;：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;a href=&quot;http://fedora.redhat.com/docs/yum/index.html&quot;&gt;http://fedora.redhat.com/docs/yum/index.html&lt;/a&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;h2 class=&quot;cjk&quot; lang=&quot;zh-TW&quot;&gt;&lt;a name=&quot;rpm&quot; title=&quot;rpm&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;RPM &lt;/span&gt;基本指令介紹
&lt;/h2&gt; 
&lt;ul&gt;
	&lt;li&gt;
	&lt;p style=&quot;margin-bottom: 0cm&quot;&gt;
	安裝：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;rpm -ivh &lt;span style=&quot;color: #ff0000&quot;&gt;xxx&lt;/span&gt; &lt;/span&gt; 
	&lt;/p&gt;
	&lt;/li&gt;
	&lt;li&gt;
	&lt;p style=&quot;margin-bottom: 0cm&quot;&gt;
	移除：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;rpm -e &lt;span style=&quot;color: #ff0000&quot;&gt;xxx&lt;/span&gt; &lt;/span&gt; 
	&lt;/p&gt;
	&lt;/li&gt;
	&lt;li&gt;
	&lt;p style=&quot;margin-bottom: 0cm&quot;&gt;
	升級：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;rpm -Uvh &lt;span style=&quot;color: #ff0000&quot;&gt;xxx&lt;/span&gt; &lt;/span&gt; 
	&lt;/p&gt;
	&lt;/li&gt;
	&lt;li&gt;
	&lt;p&gt;
	查詢： 
	&lt;/p&gt;
	&lt;blockquote&gt;
		&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;rpm -qa | grep &lt;span style=&quot;color: #ff0000&quot;&gt;xxx
		&lt;br /&gt;
		&lt;/span&gt;rpm -qi &lt;span style=&quot;color: #ff0000&quot;&gt;xxx
		&lt;br /&gt;
		&lt;/span&gt;rpm -ql &lt;span style=&quot;color: #ff0000&quot;&gt;xxx
		&lt;br /&gt;
		&lt;/span&gt;rpm -qc &lt;span style=&quot;color: #ff0000&quot;&gt;xxx
		&lt;br /&gt;
		&lt;/span&gt;rpm -qf /etc/yum.conf
		&lt;br /&gt;
		rpm -qpi &lt;span style=&quot;color: #ff0000&quot;&gt;xxx&lt;/span&gt;&lt;/span&gt;
	&lt;/blockquote&gt;
	&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 class=&quot;cjk&quot; lang=&quot;zh-TW&quot;&gt;&lt;a name=&quot;web&quot; title=&quot;web&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;WEB server&lt;/span&gt;
&lt;/h2&gt; 
&lt;p&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;Apache HTTP Server &lt;/span&gt;官方網站：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;a href=&quot;http://httpd.apache.org/&quot;&gt;http://httpd.apache.org/&lt;/a&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-left: 40px&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;yum -y install httpd mod_ssl
&lt;br /&gt;
cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.bak
&lt;br /&gt;
vi /etc/httpd/conf/httpd.conf&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;#vi &lt;/span&gt;行數顯示：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;:set nu&lt;/span&gt;、到第？行：數字 &lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;+ G&lt;/span&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-left: 40px&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman,serif; color: #ffffff&quot;&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial&quot;&gt;250&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial&quot;&gt;&lt;span style=&quot;color: #ffffff&quot;&gt;行 &lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;span style=&quot;color: #ffffff&quot;&gt;ServerAdmin &lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;root@localhost&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #ffffff&quot;&gt;354&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; color: #ffffff&quot;&gt;行 &lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;UserDir disable &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial&quot;&gt;&lt;span style=&quot;color: #ffffff&quot;&gt;修改成&lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;span style=&quot;color: #ffffff&quot;&gt;--&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: #ffffff&quot;&gt;UserDir disable&lt;/span&gt;
&lt;br /&gt;
&lt;a href=&quot;/&quot;&gt;361&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial&quot;&gt;&lt;a href=&quot;/&quot;&gt;&lt;span style=&quot;color: #ffffff&quot;&gt;行&lt;/span&gt; &lt;/a&gt;&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: #ffffff&quot;&gt;UserDir public_html &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial&quot;&gt;&lt;span style=&quot;color: #ffffff&quot;&gt;修改成&lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;span style=&quot;color: #ffffff&quot;&gt;--&amp;gt; UserDir public_html&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #ffffff&quot;&gt;390&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; color: #ffffff&quot;&gt;行 &lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;DirectoryIndex index.html index.html.var &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial&quot;&gt;&lt;span style=&quot;color: #ffffff&quot;&gt;修改成&lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;span style=&quot;color: #ffffff&quot;&gt;--&amp;gt; DirectoryIndex index.html &lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;index.htm index.php&lt;/span&gt;&lt;span style=&quot;color: #ffffff&quot;&gt; index.html.var&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #ffffff&quot;&gt;730&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial&quot;&gt;&lt;span style=&quot;color: #ffffff&quot;&gt;行 &lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;span style=&quot;color: #ffffff&quot;&gt;LanguagePriority &lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;zh-TW&lt;/span&gt;&lt;span style=&quot;color: #ffffff&quot;&gt; en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman,serif; color: #ffffff&quot;&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial&quot;&gt;746&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; color: #ffffff&quot;&gt;行 &lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;AddDefaultCharset UTF-8 &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial&quot;&gt;&lt;span style=&quot;color: #ffffff&quot;&gt;修改成&lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;span style=&quot;color: #ffffff&quot;&gt;--&amp;gt; &lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: #ffffff&quot;&gt;AddDefaultCharset UTF-8&lt;/span&gt; &lt;/span&gt;&lt;/span&gt; 
&lt;/p&gt;
&lt;p style=&quot;margin-left: 40px&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;/etc/rc.d/init.d/httpd start
&lt;br /&gt;
chkconfig httpd on&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;span style=&quot;color: #ff0000&quot;&gt;注意&lt;/span&gt;：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;web server &lt;/span&gt;架設好之後，個人網頁的功能也啟動了，只要輸入「&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;http://&lt;span style=&quot;color: #ff0000&quot;&gt;IP&lt;/span&gt;/~xxx&lt;/span&gt;」即可瀏覽，不過請確定 &lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;SELinux &lt;/span&gt;的功能是關閉的，否則將無法正常瀏覽個人網頁。
&lt;/p&gt;
&lt;p&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;Apache HTTP Server &lt;/span&gt;官方文件：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;a href=&quot;http://httpd.apache.org/docs-project/&quot;&gt;http://httpd.apache.org/docs-project/&lt;/a&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;h2 class=&quot;cjk&quot; lang=&quot;zh-TW&quot;&gt;&lt;a name=&quot;ftp&quot; title=&quot;ftp&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;FTP server&lt;/span&gt;
&lt;/h2&gt; 
&lt;p&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;vsftpd &lt;/span&gt;官方網站：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;a href=&quot;http://vsftpd.beasts.org/&quot;&gt;http://vsftpd.beasts.org/&lt;/a&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-left: 40px&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;yum -y install vsftpd
&lt;br /&gt;
cp /etc/vsftpd/vsftpd.conf /etc/vsftpd/vsftpd.conf.bak
&lt;br /&gt;
vi /etc/vsftpd/vsftpd.conf&lt;/span&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-left: 40px&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman,serif; color: #ffffff&quot;&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial&quot;&gt;12&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial&quot;&gt;&lt;span style=&quot;color: #ffffff&quot;&gt;行 &lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;span style=&quot;color: #ffffff&quot;&gt;anonymous_enable=&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;YES&lt;/span&gt;&lt;span style=&quot;color: #ffffff&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial&quot;&gt;&lt;span style=&quot;color: #ffffff&quot;&gt;修改成&lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;span style=&quot;color: #ffffff&quot;&gt;--&amp;gt; anonymous_enable=&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;NO&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #ffffff&quot;&gt;51&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial&quot;&gt;&lt;span style=&quot;color: #ffffff&quot;&gt;行 &lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: #ffffff&quot;&gt;xferlog_file=/var/log/&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;vsftpd.log&lt;/span&gt;&lt;span style=&quot;color: #ffffff&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial&quot;&gt;&lt;span style=&quot;color: #ffffff&quot;&gt;修改成&lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;span style=&quot;color: #ffffff&quot;&gt;--&amp;gt; xferlog_file=/var/log/&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;xferlog&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #ffffff&quot;&gt;94&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial&quot;&gt;&lt;span style=&quot;color: #ffffff&quot;&gt;行 &lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: #ffffff&quot;&gt;chroot_list_enable=YES &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial&quot;&gt;&lt;span style=&quot;color: #ffffff&quot;&gt;修改成&lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;span style=&quot;color: #ffffff&quot;&gt;--&amp;gt; chroot_list_enable=YES&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #ffffff&quot;&gt;96&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial&quot;&gt;&lt;span style=&quot;color: #ffffff&quot;&gt;行 &lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;#&lt;/span&gt;&lt;span style=&quot;color: #ffffff&quot;&gt;chroot_list_file=/etc/vsftpd/chroot_list &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; color: #ffffff&quot;&gt;修改成&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;--&amp;gt; chroot_list_file=/etc/vsftpd/chroot_list&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;#&lt;/span&gt;在檔案最後面加入下面這一行
&lt;/p&gt;
&lt;div style=&quot;margin-left: 40px; color: #ffffff&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;span style=&quot;background-color: #000000&quot;&gt;chroot_local_user=YES&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;p style=&quot;color: #ffffff&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt; &lt;/span&gt; 
&lt;/p&gt;
&lt;p style=&quot;margin-left: 40px&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;echo &#039;&lt;span style=&quot;color: #ff0000&quot;&gt;sysadm&lt;/span&gt;&#039; &amp;gt;&amp;gt; /etc/vsftpd/chroot_list &lt;/span&gt; 
&lt;/p&gt;
&lt;div style=&quot;margin-left: 40px&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;/etc/rc.d/init.d/vsftpd start&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;chkconfig vsftpd on &lt;/span&gt;
&lt;/div&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;touch /home/sysadm/ftptest.txt &lt;/span&gt; 
&lt;/p&gt;
&lt;p&gt;
測試：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;lftp -u &lt;span style=&quot;color: #ff0000&quot;&gt;sysadm&lt;/span&gt; &lt;span style=&quot;color: #ff0000&quot;&gt;IP&lt;/span&gt;&lt;/span&gt;（或 &lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;lftp &lt;span style=&quot;color: #ff0000&quot;&gt;sysadm&lt;/span&gt;@&lt;span style=&quot;color: #ff0000&quot;&gt;IP&lt;/span&gt;&lt;/span&gt;） 
&lt;/p&gt;
&lt;p&gt;
限制每個 &lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;IP &lt;/span&gt;最大連線數量：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;max_per_ip=&lt;span style=&quot;color: #ff0000&quot;&gt;5&lt;/span&gt;
&lt;br /&gt;
&lt;/span&gt;限制傳輸速率：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;local_max_rate=&lt;span style=&quot;color: #ff0000&quot;&gt;30000&lt;/span&gt;&lt;/span&gt;（&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;30000 &lt;/span&gt;表 &lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;30KB&lt;/span&gt;）
&lt;/p&gt;
&lt;p&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;lftp &lt;/span&gt;介紹：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;get&lt;/span&gt;、&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;mget&lt;/span&gt;、&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;put&lt;/span&gt;、&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;mput&lt;/span&gt;、&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;mirror&lt;/span&gt;、&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;exit bg&lt;/span&gt;、&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;!&amp;lt;shell-command&amp;gt;
&lt;br /&gt;
vsftpd &lt;/span&gt;官方文件：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;a href=&quot;http://vsftpd.beasts.org/vsftpd_conf.html&quot;&gt;http://vsftpd.beasts.org/vsftpd_conf.html&lt;/a&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;h2 class=&quot;cjk&quot; lang=&quot;zh-TW&quot;&gt;&lt;a name=&quot;upload_web&quot; title=&quot;upload_web&quot;&gt;&lt;/a&gt;如何上傳網頁到 &lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;/var/www/html&lt;/span&gt;
&lt;/h2&gt; 
&lt;p&gt;
底下使用 &lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;link &lt;/span&gt;的方式將 &lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;/var/www/html &lt;/span&gt;資料夾連結到 &lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;/home/&lt;span style=&quot;color: #ff0000&quot;&gt;sysadm&lt;/span&gt;/web&lt;/span&gt;，這樣我們就可以用 &lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;sysadm&lt;/span&gt; &lt;/span&gt;帳號上傳網頁了 
&lt;/p&gt;
&lt;div style=&quot;margin-left: 40px&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;chmod 755 /home/&lt;span style=&quot;color: #ff0000&quot;&gt;sysadm&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;mkdir /home/&lt;span style=&quot;color: #ff0000&quot;&gt;sysadm&lt;/span&gt;/web&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;chown &lt;span style=&quot;color: #ff0000&quot;&gt;sysadm.sysadm&lt;/span&gt; /home/&lt;span style=&quot;color: #ff0000&quot;&gt;sysadm&lt;/span&gt;/web&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;cp -rpf /var/www/html/* /home/&lt;span style=&quot;color: #ff0000&quot;&gt;sysadm&lt;/span&gt;/web/&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;mv /var/www/html /var/www/html.bak&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;ln -s /home/&lt;span style=&quot;color: #ff0000&quot;&gt;sysadm&lt;/span&gt;/web /var/www/html &lt;/span&gt;
&lt;/div&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
察看檔案系統磁碟空間使用狀況：df -h
&lt;br /&gt;
&lt;p&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;chown &lt;/span&gt;介紹
&lt;/p&gt;
&lt;h2 class=&quot;cjk&quot; lang=&quot;zh-TW&quot;&gt;&lt;a name=&quot;filezilla&quot; title=&quot;filezilla&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;FileZilla&lt;/span&gt;（&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;Microsoft Windows &lt;/span&gt;下好用的 &lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;ftp &lt;/span&gt;自由軟體）
&lt;/h2&gt; 
&lt;p&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;FileZilla &lt;/span&gt;官方網站：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;a href=&quot;http://filezilla.sourceforge.net/&quot;&gt;http://filezilla.sourceforge.net/&lt;/a&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
下載：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;a href=&quot;http://nchc.dl.sourceforge.net/sourceforge/filezilla/FileZilla_2_2_22_setup.exe&quot;&gt;http://nchc.dl.sourceforge.net/sourceforge/filezilla/FileZilla_2_2_22_setup.exe&lt;/a&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;span style=&quot;color: #ff0000&quot;&gt;注意&lt;/span&gt;：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;FileZilla &lt;/span&gt;的傳輸過程預設是沒有加密的，有安全性的風險，您可以在「伺服器型態」的地方勾選「&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;strong&gt;SFTP &lt;/strong&gt;&lt;/span&gt;&lt;strong&gt;使用 &lt;/strong&gt;&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;strong&gt;SSH2&lt;/strong&gt;&lt;/span&gt;」，為傳輸過程加密（&lt;a href=&quot;http://apt.nc.hcc.edu.tw/web/student_server_FC5/img/FileZilla.png&quot;&gt;圖&lt;/a&gt;） 
&lt;/p&gt;
&lt;p&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;scp&lt;/span&gt;、&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;sftp &lt;/span&gt;介紹&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;
&lt;br /&gt;
FileZilla &lt;/span&gt;官方文件：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;a href=&quot;http://filezilla.sourceforge.net/documentation/&quot;&gt;http://filezilla.sourceforge.net/documentation/&lt;/a&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;h2 class=&quot;cjk&quot; lang=&quot;zh-TW&quot;&gt;&lt;a name=&quot;php_mysql&quot; title=&quot;php_mysql&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;PHP &amp;amp; MySQL&lt;/span&gt;
&lt;/h2&gt; 
&lt;p&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;PHP&lt;/span&gt;官方網站：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;a href=&quot;http://www.php.net/&quot;&gt;http://www.php.net/&lt;/a&gt;
&lt;br /&gt;
MySQL &lt;/span&gt;官方網站：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;a href=&quot;http://www.mysql.com/&quot;&gt;http://www.mysql.com/&lt;/a&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-left: 40px&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;yum -y install php mysql mysql-server php-mysql php-gd php-mbstring
&lt;br /&gt;
cp /etc/php.ini /etc/php.ini.bak
&lt;br /&gt;
vi /etc/php.ini&lt;/span&gt;
&lt;/p&gt;
&lt;p style=&quot;color: #ffffff; margin-left: 40px&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial&quot;&gt;302&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial&quot;&gt;行 &lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;max_execution_time = &lt;span style=&quot;color: #ff0000&quot;&gt;300&lt;/span&gt;
&lt;br /&gt;
303&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial&quot;&gt;行 &lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;max_input_time = &lt;span style=&quot;color: #ff0000&quot;&gt;600&lt;/span&gt;
&lt;br /&gt;
304&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial&quot;&gt;行 &lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;memory_limit = &lt;span style=&quot;color: #ff0000&quot;&gt;80M&lt;/span&gt;
&lt;br /&gt;
467&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial&quot;&gt;行 &lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;post_max_size = &lt;span style=&quot;color: #ff0000&quot;&gt;80M&lt;/span&gt;
&lt;br /&gt;
572&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial&quot;&gt;行 &lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;upload_max_filesize = &lt;span style=&quot;color: #ff0000&quot;&gt;20M&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p style=&quot;color: #ffffff; margin-left: 40px&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial&quot;&gt;#&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial&quot;&gt;上面設定值，請視自己需求修改&lt;/span&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-left: 40px&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;vi /etc/httpd/conf.d/php.conf&lt;/span&gt;
&lt;/p&gt;
&lt;p style=&quot;color: #ffffff; margin-left: 40px&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial&quot;&gt;18&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial&quot;&gt;行 &lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;DirectoryIndex index.php &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial&quot;&gt;修改成&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;--&amp;gt;&lt;span style=&quot;color: #ff0000&quot;&gt; #&lt;/span&gt;DirectoryIndex index.php&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-left: 40px&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;/etc/rc.d/init.d/httpd restart&lt;/span&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-left: 40px&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;vi /var/www/html/phpinfo.php&lt;/span&gt;
&lt;/p&gt;
&lt;p style=&quot;color: #ffffff; margin-left: 40px&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial&quot;&gt;&amp;lt;?
&lt;br /&gt;
phpinfo();
&lt;br /&gt;
?&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
測試：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;以瀏覽器瀏覽 http://&lt;span style=&quot;color: #ff0000&quot;&gt;IP&lt;/span&gt;/phpinfo.php&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;啟動 &lt;/strong&gt;&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;strong&gt;MySQL&lt;/strong&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-left: 40px&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;/etc/rc.d/init.d/mysqld start
&lt;br /&gt;
chkconfig mysqld on&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
註：在這裡我們先不設定 &lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;MySQL &lt;/span&gt;的 &lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;root &lt;/span&gt;密碼，等裝了下面的 &lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;phpMyAdmin &lt;/span&gt;之後，再使用 &lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;phpMyAdmin &lt;/span&gt;修改 
&lt;/p&gt;
&lt;p&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;strong&gt;MySQL&lt;/strong&gt;&lt;/span&gt;&lt;strong&gt;的 &lt;/strong&gt;&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;strong&gt;root &lt;/strong&gt;&lt;/span&gt;&lt;strong&gt;密碼忘了怎麼辦？&lt;/strong&gt;
&lt;/p&gt;
&lt;blockquote&gt;
	&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;/etc/rc.d/init.d/mysqld stop
	&lt;br /&gt;
	/usr/bin/mysqld_safe --skip-grant-tables &amp;amp;
	&lt;br /&gt;
	mysql -u root -p mysql&lt;/span&gt;
&lt;/blockquote&gt;
&lt;p style=&quot;margin-left: 1cm; margin-right: 1cm; color: #ffffff&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial&quot;&gt;update user set password=password(&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial&quot;&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;新密碼&lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&amp;quot;) where user=&amp;quot;root&amp;quot; and host=&amp;quot;localhost&amp;quot;;
&lt;br /&gt;
flush privileges;
&lt;br /&gt;
quit&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;blockquote&gt;
	&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;/etc/rc.d/init.d/mysqld stop
	&lt;br /&gt;
	/etc/rc.d/init.d/mysqld start&lt;/span&gt;
&lt;/blockquote&gt;
&lt;p&gt;
&lt;strong&gt;如何重新安裝 &lt;/strong&gt;&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;strong&gt;MySQL&lt;/strong&gt;&lt;/span&gt;&lt;strong&gt;？&lt;/strong&gt;
&lt;/p&gt;
&lt;blockquote&gt;
	&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;/etc/rc.d/init.d/mysqld stop
	&lt;br /&gt;
	yum -y remove mysql
	&lt;br /&gt;
	rm -rf /var/lib/mysql
	&lt;br /&gt;
	yum -y install php mysql mysql-server php-mysql php-gd
	&lt;br /&gt;
	/etc/rc.d/init.d/mysqld start&lt;/span&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
	設定密碼：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;mysqladmin -u root password &#039;&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;密碼&lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&#039;&lt;/span&gt;
&lt;/blockquote&gt;
&lt;p&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;PHP &lt;/span&gt;官方文件：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;a href=&quot;http://www.php.net/docs.php&quot;&gt;http://www.php.net/docs.php&lt;/a&gt;
&lt;br /&gt;
MySQL &lt;/span&gt;官方文件：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;a href=&quot;http://dev.mysql.com/doc/&quot;&gt;http://dev.mysql.com/doc/&lt;/a&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;h2 class=&quot;cjk&quot;&gt;&lt;a name=&quot;phpmyadmin&quot; title=&quot;phpmyadmin&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;phpMyAdmin&lt;/span&gt;
&lt;/h2&gt; 
&lt;p&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;phpMyAdmin &lt;/span&gt;官方網站：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;a href=&quot;http://www.phpmyadmin.net/&quot;&gt;http://www.phpmyadmin.net/&lt;/a&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-left: 40px&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;cd
&lt;br /&gt;
wget &lt;a href=&quot;http://nchc.dl.sourceforge.net/sourceforge/phpmyadmin/phpMyAdmin-2.8.2.1.tar.gz&quot;&gt;http://nchc.dl.sourceforge.net/sourceforge/phpmyadmin/phpMyAdmin-2.8.2.1.tar.gz&lt;/a&gt;&lt;a href=&quot;http://nchc.dl.sourceforge.net/sourceforge/phpmyadmin/phpMyAdmin-2.8.0.3.tar.gz&quot; target=&quot;_self&quot;&gt;
&lt;br /&gt;
&lt;/a&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-left: 40px&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;tar zxvf phpMyAdmin-2.8.2.1.tar.gz
&lt;br /&gt;
rm -rf phpMyAdmin-2.8.2.1.tar.gz
&lt;br /&gt;
mv phpMyAdmin-2.8.2.1.tar.gz /var/www/html/phpMyAdmin
&lt;br /&gt;
cp /var/www/html/phpMyAdmin/libraries/config.default.php /var/www/html/phpMyAdmin/config.inc.php
&lt;br /&gt;
vi /var/www/html/phpMyAdmin/config.inc.php&lt;/span&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-left: 40px&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman,serif; color: #ffffff&quot;&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial&quot;&gt;31 &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; color: #ffffff&quot;&gt;行 &lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;$cfg[&#039;PmaAbsoluteUri&#039;] = &#039;&#039;; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial&quot;&gt;&lt;span style=&quot;color: #ffffff&quot;&gt;修改成&lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;span style=&quot;color: #ffffff&quot;&gt;--&amp;gt; $cfg[&#039;PmaAbsoluteUri&#039;] = &#039;&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;http://IP/phpMyAdmin/&lt;/span&gt;&lt;span style=&quot;color: #ffffff&quot;&gt;&#039;;&lt;/span&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #ffffff&quot;&gt;71 &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial&quot;&gt;&lt;span style=&quot;color: #ffffff&quot;&gt;行 &lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;span style=&quot;color: #ffffff&quot;&gt;$cfg[&#039;Servers&#039;][$i][&#039;auth_type&#039;] = &#039;&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;config&lt;/span&gt;&lt;span style=&quot;color: #ffffff&quot;&gt;&#039;; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial&quot;&gt;&lt;span style=&quot;color: #ffffff&quot;&gt;修改成&lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;span style=&quot;color: #ffffff&quot;&gt;--&amp;gt; $cfg[&#039;Servers&#039;][$i][&#039;auth_type&#039;] = &#039;&lt;/span&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;http&lt;/span&gt;&lt;span style=&quot;color: #ffffff&quot;&gt;&#039;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
測試：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;http://&lt;span style=&quot;color: #ff0000&quot;&gt;IP&lt;/span&gt;/phpMyAdmin/&lt;/span&gt;，帳號 &lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;root&lt;/span&gt;，密碼空白
&lt;/p&gt;
&lt;p&gt;
點選「權限」，然後點選「&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;root localhost&lt;/span&gt;」這行後面的「編輯權限」圖示，更改密碼
&lt;/p&gt;
&lt;p&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;phpMyAdmin-2.8.2.1.tar.gz Documentation&lt;/span&gt;：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;http://&lt;span style=&quot;color: #ff0000&quot;&gt;IP&lt;/span&gt;/phpMyAdmin/Documentation.html
&lt;br /&gt;
phpMyAdmin &lt;/span&gt;官方文件：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;a href=&quot;http://www.phpmyadmin.net/home_page/docs.php&quot;&gt;http://www.phpmyadmin.net/home_page/docs.php&lt;/a&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p lang=&quot;zh-TW&quot;&gt;
&lt;span style=&quot;font-family: MingLiU&quot;&gt;&lt;span style=&quot;font-size: large&quot;&gt;&lt;strong&gt;設定接收系統報表郵件&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p lang=&quot;zh-TW&quot; style=&quot;margin-left: 40px&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;vi /etc/aliases&lt;/span&gt;
&lt;/p&gt;
&lt;p lang=&quot;zh-TW&quot; style=&quot;color: #ffffff; margin-left: 40px&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial&quot;&gt;96 &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial&quot;&gt;行 &lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;#&lt;/span&gt;root: marc &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial&quot;&gt;修改成&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;--&amp;gt; root: &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial&quot;&gt;你的&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;Email&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial&quot;&gt;位址&lt;/span&gt;
&lt;/p&gt;
&lt;p lang=&quot;zh-TW&quot; style=&quot;margin-left: 40px&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;newaliases&lt;/span&gt;
&lt;/p&gt;
&lt;h2 class=&quot;cjk&quot; lang=&quot;zh-TW&quot;&gt;&lt;a name=&quot;cron&quot; title=&quot;cron&quot;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;cron&lt;/span&gt;
&lt;/h2&gt; 
&lt;p&gt;
&lt;strong&gt;校時：&lt;/strong&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-left: 40px&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;yum -y install ntp
&lt;br /&gt;
ntpdate watch.stdtime.gov.tw &amp;amp;&amp;amp; clock -w&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
時間與頻率國家標準實驗室：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;a href=&quot;http://www.stdtime.gov.tw/chinese/home.htm&quot;&gt;http://www.stdtime.gov.tw/chinese/home.htm&lt;/a&gt;
&lt;br /&gt;
NTP &lt;/span&gt;校時軟體（&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;for Windows&lt;/span&gt;）：&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;a href=&quot;http://www.stdtime.gov.tw/chinese/EXE/NTPClock.exe&quot;&gt;http://www.stdtime.gov.tw/chinese/EXE/NTPClock.exe&lt;/a&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p style=&quot;margin-left: 40px&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;vi /etc/crontab&lt;/span&gt;
&lt;/p&gt;
&lt;p style=&quot;color: #ffffff; margin-left: 40px&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial&quot;&gt;0 0-23 * * * root /usr/sbin/ntpdate watch.stdtime.gov.tw &amp;gt; /dev/null 2&amp;gt;&amp;amp;1
&lt;br /&gt;
#&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial&quot;&gt;每個小時校時一次&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;
&lt;br /&gt;
&lt;/span&gt;
&lt;br /&gt;
0 6 * * 0 root /bin/sync;/bin/sync;/bin/sync;/sbin/shutdown -r now &amp;gt; /dev/null 2&amp;gt;&amp;amp;1
&lt;br /&gt;
#&lt;/span&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial&quot;&gt;每星期天早上六點電腦重新開機&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;
&lt;br /&gt;
#&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial&quot;&gt;以上設定僅供參考，請視自己狀況設定&lt;/span&gt;
&lt;/p&gt;
&lt;p lang=&quot;zh-TW&quot;&gt;
&lt;a name=&quot;clamav&quot; title=&quot;clamav&quot;&gt;&lt;/a&gt;&lt;strong&gt;安裝 &lt;/strong&gt;&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;strong&gt;ClamAV&lt;/strong&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;blockquote&gt;
	&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;cd
	&lt;br /&gt;
	wget &lt;a href=&quot;http://crash.fce.vutbr.cz/petr.kristof-gpg-key&quot;&gt;http://crash.fce.vutbr.cz/Petr.Kristof-GPG-KEY&lt;/a&gt;
	&lt;br /&gt;
	rpm --import Petr.Kristof-GPG-KEY
	&lt;br /&gt;
	mv Petr.Kristof-GPG-KEY /etc/pki/rpm-gpg/
	&lt;br /&gt;
	chown root:root /etc/pki/rpm-gpg/Petr.Kristof-GPG-KEY
	&lt;br /&gt;
	chmod 0644 /etc/pki/rpm-gpg/Petr.Kristof-GPG-KEY&lt;/span&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
	&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;wget &lt;a href=&quot;http://crash.fce.vutbr.cz/crash-hat.repo&quot;&gt;http://crash.fce.vutbr.cz/crash-hat.repo&lt;/a&gt;
	&lt;br /&gt;
	mv crash-hat.repo /etc/yum.repos.d/
	&lt;br /&gt;
	chown root:root /etc/yum.repos.d/crash-hat.repo
	&lt;br /&gt;
	chmod 0644 /etc/yum.repos.d/crash-hat.repo&lt;/span&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
	&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;yum -y install clamav clamav-server&lt;/span&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
	&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;cp /etc/clamd.conf /etc/clamd.conf.bak
	&lt;br /&gt;
	vi /etc/clamd.conf&lt;/span&gt;
&lt;/blockquote&gt;
&lt;p style=&quot;margin-left: 1cm; margin-right: 1cm&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman,serif; color: #ffffff&quot;&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial&quot;&gt;72&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background: #000000 none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; color: #ffffff&quot;&gt;行 &lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;&lt;span style=&quot;color: #ff0000&quot;&gt;#&lt;/span&gt;LocalSocket /var/run/clamav/clamd.sock &lt;/span&gt;修改成&lt;span style=&quot;font-family: Times New Roman,serif&quot;&gt;--&amp;amp;&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;</dc:description>
      
    <dc:subject>架站雜記</dc:subject>
     
    
  <dc:date>2008-07-17T15:23:52Z</dc:date>
    <dc:creator>plrts</dc:creator>
 </item>
 </rdf:RDF>