<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[MaruMagi部落格之拷貝經驗]]></title> 
<link>http://maru.gates.tw/index.php</link> 
<description><![CDATA[別人耶經驗,著是我耶成功啦!!]]></description> 
<language>zh-tw</language> 
<copyright><![CDATA[MaruMagi部落格之拷貝經驗]]></copyright>
<item>
<link>http://maru.gates.tw/read.php/256.htm</link>
<title><![CDATA[Apache Server log 肥大的問題]]></title> 
<author>zuyan &lt;zuyan_chang@yahoo.com.tw&gt;</author>
<category><![CDATA[伺服器軟體]]></category>
<pubDate>Fri, 26 Nov 2010 09:24:36 +0000</pubDate> 
<guid>http://maru.gates.tw/read.php/256.htm</guid> 
<description>
<![CDATA[ 
	由於Apache 流量漸漸增加而，Log檔一直增大，到時會很難處理<br/>必需要解決這個問題，查了一下資料 可以使用 apache 內建的一支程式處理<br/>rotatelogs<br/><br/><br/>我希望的存檔方式是每10MB即存成另一個檔案<br/>記錄的方式為 主機名+日期 範例如下<br/><br/><div class="code">&lt;VirtualHost *:80&gt;<br/>&nbsp;&nbsp; ......<br/>&nbsp;&nbsp;&nbsp;&nbsp;ErrorLog &quot;logs/maru.gates.tw.log&quot;<br/>&nbsp;&nbsp;&nbsp;&nbsp;#原來的設定方式<br/>&nbsp;&nbsp;&nbsp;&nbsp;#CustomLog &quot;logs/maru.gates.tw.log&quot; common&nbsp;&nbsp;<br/>&nbsp;&nbsp; #修改後的方式<br/>&nbsp;&nbsp;&nbsp;&nbsp;CustomLog &quot;&#124;D:/AppServ/Apache2.2/bin/rotatelogs D:/AppServ/Apache2.2/logs/maru.gates.tw%Y%m%d.log 10M&quot; common<br/>.......<br/>&lt;/VirtualHost&gt;</div><br/><br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content">◆ Windows下的日誌循環 <br/><br/>　　一般在Linux下的日誌循環可以由系統的 /etc/logrotate.conf 設定，而 Apache 的日誌循環設定檔在 /etc/logrotate.d/httpd 中(以Redhat/Fedora為例)，預設為一星期循環一次。有關系統日誌循環請參考相關教學文章。<br/>　　但是若您的Apache是安裝在Windows的系統中，日誌原則上(預設值)是不會循環的，所以若您一直沒有清除或手動循環log檔，一個檔案上GB大小也是有可能的，若需要去解析它可能要花很久的時間。Apache本身提供了 rotatelogs (在Windows下為 rotatelogs.exe) 這個指令來循環日誌，讓你可以手動執行指令(請參考 rotatelogs 指令教學) ，或是直接在 httpd.conf 中設定，範例如下：<br/><br/>每天循環(一天為86400秒)<br/>CustomLog "&#124;c:/apache2/bin/rotatelogs c:/apache2/logs/access_log 86400" combined<br/>檔案到達5MB就循環<br/>CustomLog "&#124;c:/apache2/bin/rotatelogs c:/apache2/logs/access_log 5M" common<br/> <br/><br/>但這樣設定的話，它所產生的Log檔案名稱格式為 access_log.nnnn，後面的 nnnn 由系統自動產生，例如：access_log.1168300800，但這樣的話比較不容易維護或分析，您可以把它改成這樣：<br/><br/>每天循環(一天為86400秒)<br/>CustomLog "&#124;c:/apache2/bin/rotatelogs c:/apache2/logs/access_log_%Y%m%d 86400" combined <br/><br/>如此產生出來的檔案名稱會像這樣：access_log_20070110<br/><br/>若您想自訂檔案名稱的日期格式，可以參考以下的設定值：<br/><br/>%A - full weekday name (localized)<br/>%a - 3-character weekday name (localized)<br/>%B - full month name (localized)<br/>%b - 3-character month name (localized)<br/>%c - date and time (localized)<br/>%d - 2-digit day of month<br/>%H - 2-digit hour (24 hour clock)<br/>%I - 2-digit hour (12 hour clock)<br/>%j - 3-digit day of year<br/>%M - 2-digit minute<br/>%m - 2-digit month<br/>%p - am/pm of 12 hour clock (localized)<br/>%S - 2-digit second<br/>%U - 2-digit week of year (Sunday first day of week)<br/>%W - 2-digit week of year (Monday first day of week)<br/>%w - 1-digit weekday (Sunday first day of week)<br/>%X - time (localized)<br/>%x - date (localized)<br/>%Y - 4-digit year<br/>%y - 2-digit year<br/>%Z - time zone name<br/>%% - literal `%' <br/><br/>完成以上 設定後，重新啟動 Apache 即可。<br/>*******************************************************************************<br/><br/>使用之前，請先把httpd.conf中，關於access.log的部分，先disable掉。<br/>->CustomLog logs/access.log common<br/>改成<br/>->#CustomLog logs/access.log common<br/>也就是加個 "#" 即可。<br/><br/>依據自己實際測試後，發現上面所舉的例子，對我並不適用<br/>->CustomLog "&#124;c:/apache2/bin/rotatelogs c:/apache2/logs/access_log 86400" combined<br/><br/>我是把它改成如下的方式：<br/><br/>TransferLog "&#124;c:/AppServ/Apache2/bin/rotatelogs.exe c:/AppServ/Apache2/logs/%Y%m%d_access.log 86400"<br/>ErrorLog "&#124;c:/AppServ/Apache2/bin/rotatelogs.exe c:/AppServ/Apache2/logs/%Y%m%d_error.log 86400"<br/><br/>這樣之後，它會自動每天更換一個檔名，來做為記錄檔使用，也不必去清空它的內容，感覺還不錯。</div></div><br/><br/>參考資料<br/><a href="http://forum.lifetype.org.tw/index.php?topic=2010.5;wap2" target="_blank">http://forum.lifetyp...hp?topic=2010.5;wap2</a><br/>Tags - <a href="http://maru.gates.tw/go.php/tags/apache/" rel="tag">apache</a> , <a href="http://maru.gates.tw/go.php/tags/rotatelogs/" rel="tag">rotatelogs</a> , <a href="http://maru.gates.tw/go.php/tags/log/" rel="tag">log</a>
]]>
</description>
</item><item>
<link>http://maru.gates.tw/read.php/222.htm</link>
<title><![CDATA[Exchange 2003出現錯誤訊息 c1030af0]]></title> 
<author>zuyan &lt;zuyan_chang@yahoo.com.tw&gt;</author>
<category><![CDATA[伺服器軟體]]></category>
<pubDate>Thu, 03 Sep 2009 20:41:16 +0000</pubDate> 
<guid>http://maru.gates.tw/read.php/222.htm</guid> 
<description>
<![CDATA[ 
	在Exchange 2003 進入管理界面要管理公用資料夾時出現<br/><br/>HTTP 要求格式無效，因此作業失敗。請驗證此主機標頭對該虛擬伺服器而言是正確的。<br/>識別碼：c1030af0<br/>Exchange 系統管理員<br/><br/>找到的微軟的線上資源<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content">Error ID number: c1030af0 <br/>Error Message <br/><br/>The operation failed due to an invalid format in the HTTP request. Verify that the host header is correct for the virtual server.<br/><br/>Possible Causes <br/><br/>This error can occur if you have multiple IP addresses bound to the network card on the Exchange server and you have the default Web site bound to the secondary IP address. <br/><br/>An invalid host header or IP address has been set for the default Web site <br/><br/>Incorrect IP addresses or host header is set on the cluster virtual server.<br/><br/>Troubleshooting <br/><br/>Try setting the default Web site to All Unassigned and then reopen the ESM and try to expand public folders. <br/><br/>Correct the host header value or remove it completely.</div></div><br/>由於主機上有兩張以上的網路卡,故原來在IIS的網站指定了一組IP給Exchange使用...<br/>故在網站內容中的IP位址設定為全未指定,即可。<br/>Tags - <a href="http://maru.gates.tw/go.php/tags/exchange/" rel="tag">exchange</a> , <a href="http://maru.gates.tw/go.php/tags/iis/" rel="tag">iis</a> , <a href="http://maru.gates.tw/go.php/tags/microsoft/" rel="tag">microsoft</a>
]]>
</description>
</item><item>
<link>http://maru.gates.tw/read.php/188.htm</link>
<title><![CDATA[又一套免費郵件伺服器軟體 MailEnable Standard Edition]]></title> 
<author>zuyan &lt;zuyan_chang@yahoo.com.tw&gt;</author>
<category><![CDATA[伺服器軟體]]></category>
<pubDate>Tue, 16 Sep 2008 01:15:00 +0000</pubDate> 
<guid>http://maru.gates.tw/read.php/188.htm</guid> 
<description>
<![CDATA[ 
	看連結吧!!<br/><a href="http://www.mailenable.com/" target="_blank">http://www.mailenable.com/</a><br/><br/>免費的對象是..個人或社群<br/>商業使用--不行<br/>PS..我沒試用過<br/>Tags - <a href="http://maru.gates.tw/go.php/tags/free%2526amp%253Bfree/" rel="tag">free&amp;free</a> , <a href="http://maru.gates.tw/go.php/tags/server/" rel="tag">server</a> , <a href="http://maru.gates.tw/go.php/tags/%25E6%259E%25B6%25E7%25AB%2599%25E8%25BB%259F%25E9%25AB%2594/" rel="tag">架站軟體</a> , <a href="http://maru.gates.tw/go.php/tags/%25E9%2583%25B5%25E4%25BB%25B6%25E4%25BC%25BA%25E6%259C%258D%25E5%2599%25A8/" rel="tag">郵件伺服器</a> , <a href="http://maru.gates.tw/go.php/tags/%25E4%25BC%25BA%25E6%259C%258D%25E5%2599%25A8/" rel="tag">伺服器</a>
]]>
</description>
</item><item>
<link>http://maru.gates.tw/read.php/128.htm</link>
<title><![CDATA[Argosoft Mail Server Pro 多Domain 網頁管理設定方式]]></title> 
<author>zuyan &lt;zuyan_chang@yahoo.com.tw&gt;</author>
<category><![CDATA[伺服器軟體]]></category>
<pubDate>Thu, 17 Apr 2008 09:25:14 +0000</pubDate> 
<guid>http://maru.gates.tw/read.php/128.htm</guid> 
<description>
<![CDATA[ 
	由於我們的客戶需要管理自己的網域郵件<br/>可是....我設了老半天怎麼設不太出來正確的設定方式如下<br/>1.郵件伺服器必需設定管理者administrator的密碼 <br/>2.要開放網頁管理的密碼不可以與系統管理的密碼一樣<br/>不然在網域信箱管理登入之後會直接進入系統管理的的頁面<br/>這個問題應該算是一個bug吧 ,我用 1.8.8.7 ~ 1.8.9.5 都會有這樣的問題<br/><br/>設定的時間又花了我 2hrs..<br/>Tags - <a href="http://maru.gates.tw/go.php/tags/%25E8%25BB%259F%25E9%25AB%2594/" rel="tag">軟體</a> , <a href="http://maru.gates.tw/go.php/tags/server/" rel="tag">server</a>
]]>
</description>
</item><item>
<link>http://maru.gates.tw/read.php/127.htm</link>
<title><![CDATA[VMWare Server在Windows 2000上無法啟動的問題]]></title> 
<author>zuyan &lt;zuyan_chang@yahoo.com.tw&gt;</author>
<category><![CDATA[伺服器軟體]]></category>
<pubDate>Sun, 13 Apr 2008 23:58:05 +0000</pubDate> 
<guid>http://maru.gates.tw/read.php/127.htm</guid> 
<description>
<![CDATA[ 
	幫一個客戶安裝 Windows 2000 server 和 VMWare Server 1.0.5時出現的錯誤訊息<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content">Windows 2000 事件訊息<br/>與 VMware Registration Service 服務相依的 VMware Authorization Service 服務因下列錯誤而無法啟動:<br/>啟動之後，服務停留在啟動暫停狀態。</div></div><br/>機碼檔<br/><div class="code">Windows Registry Editor Version 5.00<br/><br/>&#91;HKEY_LOCAL_MACHINE&#92;SYSTEM&#92;CurrentControlSet&#92;Services&#92;VMAuthdService&#93;<br/>&quot;DependOnService&quot;=hex(7):76,00,6d,00,78,00,38,00,36,00,00,00,77,00,6d,00,69,00,00,00,00,00<br/></div><br/><a href="attachment.php?fid=4">點擊這裡下載檔案</a><br/><br/>Tags - <a href="http://maru.gates.tw/go.php/tags/%25E8%25BB%259F%25E9%25AB%2594/" rel="tag">軟體</a> , <a href="http://maru.gates.tw/go.php/tags/free%2526amp%253Bfree/" rel="tag">free&amp;free</a>
]]>
</description>
</item><item>
<link>http://maru.gates.tw/read.php/92.htm</link>
<title><![CDATA[hmailserver繁體中文語系檔]]></title> 
<author>zuyan &lt;zuyan_chang@yahoo.com.tw&gt;</author>
<category><![CDATA[伺服器軟體]]></category>
<pubDate>Fri, 13 Jul 2007 10:17:33 +0000</pubDate> 
<guid>http://maru.gates.tw/read.php/92.htm</guid> 
<description>
<![CDATA[ 
	看了其他的版本...只能說慘不忍睹,都是大陸用語.<br/>所以改了裡面的用語符合台灣地區的用語<br/>裡面還有一些改的不是很好的地方.請修改&告知一下,以便更新<br/>將這個chinese.ini 的檔放到 hMailServer安裝路徑中 Languages 這個資料夾覆蓋原來的chinese.ini<br/>適合的版本 4.4版<br/><a href="attachment/200707/1184321589_0.zip">點擊這裡下載檔案</a><br/>Tags - <a href="http://maru.gates.tw/go.php/tags/%25E8%25BB%259F%25E9%25AB%2594/" rel="tag">軟體</a> , <a href="http://maru.gates.tw/go.php/tags/free%2526amp%253Bfree/" rel="tag">free&amp;free</a>
]]>
</description>
</item><item>
<link>http://maru.gates.tw/read.php/46.htm</link>
<title><![CDATA[TWNIC 所提供的DNS教學]]></title> 
<author>zuyan &lt;zuyan_chang@yahoo.com.tw&gt;</author>
<category><![CDATA[伺服器軟體]]></category>
<pubDate>Mon, 05 Feb 2007 02:56:07 +0000</pubDate> 
<guid>http://maru.gates.tw/read.php/46.htm</guid> 
<description>
<![CDATA[ 
	TWNIC 台灣網路資訊中心所提供的網路，DNS教學<br/><a href="http://dns-learning.twnic.net.tw/" target="_blank">http://dns-learning.twnic.net.tw/</a><br/>Tags - <a href="http://maru.gates.tw/go.php/tags/%25E7%25B6%25B2%25E8%25B7%25AF%25E6%258A%2580%25E8%25A1%2593/" rel="tag">網路技術</a>
]]>
</description>
</item><item>
<link>http://maru.gates.tw/read.php/25.htm</link>
<title><![CDATA[XMAIL 郵件伺服器架設]]></title> 
<author>zuyan &lt;zuyan_chang@yahoo.com.tw&gt;</author>
<category><![CDATA[伺服器軟體]]></category>
<pubDate>Wed, 17 Jan 2007 15:57:44 +0000</pubDate> 
<guid>http://maru.gates.tw/read.php/25.htm</guid> 
<description>
<![CDATA[ 
	=======================&nbsp;&nbsp;轉貼 ====================<br/>近日研究xmail郵件服務器心得&nbsp;&nbsp;<br/>作者: myubuntu&nbsp;&nbsp; 發表日期: 2006-01-13 00:39&nbsp;&nbsp;&nbsp;&nbsp;<br/><br/>xmail郵件服務器安裝配置方法（針對win系統，主要是客戶需要win的系統）<br/>1.下載xmailserver<br/>登入訪<a href="http://www.xmailserver.org/" target="_blank">http://www.xmailserver.org/</a> （xmail的官方網站）下載xmail<br/>最新的版本是：<br/><br/>XMail Version 1.22<br/>主要有linux和win的平台的各種版本<br/><br/>Linux/FreeBSD/OpenBSD/Solaris/OSX/NetBSD<br/>Linux RPM<br/>Linux SRPM<br/>NT/2k/XP Sources<br/>NT/2k/XP Binaries<br/>選擇win下的Binaries的下載最新的軟件包。<br/>2.將下載下來的安裝包解壓。<br/>在解壓的目錄<br/><br/>XMail-1.22下有個MailRoot的目錄，將其拷貝到c:&#92;下<br/>然後將xmail-1.22目錄下的所有.exe可執行文件拷貝到c:&#92;MailRoot&#92;bin下<br/>3.修改註冊表<br/>在'HKEY_LOCAL_MACHINE&#92;SOFTWARE&#92;'下創建'GNU'項，<br/>再在'HKEY_LOCAL_MACHINE&#92;SOFTWARE&#92;GNU'下創建' XMail'項。<br/>在'HKEY_LOCAL_MACHINE&#92;SOFTWARE&#92;GNU&#92;XMail&#92;'下創建字符串名稱：' MAIL_ROOT' 值是：'C:&#92;MailRoot'（就是剛才安裝的目錄）<br/><br/>4.打開dos窗口，進入C:&#92;MailRoot&#92;bin目錄之執行XMail --install-auto,安裝為系統服務，自動啟動，<br/>&nbsp;&nbsp; 用telnet localhost 25<br/><br/>5.telnet localhost 100來測試郵件服務器有沒有配置好。<br/><br/>6.添加一個root用戶，現用xmcrypt生成一個密碼（加密的）<br/>xmcrypt admin 得到密碼：0401080c0b .<br/>修改c:&#92;MailRoot&#92;ctrlaccounts.tab增加用戶<br/>"admin" [tab鍵] "0401080c0b"<br/>就可以用該用戶名和密碼來創建用戶郵箱了<br/><br/>7.修改：SERVER.TAB<br/><br/>SERVER.TAB 是服務器的全局配置選項。用我的域名green.org來作一個例子，修改以下內容：<br/><br/>RootDomain to "green.org"<br/>SmtpServerDomain to "mail.green.org"<br/>POP3Domain to "mail.green.org"<br/>HeloDomain to "mail.green.org"<br/>PostMaster to "postmaster@green.org"<br/>ErrorsAdmin to "postmaster@green.org" <br/><br/>7.添加域名：<br/>ctrlclnt -s <server ip> -u <username> -p <pass> <commands><br/><br/>執行 <br/>ctrlclnt -s localhost -u admin -p admin domainlist<br/>"xmailserver.test"<br/>列出已經添加的域名。<br/><br/>執行 <br/>ctrlclnt -s localhost -u admin -p admin domaindel "xmailserver.test"<br/>刪除該域名<br/><br/>執行<br/>ctrlclnt -s localhost -u catfish -p testpassword userlist<br/>"xmailserver.test" "xmailuser" "xmail" "U"<br/>列出已經存在的用戶。<br/><br/>執行<br/>ctrlclnt -s localhost -u catfish -p testpassword aliaslist<br/>"xmailserver.test" "root" "xmailuser"<br/>"xmailserver.test" "postmaster" "xmailuser"<br/><br/>列出用戶別名<br/><br/>執行<br/>ctrlclnt -s localhost -u admin -p admin domainadd green.org<br/>就添加了一個green.org的域名<br/><br/>執行<br/>ctrlclnt -s localhost -u admin -p admin useradd green.org username password U<br/>添加一個username用戶，密碼是password到該green.org域名<br/><br/>添加好就可以在outlook的客戶端測試了。<br/><br/><hr/><br/>------------ 站長補充 --------------------<br/>由於開發小組沒有開發管理界面<br/>在官方網站上有許多網友自行開發的GUI界面，可以自行下載<br/><br/>資料來源 <a href="http://blog.lupaworld.com/article/htm/tid_253.html" target="_blank">http://blog.lupaworl...cle/htm/tid_253.html</a><br/> <br/><br/>Tags - <a href="http://maru.gates.tw/go.php/tags/%25E7%25B6%25B2%25E8%25B7%25AF%25E6%258A%2580%25E8%25A1%2593/" rel="tag">網路技術</a>
]]>
</description>
</item>
</channel>
</rss>