查看完整版本: [轉貼]VMware esxi 備份ghettoVCB.sh進階設定說明

chun 2012-6-19 16:19

[轉貼]VMware esxi 備份ghettoVCB.sh進階設定說明

<a href="http://blog.faq-book.com/?p=3993">http://blog.faq-book.com/?p=3993</a>
<div><p style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span style="font-size: 16px; "><b><span style="font-family: 細明體; ">進階設定</span></b></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><b><span lang="EN-US" style="font-family: 細明體; ">1.&nbsp;</span></b><b><span style="font-family: 細明體; ">修改<span lang="EN-US">LOG</span>存放位置<span lang="EN-US"><o:p></o:p></span></span></b></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span style="font-family: 細明體; ">由於<span lang="EN-US">VMware esxi5</span>重開機後會自動還原一些設定,進而刪除掉備份後所產生的<span lang="EN-US">LOG</span>。所以為了避免此問題發生。</span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span style="font-family: 細明體; ">可以手動修改設定讓<span lang="EN-US">LOG</span>存在不會被刪除的地方。<span lang="EN-US"><o:p></o:p></span></span></p><br style="color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" width="595" style="margin: 1em 0px 1em 8.45pt; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; width: 446.55pt; background-color: black; border: none; "><tbody><tr><td width="595" style="width: 446.55pt; border: 1pt inset; "><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">~ # vi ghettoVCB.sh</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "># /LOG_OUTPUT&nbsp;</span></span><span class="apple-style-span"><span style="font-size: 10pt; font-family: 細明體; ">收詢此字串後找到,以下訊息</span></span></span><span class="apple-style-span"><span style="font-size: 10pt; font-family: 細明體; "><span lang="EN-US"><o:p></o:p></span></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">#&nbsp;</span></span><span class="apple-style-span"><span style="font-size: 10pt; font-family: 細明體; ">將黃色字體的部份修改為所要存放的路徑後儲存執行,即可。</span></span></span><span class="apple-style-span"><span style="font-size: 10pt; font-family: 細明體; "><span lang="EN-US"><o:p></o:p></span></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "># (</span></span><span class="apple-style-span"><span style="font-size: 10pt; font-family: 細明體; ">建議存到<span lang="EN-US">/vmfs/volumes/datastore1</span>內或是自行設定的<span lang="EN-US">NFT</span>內<span lang="EN-US">)</span></span></span></span><span class="apple-style-span"><span style="font-size: 10pt; font-family: 細明體; "><span lang="EN-US"><o:p></o:p></span></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">USE_VM_CONF=0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">USE_GLOBAL_CONF=0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">BACKUP_ALL_VMS=0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">EXCLUDE_SOME_VMS=0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">EMAIL_LOG_HEADER=</span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">/<span style="color: rgb(255, 255, 0); ">tmp</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">/ghettoVCB-email$$.header &nbsp; &nbsp; &nbsp;&nbsp;</span></span><span style="font-family: 細明體; font-size: 10pt; color: rgb(255, 255, 255); background-color: black; ">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">EMAIL_LOG_OUTPUT=</span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">/<span style="color: rgb(255, 255, 0); ">tmp</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">/ghettoVCB-email-$$.log&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span><span lang="EN-US" style="font-family: 細明體; color: white; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">EMAIL_LOG_CONTENT=</span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">/<span style="color: rgb(255, 255, 0); ">tmp</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">/ghettoVCB-email-$$.content</span></span><span lang="EN-US" style="font-family: 細明體; color: white; "><o:p></o:p></span></p></td></tr></tbody></table><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">&nbsp;</span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">&nbsp;</span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><b><span lang="EN-US" style="font-family: 細明體; ">2.&nbsp;</span></b><b><span style="font-family: 細明體; ">設定<span lang="EN-US">NFS<o:p></o:p></span></span></b></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span style="font-family: 細明體; ">在設定<span lang="EN-US">NFS</span>的方式有兩種,請選一種適合的就可以了<span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">2.1&nbsp;</span><span style="font-family: 細明體; ">長久掛載<span lang="EN-US">nfs<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US">[Configuration]</span><span style="font-family: 新細明體, serif; ">→</span><span lang="EN-US" style="font-family: 細明體; ">[Storage]</span><span style="font-family: 新細明體, serif; ">→</span><span lang="EN-US" style="font-family: 細明體; ">[Ass Storage]</span>→<span lang="EN-US" style="font-family: 細明體; ">[Network File System]<o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><font face="細明體"><a href="http://blog.faq-book.com/wp-content/uploads/image/VMware/VMware%20ESXi%20ghettoVCB.sh/10.jpg" style="outline: none; border: none; color: rgb(63, 138, 216); text-decoration: none; "><img alt="" height="445" src="http://blog.faq-book.com/wp-content/uploads/image/VMware/VMware%20ESXi%20ghettoVCB.sh/10.jpg" width="650" style="border: 1px solid rgb(204, 204, 204); padding: 6px; "></a><br></font></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">&nbsp;</span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">&nbsp;</span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">Server:</span><span style="font-family: 細明體; ">請輸入<span lang="EN-US">NFS</span>主機的<span lang="EN-US">IP</span>或是名稱</span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">Folder:</span><span style="font-family: 細明體; ">請輸入<span lang="EN-US">NFS</span>主機所分享資料夾的完整路徑<span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">Datastore Name:</span><span style="font-family: 細明體; ">請輸入在<span lang="EN-US">ESXI</span>上<span lang="EN-US">NFS</span>資料夾的名稱<span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span style="font-family: 細明體; ">然後就一直按<span lang="EN-US">Next</span>就可以完成了<span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><font face="細明體"><a href="http://blog.faq-book.com/wp-content/uploads/image/VMware/VMware%20ESXi%20ghettoVCB.sh/11.jpg" style="outline: none; border: none; color: rgb(63, 138, 216); text-decoration: none; "><img alt="" height="507" src="http://blog.faq-book.com/wp-content/uploads/image/VMware/VMware%20ESXi%20ghettoVCB.sh/11.jpg" width="650" style="border: 1px solid rgb(204, 204, 204); padding: 6px; "></a><br></font></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">&nbsp;<span id="more-3993"></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span style="font-family: 細明體; ">完成後就會看到多出一個<span lang="EN-US">NFS</span>的資料夾<span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><font face="細明體"><a href="http://blog.faq-book.com/wp-content/uploads/image/VMware/VMware%20ESXi%20ghettoVCB.sh/12.jpg" style="outline: none; border: none; color: rgb(63, 138, 216); text-decoration: none; "><img alt="" height="260" src="http://blog.faq-book.com/wp-content/uploads/image/VMware/VMware%20ESXi%20ghettoVCB.sh/12.jpg" width="650" style="border: 1px solid rgb(204, 204, 204); padding: 6px; "></a></font></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); ">&nbsp;</p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">&nbsp;</span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">2.2&nbsp;</span><span style="font-family: 細明體; ">需要才掛載<span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span style="font-family: 細明體; ">以下測定為,當有備份需要使用到<span lang="EN-US">NFS</span>時才會自動掛載上去,一旦備份完成後就會自動卸載,並不會持續的掛載。<span lang="EN-US"><o:p></o:p></span></span></p><br style="color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" width="595" style="margin: 1em 0px 1em 8.45pt; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; width: 446.55pt; background-color: black; border: none; "><tbody><tr><td width="595" style="width: 446.55pt; border: 1pt inset; "><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">~ #&nbsp;</span></span><span style="color: rgb(255, 255, 0); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">vi&nbsp;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">ghettoVCB.sh</span></span><span lang="EN-US" style="font-size: 10pt; color: yellow; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">#</span><span style="font-size: 10pt; font-family: 細明體; ">是否要卸載<span lang="EN-US">NFS(yes=1,no=0)</span></span></span><span lang="EN-US" style="font-family: 細明體; color: white; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">UNMOUNT_NFS=0</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">#NFS Server&nbsp;</span><span style="font-size: 10pt; font-family: 細明體; ">的地址<span lang="EN-US">(ip</span>或主機名<span lang="EN-US">)</span></span></span><span style="font-size: 10pt; font-family: 細明體; "><span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">NFS_SERVER=172.30.0.195</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">#NFS&nbsp;</span><span style="font-size: 10pt; font-family: 細明體; ">存放檔案的路徑</span></span><span style="font-size: 10pt; font-family: 細明體; "><span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">NFS_MOUNT=/nfsshare</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">#NFS&nbsp;</span><span style="font-size: 10pt; font-family: 細明體; ">資料存放地方的名稱</span></span><span style="font-size: 10pt; font-family: 細明體; "><span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">NFS_LOCAL_NAME=nfs_storage_backup</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">#</span><span style="font-size: 10pt; font-family: 細明體; ">虛擬機上<span lang="EN-US">NFS</span>備份的目錄</span></span><span style="font-size: 10pt; font-family: 細明體; color: red; "><span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">NFS_VM_BACKUP_DIR=mybackups</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p></td></tr></tbody></table><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">&nbsp;</span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">&nbsp;</span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><b><span lang="EN-US" style="font-family: 細明體; ">3.</span></b><b><span style="font-family: 細明體; ">設定<span lang="EN-US">MAIL<o:p></o:p></span></span></b></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span style="font-family: 細明體; ">設定<span lang="EN-US">MAIL</span>主要的目是方便管理備份。可不用登入主機就可知道是否有備份完成。<span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">3.1 MAIL</span><span style="font-family: 細明體; ">的設定方式如下<span lang="EN-US"><o:p></o:p></span></span></p><br style="color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" width="595" style="margin: 1em 0px 1em 8.45pt; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; width: 446.55pt; background-color: black; border: none; "><tbody><tr><td width="595" style="width: 446.55pt; border: 1pt inset; "><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">~ # vi ghettoVCB.sh</span></span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">EMAIL_LOG=1</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">EMAIL_DEBUG=1</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">EMAIL_SERVER=auroa.primp-industries.com</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">EMAIL_SERVER_PORT=25</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">EMAIL_DELAY_INTERVAL=1</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">EMAIL_TO=auroa@primp-industries.com</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">EMAIL_FROM=root@ghettoVCB</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p></td></tr></tbody></table><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">&nbsp;</span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">&nbsp;</span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span style="font-family: 細明體; ">如果在設定<span lang="EN-US">MAIL</span>寄送後執行<span lang="EN-US">ghettoVCB.sh</span>,出現已下<span style="color: red; ">錯誤訊息</span>的話,請加入<span lang="EN-US">25port</span>的防火牆設定<span lang="EN-US"><o:p></o:p></span></span></p><br style="color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" width="595" style="margin: 1em 0px 1em 8.45pt; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; width: 446.55pt; background-color: black; border: none; "><tbody><tr><td width="595" style="width: 446.55pt; border: 1pt inset; "><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2012-01-01 19:28:46&nbsp;</span></span>&nbsp;<span class="Apple-style-span" style="line-height: 17px; font-family: 細明體; font-size: 13px; ">-</span><span class="Apple-style-span" style="line-height: 17px; text-align: left; font-family: 細明體; font-size: 13px; ">-</span>&nbsp;<span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;info: ERROR: Please enable firewall rule for email traffic on port 25</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2012-01-01 19:28:46&nbsp;</span></span>&nbsp;<span class="Apple-style-span" style="line-height: 17px; font-family: 細明體; font-size: 13px; ">-</span><span class="Apple-style-span" style="line-height: 17px; text-align: left; font-family: 細明體; font-size: 13px; ">-</span>&nbsp;<span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;info: Please refer to ghettoVCB documentation for ESXi 5 firewall configuration</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2012-01-01 19:30:01&nbsp;</span></span>&nbsp;<span class="Apple-style-span" style="line-height: 17px; font-family: 細明體; font-size: 13px; ">-</span><span class="Apple-style-span" style="line-height: 17px; text-align: left; font-family: 細明體; font-size: 13px; ">-</span>&nbsp;<span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;info: ERROR: Failed to email log output to 10.254.201.5:25 to derek@iwan.com.tw</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">2012-01-01 19:30:01&nbsp;</span></span>&nbsp;<span class="Apple-style-span" style="line-height: 17px; font-family: 細明體; font-size: 13px; ">-</span><span class="Apple-style-span" style="line-height: 17px; text-align: left; font-family: 細明體; font-size: 13px; ">-</span>&nbsp;<span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;info: Email log output will not be deleted and is stored in /tmp/ghettoVCB-email-275</span></span></span><span lang="EN-US" style="font-size: 10pt; color: white; "><o:p></o:p></span></p></td></tr></tbody></table><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">&nbsp;</span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">3.2&nbsp;</span><span style="font-family: 細明體; ">防火牆設定加入<span lang="EN-US">25port</span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">3.2.1</span><span style="font-family: 細明體; ">首先 先確認<span lang="EN-US">ESXI</span>是否有開啟防火牆<span lang="EN-US">25port<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span style="font-family: 細明體; ">確認方式有兩種,請選一種即可。<span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span style="font-family: 細明體; ">方式一<span lang="EN-US">:<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">[Configuration]</span><span style="font-family: 細明體; ">→<span lang="EN-US">[Security Profile]<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><font face="細明體"><a href="http://blog.faq-book.com/wp-content/uploads/image/VMware/VMware%20ESXi%20ghettoVCB.sh/13.jpg" style="outline: none; border: none; color: rgb(63, 138, 216); text-decoration: none; "><img alt="" height="416" src="http://blog.faq-book.com/wp-content/uploads/image/VMware/VMware%20ESXi%20ghettoVCB.sh/13.jpg" width="650" style="border: 1px solid rgb(204, 204, 204); padding: 6px; "></a><br></font></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">&nbsp;</span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">&nbsp;</span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span style="font-family: 細明體; ">方式二<span lang="EN-US">:<o:p></o:p></span></span></p><br style="color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" width="595" style="margin: 1em 0px 1em 8.45pt; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; width: 446.55pt; background-color: black; border: none; "><tbody><tr><td width="595" style="width: 446.55pt; border: 1pt inset; "><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">~ #&nbsp;<span style="color: rgb(255, 255, 0); ">esxcli network firewall ruleset list</span></span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Enabled</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="Apple-style-span" style="line-height: 17px; font-family: 細明體; font-size: 13px; ">-</span><span class="Apple-style-span" style="background-color: black; line-height: 17px; text-align: left; font-family: 細明體; font-size: 13px; ">-</span><span class="Apple-style-span" style="line-height: 17px; font-family: 細明體; font-size: 13px; ">-</span><span class="Apple-style-span" style="background-color: black; line-height: 17px; text-align: left; font-family: 細明體; font-size: 13px; ">-</span><span class="Apple-style-span" style="line-height: 17px; font-family: 細明體; font-size: 13px; ">-</span><span class="Apple-style-span" style="background-color: black; line-height: 17px; text-align: left; font-family: 細明體; font-size: 13px; ">-</span><span class="Apple-style-span" style="line-height: 17px; font-family: 細明體; font-size: 13px; ">-</span><span class="Apple-style-span" style="background-color: black; line-height: 17px; text-align: left; font-family: 細明體; font-size: 13px; ">-</span><span class="Apple-style-span" style="line-height: 17px; font-family: 細明體; font-size: 13px; ">-</span><span class="Apple-style-span" style="background-color: black; line-height: 17px; text-align: left; font-family: 細明體; font-size: 13px; ">-</span><span class="Apple-style-span" style="line-height: 17px; font-family: 細明體; font-size: 13px; ">-</span><span class="Apple-style-span" style="background-color: black; line-height: 17px; text-align: left; font-family: 細明體; font-size: 13px; ">-</span><span class="Apple-style-span" style="line-height: 17px; font-family: 細明體; font-size: 13px; ">-</span><span class="Apple-style-span" style="background-color: black; line-height: 17px; text-align: left; font-family: 細明體; font-size: 13px; ">-</span><span class="Apple-style-span" style="line-height: 17px; font-family: 細明體; font-size: 13px; ">-</span><span class="Apple-style-span" style="background-color: black; line-height: 17px; text-align: left; font-family: 細明體; font-size: 13px; ">-</span><span class="Apple-style-span" style="line-height: 17px; font-family: 細明體; font-size: 13px; ">-</span><span class="Apple-style-span" style="background-color: black; line-height: 17px; text-align: left; font-family: 細明體; font-size: 13px; ">-</span><span style="background-color: black; font-family: 細明體; font-size: 10pt; ">&nbsp;&nbsp;</span><span class="Apple-style-span" style="line-height: 17px; font-family: 細明體; font-size: 13px; ">-</span><span class="Apple-style-span" style="background-color: black; line-height: 17px; text-align: left; font-family: 細明體; font-size: 13px; ">-</span><span class="Apple-style-span" style="line-height: 17px; font-family: 細明體; font-size: 13px; ">-</span><span class="Apple-style-span" style="background-color: black; line-height: 17px; text-align: left; font-family: 細明體; font-size: 13px; ">-</span><span class="Apple-style-span" style="line-height: 17px; font-family: 細明體; font-size: 13px; ">-</span><span class="Apple-style-span" style="background-color: black; line-height: 17px; text-align: left; font-family: 細明體; font-size: 13px; ">-</span><span class="Apple-style-span" style="line-height: 17px; font-family: 細明體; font-size: 13px; ">-</span><span class="Apple-style-span" style="background-color: black; line-height: 17px; text-align: left; font-family: 細明體; font-size: 13px; ">-</span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">sshServer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; true</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">sshClient&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; false</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">nfsClient&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; false</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">dhcp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; true</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">dns&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; true</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">snmp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; true</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">ntpClient&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; false</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">CIMHttpServer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; true</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">CIMHttpsServer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; true</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">CIMSLP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; true</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">iSCSI&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; false</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">vpxHeartbeats&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; true</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">updateManager&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; false</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">faultTolerance&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; true</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">webAccess&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; true</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">vMotion&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; true</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">vSphereClient&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; true</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">activeDirectoryAll&nbsp;&nbsp;&nbsp; false</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">NFC&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; true</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">HBR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; true</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">ftpClient&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;false</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">httpClient&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; false</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">gdbserver&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; false</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">DVFilter&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; false</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">DHCPv6&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; false</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">DVSSync&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; false</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">syslog&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; false</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">IKED&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; false</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">WOL&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; true</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">vSPC&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;false</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">remoteSerialPort&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; false</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p></td></tr></tbody></table><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">&nbsp;</span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">&nbsp;</span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">3.2.2&nbsp;</span><span style="font-family: 細明體; ">加入<span lang="EN-US">25port<o:p></o:p></span></span></p><br style="color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" width="595" style="margin: 1em 0px 1em 8.45pt; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; width: 446.55pt; background-color: black; border: none; "><tbody><tr><td width="595" style="width: 446.55pt; border: 1pt inset; "><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">~ #</span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; color: yellow; ">&nbsp;cd /etc/vmware/firewall/<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">~ #&nbsp;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: yellow; ">vi smtp.xml<o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">#</span></span><span style="font-size: 10pt; font-family: 細明體; color: red; ">在最後加入以下內容<span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&lt;!</span><span class="Apple-style-span" style="line-height: 17px; font-family: 細明體; font-size: 13px; ">-</span><span class="Apple-style-span" style="line-height: 17px; text-align: left; font-family: 細明體; font-size: 13px; ">-</span>&nbsp;<span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;E-MAIL SMTP&nbsp;</span>&nbsp;<span class="Apple-style-span" style="line-height: 17px; font-family: 細明體; font-size: 13px; ">-</span><span class="Apple-style-span" style="line-height: 17px; text-align: left; font-family: 細明體; font-size: 13px; ">-</span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&gt;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&lt;ConfigRoot&gt;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp; &lt;service id='1000'&gt;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;&nbsp;&nbsp; &lt;id&gt;SMTP&lt;/id&gt;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;&nbsp;&nbsp; &lt;rule&gt;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;direction&gt;outbound&lt;/direction&gt;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;protocol&gt;tcp&lt;/protocol&gt;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;porttype&gt;dst&lt;/porttype&gt;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;port&gt;25&lt;/port&gt;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;&nbsp;&nbsp; &lt;/rule&gt;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;&nbsp;&nbsp; &lt;enabled&gt;true&lt;/enabled&gt;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;&nbsp;&nbsp; &lt;required&gt;false&lt;/required&gt;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp; &lt;/service&gt;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&lt;/ConfigRoot&gt;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p></td></tr></tbody></table><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">&nbsp;</span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span style="font-family: 細明體; ">重啟防火牆</span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span style="font-family: 細明體; ">重啟後會看到多出<span lang="EN-US">SMTP 25port</span>的設定<span lang="EN-US"><o:p></o:p></span></span></p><br style="color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" width="595" style="margin: 1em 0px 1em 8.45pt; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; width: 446.55pt; background-color: black; border: none; "><tbody><tr><td width="595" style="width: 446.55pt; border: 1pt inset; "><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">~ #</span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; color: yellow; ">&nbsp;esxcli network firewall refresh<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">~ #&nbsp;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: yellow; ">esxcli network firewall ruleset list<o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Enabled</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="Apple-style-span" style="line-height: 17px; color: rgb(255, 255, 0); font-family: 細明體; font-size: 13px; ">-</span><span class="Apple-style-span" style="background-color: black; line-height: 17px; text-align: left; color: rgb(255, 255, 0); font-family: 細明體; font-size: 13px; ">-</span><span class="Apple-style-span" style="line-height: 17px; color: rgb(255, 255, 0); font-family: 細明體; font-size: 13px; ">-</span><span class="Apple-style-span" style="background-color: black; line-height: 17px; text-align: left; color: rgb(255, 255, 0); font-family: 細明體; font-size: 13px; ">-</span><span class="Apple-style-span" style="line-height: 17px; color: rgb(255, 255, 0); font-family: 細明體; font-size: 13px; ">-</span><span class="Apple-style-span" style="background-color: black; line-height: 17px; text-align: left; color: rgb(255, 255, 0); font-family: 細明體; font-size: 13px; ">-</span><span class="Apple-style-span" style="line-height: 17px; color: rgb(255, 255, 0); font-family: 細明體; font-size: 13px; ">-</span><span class="Apple-style-span" style="background-color: black; line-height: 17px; text-align: left; color: rgb(255, 255, 0); font-family: 細明體; font-size: 13px; ">-</span><span class="Apple-style-span" style="line-height: 17px; color: rgb(255, 255, 0); font-family: 細明體; font-size: 13px; ">-</span><span class="Apple-style-span" style="background-color: black; line-height: 17px; text-align: left; color: rgb(255, 255, 0); font-family: 細明體; font-size: 13px; ">-</span><span class="Apple-style-span" style="line-height: 17px; color: rgb(255, 255, 0); font-family: 細明體; font-size: 13px; ">-</span><span class="Apple-style-span" style="background-color: black; line-height: 17px; text-align: left; color: rgb(255, 255, 0); font-family: 細明體; font-size: 13px; ">-</span><span class="Apple-style-span" style="line-height: 17px; color: rgb(255, 255, 0); font-family: 細明體; font-size: 13px; ">-</span><span class="Apple-style-span" style="background-color: black; line-height: 17px; text-align: left; color: rgb(255, 255, 0); font-family: 細明體; font-size: 13px; ">-</span><span class="Apple-style-span" style="line-height: 17px; color: rgb(255, 255, 0); font-family: 細明體; font-size: 13px; ">-</span><span class="Apple-style-span" style="background-color: black; line-height: 17px; text-align: left; color: rgb(255, 255, 0); font-family: 細明體; font-size: 13px; ">-</span><span class="Apple-style-span" style="line-height: 17px; color: rgb(255, 255, 0); font-family: 細明體; font-size: 13px; ">-</span><span class="Apple-style-span" style="background-color: black; line-height: 17px; text-align: left; color: rgb(255, 255, 0); font-family: 細明體; font-size: 13px; ">-</span><span style="background-color: black; color: rgb(255, 255, 255); font-family: 細明體; font-size: 10pt; ">&nbsp;&nbsp;</span><span class="Apple-style-span" style="line-height: 17px; color: rgb(255, 255, 0); font-family: 細明體; font-size: 13px; ">-</span><span class="Apple-style-span" style="background-color: black; line-height: 17px; text-align: left; color: rgb(255, 255, 0); font-family: 細明體; font-size: 13px; ">-</span><span class="Apple-style-span" style="line-height: 17px; color: rgb(255, 255, 0); font-family: 細明體; font-size: 13px; ">-</span><span class="Apple-style-span" style="background-color: black; line-height: 17px; text-align: left; color: rgb(255, 255, 0); font-family: 細明體; font-size: 13px; ">-</span><span class="Apple-style-span" style="line-height: 17px; color: rgb(255, 255, 0); font-family: 細明體; font-size: 13px; ">-</span><span class="Apple-style-span" style="background-color: black; line-height: 17px; text-align: left; color: rgb(255, 255, 0); font-family: 細明體; font-size: 13px; ">-</span><span class="Apple-style-span" style="line-height: 17px; color: rgb(255, 255, 0); font-family: 細明體; font-size: 13px; ">-</span><span class="Apple-style-span" style="background-color: black; line-height: 17px; text-align: left; color: rgb(255, 255, 0); font-family: 細明體; font-size: 13px; ">-</span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span style="font-size: 10pt; font-family: 細明體; ">中間略過</span></span><span style="font-size: 10pt; font-family: 細明體; color: white; "><span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">DVSSync&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; false</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">syslog&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; false</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">IKED&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; false</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">WOL&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; true</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">vSPC&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; false</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">remoteSerialPort&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; false</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">SMTP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; true</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p></td></tr></tbody></table><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">&nbsp;</span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">&nbsp;</span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><font face="細明體"><a href="http://blog.faq-book.com/wp-content/uploads/image/VMware/VMware%20ESXi%20ghettoVCB.sh/14.jpg" style="outline: none; border: none; color: rgb(63, 138, 216); text-decoration: none; "><img alt="" height="501" src="http://blog.faq-book.com/wp-content/uploads/image/VMware/VMware%20ESXi%20ghettoVCB.sh/14.jpg" width="650" style="border: 1px solid rgb(204, 204, 204); padding: 6px; "></a><br></font></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">&nbsp;</span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); ">&nbsp;</p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">3.3&nbsp;</span><span style="font-family: 細明體; ">防火牆開機設定<span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span style="font-family: 細明體; ">由於<span lang="EN-US">VMware esxi 5&nbsp;</span>在重開機後會還原資料,因此在防火牆的部份則需要額外的設定。</span><span style="font-family: 細明體; ">在</span><span lang="EN-US" style="font-family: 細明體; color: red; ">2.2</span><span style="font-family: 細明體; color: red; ">防火牆設定加入<span lang="EN-US">25port</span>為基本的防火牆設定</span><span style="font-family: 細明體; ">。接下來說明如何重開機自動加入防火牆規則。</span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">&nbsp;</span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">3.3.1&nbsp;</span><span style="font-family: 細明體; ">首先編寫防火牆規則<span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span style="font-family: 細明體; ">編寫好的防火牆規則所儲存的地方<span lang="EN-US">(</span>建議存到<span lang="EN-US">/vmfs/volumes/datastore1</span>內或是自行設定的<span lang="EN-US">NFT</span>內<span lang="EN-US">)</span>以避免重開機後被刪除。<span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">&nbsp;</span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span style="font-family: 細明體; ">以下範例檔案存放在<span lang="EN-US">NFS</span>上<span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span style="font-family: 細明體; ">腳本放在<span lang="EN-US">script</span>資料夾,修改文件放在<span lang="EN-US">file</span>資料夾<span lang="EN-US"><o:p></o:p></span></span></p><br style="color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" width="595" style="margin: 1em 0px 1em 8.45pt; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; width: 446.55pt; background-color: black; border: none; "><tbody><tr><td width="595" style="width: 446.55pt; border: 1pt inset; "><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 728px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">~ #&nbsp;</span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; color: yellow; ">mkdir -p /vmfs/volumes/tools/script<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 728px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">~ #&nbsp;</span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; color: yellow; ">mkdir &nbsp;/vmfs/volumes/tools/file</span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 728px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">~ #</span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; color: yellow; ">&nbsp;cd /vmfs/volumes/tools/file<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 728px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">~ #&nbsp;</span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; color: yellow; ">cp&nbsp;</span></span><span lang="EN-US" style="font-size: 10pt; color: yellow; ">/etc/vmware/firewall/service.xml&nbsp;<span class="apple-style-span">/vmfs/volumes/tools/file</span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; color: red; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 728px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">~ #&nbsp;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: yellow; ">vi service.xml<o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 728px; clear: both; "><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">#</span></span><span style="font-size: 10pt; font-family: 細明體; color: red; ">在最下面加入以下黃色字體內容<span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 728px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;&nbsp;&nbsp; &lt;rule id='0002'&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 728px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;direction&gt;inbound&lt;/direction&gt;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 728px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;protocol&gt;tcp&lt;/protocol&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 728px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;porttype&gt;dst&lt;/porttype&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 728px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;port&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 728px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;begin&gt;1024&lt;/begin&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 728px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;end&gt;65535&lt;/end&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 728px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/port&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 728px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;&nbsp;&nbsp; &lt;/rule&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 728px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;&nbsp;&nbsp; &lt;enabled&gt;false&lt;/enabled&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 728px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;&nbsp;&nbsp; &lt;required&gt;false&lt;/required&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 728px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp; &lt;/service&gt;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 728px; clear: both; "><span style="color: rgb(255, 255, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&lt;!</span></span><span class="Apple-style-span" style="line-height: 17px; color: rgb(255, 255, 0); font-family: 細明體; font-size: 13px; ">-</span><span class="Apple-style-span" style="line-height: 17px; text-align: left; color: rgb(255, 255, 0); font-family: 細明體; font-size: 13px; ">-</span>&nbsp;<span style="color: rgb(255, 255, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;E-MAIL SMTP&nbsp;</span></span>&nbsp;<span class="Apple-style-span" style="line-height: 17px; color: rgb(255, 255, 0); font-family: 細明體; font-size: 13px; ">-</span><span class="Apple-style-span" style="line-height: 17px; text-align: left; color: rgb(255, 255, 0); font-family: 細明體; font-size: 13px; ">-</span><span style="color: rgb(255, 255, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&gt;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 728px; clear: both; "><span style="color: rgb(255, 255, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp; &lt;service id='1000'&gt;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 728px; clear: both; "><span style="color: rgb(255, 255, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;&nbsp;&nbsp; &lt;id&gt;SMTP&lt;/id&gt;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 728px; clear: both; "><span style="color: rgb(255, 255, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;&nbsp;&nbsp; &lt;rule&gt;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 728px; clear: both; "><span style="color: rgb(255, 255, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;direction&gt;outbound&lt;/direction&gt;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 728px; clear: both; "><span style="color: rgb(255, 255, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;protocol&gt;tcp&lt;/protocol&gt;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 728px; clear: both; "><span style="color: rgb(255, 255, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;porttype&gt;dst&lt;/porttype&gt;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 728px; clear: both; "><span style="color: rgb(255, 255, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;port&gt;25&lt;/port&gt;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 728px; clear: both; "><span style="color: rgb(255, 255, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;&nbsp;&nbsp; &lt;/rule&gt;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 728px; clear: both; "><span style="color: rgb(255, 255, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;&nbsp;&nbsp; &lt;enabled&gt;true&lt;/enabled&gt;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 728px; clear: both; "><span style="color: rgb(255, 255, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;&nbsp;&nbsp; &lt;required&gt;false&lt;/required&gt;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 728px; clear: both; "><span style="color: rgb(255, 255, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp; &lt;/service&gt;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 728px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&lt;/ConfigRoot&gt;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p></td></tr></tbody></table><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">3.3.2&nbsp;</span><span style="font-family: 細明體; ">編寫開機執行腳本<span lang="EN-US"><o:p></o:p></span></span></p><br style="color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" width="595" style="margin: 1em 0px 1em 8.45pt; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; width: 446.55pt; background-color: black; border: none; "><tbody><tr><td width="595" style="width: 446.55pt; border: 1pt inset; "><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">~ #</span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; color: yellow; ">&nbsp;cd /vmfs/volumes/tools/script&nbsp;&nbsp;&nbsp;</span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; color: red; ">#</span></span><span class="apple-style-span"><span style="font-size: 10pt; font-family: 細明體; color: red; ">若沒有<span lang="EN-US">tools</span>資料夾請自行建立<span lang="EN-US"><o:p></o:p></span></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">~ #&nbsp;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: yellow; ">vi firewall.sh<o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">#!/bin/sh</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "># Firewall rules</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">cp /vmfs/volumes/tools/file/service.xml /etc/vmware/firewall/</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">esxcli network firewall refresh</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;</span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">~ #&nbsp;</span></span><span style="color: rgb(255, 255, 0); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">chmod 755&nbsp;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">firewall.sh</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></p></td></tr></tbody></table><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">&nbsp;</span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">3.3.3&nbsp;</span><span style="font-family: 細明體; ">寫入到<span lang="EN-US">rc.local</span>讓開機自動跑<span lang="EN-US">firewall.sh</span></span><span lang="EN-US" style="font-size: 10pt; color: yellow; "><o:p></o:p></span></p><br style="color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" width="595" style="margin: 1em 0px 1em 8.45pt; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; width: 446.55pt; background-color: black; border: none; "><tbody><tr><td width="595" style="width: 446.55pt; border: 1pt inset; "><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">~ #</span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; color: yellow; ">&nbsp;vi /etc/rc.local<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">#</span></span><span style="font-size: 10pt; font-family: 細明體; color: red; ">在最下面加入此行<span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">/vmfs/volumes/tools/<span class="apple-style-span">script/</span>firewall.sh</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p></td></tr></tbody></table><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span style="font-family: 細明體; ">再來就可以重開機測試看是否設定正確。若是正確的話就可在防火牆<span lang="EN-US">List</span>中看到<span lang="EN-US">SMTP<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">&nbsp;</span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">&nbsp;</span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><b><span lang="EN-US" style="font-family: 細明體; ">4.&nbsp;</span></b><b><span style="font-family: 細明體; ">設定排程<span lang="EN-US"><o:p></o:p></span></span></b></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span style="font-family: 細明體; ">在設定排程的部份,也和設定<span lang="EN-US">MAIL</span>的防火牆規則一樣,都會因重開而還原。</span><span style="font-family: 細明體; ">因此在這邊提供幾種方式,請依個人需求設定。</span><span lang="EN-US" style="font-family: 細明體; ">(</span><span style="font-family: 細明體; ">設定排程的方式還有很多種,以下只是提供參考</span><span lang="EN-US" style="font-family: 細明體; ">)</span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">&nbsp;</span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">4.1</span><span style="font-family: 細明體; ">設定<span lang="EN-US">script</span>方式<span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span style="font-family: 細明體; ">此種設定方式比較適合主機數較多且方便統一管理。<span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span style="font-family: 細明體; ">使用此方式,會建議最好新增一個<span lang="EN-US">NFS</span>且將設定資料都統一放到<span lang="EN-US">NFS</span>內,之後在有需要的主機上在掛載<span lang="EN-US">NSF</span></span>就可使用。</p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">&nbsp;</span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">4.1.1&nbsp;</span><span style="font-family: 細明體; ">設定排程<span lang="EN-US">(root)<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span style="font-family: 細明體; ">在這邊會要編修<span lang="EN-US">root</span>,主要是為了日後如果有更多的排程要設定的話只需要改此<span lang="EN-US">root</span>檔後,執行<span lang="EN-US">crontabs.sh</span></span>此腳本就會自動覆蓋舊的<span lang="EN-US">root</span>檔了。在日後的管理會較為方便。</p><br style="color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" width="595" style="margin: 1em 0px 1em 8.45pt; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; width: 446.55pt; background-color: black; border: none; "><tbody><tr><td width="595" style="width: 446.55pt; border: 1pt inset; "><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">~ # cp /var/spool/cron/crontabs/root /vmfs/volumes/tools/file/<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">~ # cd /vmfs/volumes/tools/file/<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">~ # chmod 744 root<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">~ # vi root<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">#</span></span><span class="apple-style-span"><span style="font-size: 10pt; font-family: 細明體; ">在最下面加入要設定的排程,這邊設定讓<span lang="EN-US">5</span>分鐘跑一次看是否正常。時間部份可自行修改</span></span></span><span class="apple-style-span"><span style="font-size: 10pt; font-family: 細明體; "><span lang="EN-US"><o:p></o:p></span></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">#</span></span><span class="apple-style-span"><span style="font-size: 10pt; font-family: 細明體; ">此部份測試請拿小一點的<span lang="EN-US">VM</span>測試才不會還沒備完又跑下一個。</span></span></span><span class="apple-style-span"><span style="font-size: 10pt; font-family: 細明體; "><span lang="EN-US"><o:p></o:p></span></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">#min hour day mon dow command</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">1&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp; *&nbsp;&nbsp; *&nbsp;&nbsp; *&nbsp;&nbsp; /sbin/tmpwatch.py</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">1&nbsp;&nbsp;&nbsp; *&nbsp;&nbsp;&nbsp; *&nbsp;&nbsp; *&nbsp;&nbsp; *&nbsp;&nbsp; /sbin/auto-backup.sh</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">0&nbsp;&nbsp;&nbsp; *&nbsp;&nbsp;&nbsp; *&nbsp;&nbsp; *&nbsp;&nbsp; *&nbsp;&nbsp; /usr/lib/vmware/vmksummary/log-heartbeat.py</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">*/5&nbsp; *&nbsp;&nbsp;&nbsp; *&nbsp;&nbsp; *&nbsp;&nbsp; *&nbsp;&nbsp; /vmfs/volumes/datastore1/backup/lamw-ghettoVCB-518cef7/ghettoVCB.sh -a</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p></td></tr></tbody></table><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">4.1.2&nbsp;</span><span style="font-family: 細明體; ">設定<span lang="EN-US">crontabs.sh<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">/bin/kill $(cat /var/run/crond.pid)&nbsp;</span><span style="font-family: 細明體; ">為刪掉<span lang="EN-US">crond</span>的<span lang="EN-US">pid<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">/bin/busybox crond &nbsp;</span><span style="font-family: 細明體; ">為重啟<span lang="EN-US">crond<o:p></o:p></span></span></p><br style="color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" width="595" style="margin: 1em 0px 1em 8.45pt; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; width: 446.55pt; background-color: black; border: none; "><tbody><tr><td width="595" style="width: 446.55pt; border: 1pt inset; "><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">~ #</span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; color: yellow; ">&nbsp;cd /vmfs/volumes/tools/script<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">~ #&nbsp;</span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; color: yellow; ">vi crontabs.sh</span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">#!/bin/sh<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">/bin/kill $(cat /var/run/crond.pid)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">cp /vmfs/volumes/tools/file/root /var/spool/cron/crontabs<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">/bin/busybox crond<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">~ #&nbsp;</span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; color: yellow; ">chmod 755 crontabs.sh</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: yellow; "><o:p></o:p></span></p></td></tr></tbody></table><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">&nbsp;</span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">4.1.3&nbsp;</span><span style="font-family: 細明體; ">設定<span lang="EN-US">rc.local</span>開機自動跑<span lang="EN-US">crontabs.sh<o:p></o:p></span></span></p><br style="color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" width="595" style="margin: 1em 0px 1em 8.45pt; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; width: 446.55pt; background-color: black; border: none; "><tbody><tr><td width="595" style="width: 446.55pt; border: 1pt inset; "><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">~ #</span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; color: yellow; ">&nbsp;vi /etc/rc.local<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 0, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">#</span><span style="font-size: 10pt; font-family: 細明體; ">在最下面加入此行</span></span><span style="font-size: 10pt; font-family: 細明體; color: red; "><span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">/vmfs/volumes/tools/script/crontabs.sh</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p></td></tr></tbody></table><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">&nbsp;</span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">4.2&nbsp;</span><span style="font-family: 細明體; ">直接寫在<span lang="EN-US">rc.local<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span style="font-family: 細明體; ">此方式比較適合單一主機或是管理人員較少的使用。<span lang="EN-US"><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span style="font-family: 細明體; ">此方式的缺點就是,日後要設的排程多的時後,或是加入到<span lang="EN-US">rc.local</span>內的東西變多時,在管理上會容易亂掉,管理較不方便。<span lang="EN-US"><o:p></o:p></span></span></p><br style="color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" width="595" style="margin: 1em 0px 1em 8.45pt; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; width: 446.55pt; background-color: black; border: none; "><tbody><tr><td width="595" style="width: 446.55pt; border: 1pt inset; "><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; ">~ #</span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; color: yellow; ">&nbsp;vi /etc/rc.local<o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">#!/bin/sh</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">export PATH=/sbin:/bin</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">log() {</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;&nbsp; echo "${1}"</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;&nbsp; /bin/busybox logger init "${1}"</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">}</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "># execute all service retgistered in ${rcdir} ($1 or /etc/rc.local.d)</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">if [ -d "${1:-/etc/rc.local.d}" ] ; then</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;&nbsp; for filename in $(find "${1:-/etc/rc.local.d}" | /bin/busybox sort) ; do</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if [ -f "${filename}" ] &amp;&amp; [ -x "${filename}" ]; then</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; log "running ${filename}"</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "${filename}"</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fi</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;&nbsp; done</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 255); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">fi</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">&nbsp;</span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 0); "><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">#crontabs</span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; "><o:p></o:p></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 0); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">/bin/kill $(cat /var/run/crond.pid)&nbsp;</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: yellow; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 0); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">/bin/echo " */5&nbsp;&nbsp;&nbsp; *&nbsp;&nbsp;&nbsp; *&nbsp;&nbsp; *&nbsp;&nbsp; *&nbsp;&nbsp; /vmfs/volumes/datastore1/backup/lamw-ghettoVCB-518cef7/ghettoVCB.sh -a”&gt;&gt; /var/spool/cron/crontabs/root</span></span></span><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: yellow; "><o:p></o:p></span></span></p><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 593px; clear: both; "><span style="color: rgb(255, 255, 0); "><span class="apple-style-span"><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; ">/bin/busybox crond</span></span></span><span lang="EN-US" style="font-size: 10pt; font-family: 細明體; color: white; "><o:p></o:p></span></p></td></tr></tbody></table><p class="MsoNormal" style="margin-top: 1em; margin-bottom: 1em; width: 658px; clear: both; color: rgb(102, 102, 102); font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', sans-serif; font-size: 13px; line-height: 23px; text-align: -webkit-auto; background-color: rgb(231, 231, 231); "><span lang="EN-US" style="font-family: 細明體; ">&nbsp;</span></p></div>
頁: [1]
查看完整版本: [轉貼]VMware esxi 備份ghettoVCB.sh進階設定說明