<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-906613225516010174</id><updated>2026-07-06T20:14:40.938-07:00</updated><category term="生字筆順"/><category term="linux相關"/><category term="joomla"/><category term="中文化"/><category term="教學"/><category term="ssh"/><category term="吹泡泡"/><category term="秋千"/><category term="門開了"/><category term="QNAP"/><category term="我們的家"/><category term="做早操"/><category term="跳房子"/><category term="mysql"/><category term="gallery2"/><category term="ibt_1283"/><category term="synology nas"/><category term="元件"/><category term="註冊會員"/><category term="linux指令"/><category term="CB"/><category term="GroupJive"/><category term="flash作品"/><category term="google adsense code"/><category term="php"/><category term="windows系統設定"/><category term="備份"/><category term="升級"/><category term="奇思異想的美術創作(超現實主義)"/><category term="打包"/><category term="操作"/><category term="照片"/><category term="96學年度入學美術班"/><category term="Community Builder"/><category term="DM500"/><category term="Jdownloads"/><category term="dreamweaver"/><category term="load module into article"/><category term="xoops模組問題"/><category term="作業規定"/><category term="前台"/><category term="爬山"/><category term="發表回應"/><category term="Artisteer"/><category term="Content - MultiAds"/><category term="ID編號"/><category term="K2"/><category term="SOBI2"/><category term="Top Menu"/><category term="Windows Live Writer"/><category term="bacula"/><category term="centos"/><category term="google drive"/><category term="ipkg"/><category term="joomDOC"/><category term="linux上 stat_boom的設定"/><category term="module"/><category term="ostube"/><category term="php導入ckeditor"/><category term="plink"/><category term="powermail 4 joomla"/><category term="scp"/><category term="sh404SEF"/><category term="swmenufree"/><category term="tpl語言檔"/><category term="twonkymedia"/><category term="vosonic vp2160升級解決2g限制"/><category term="word 2007 scan photo"/><category term="中正高中相關"/><category term="伺服器"/><category term="佈景主題template"/><category term="停車費"/><category term="北軟還原精靈"/><category term="卡氏"/><category term="地址翻譯"/><category term="垂直選單"/><category term="安裝"/><category term="排序"/><category term="文章發布"/><category term="旅遊"/><category term="更換機油"/><category term="模塊"/><category term="模組"/><category term="檔案管理系統"/><category term="汽車美術中心"/><category term="申請"/><category term="發哥的話"/><category term="相機相關"/><category term="短片分享"/><category term="給普通班小老師的話"/><category term="網購經驗"/><category term="編輯器"/><category term="美術班作業"/><category term="羽毛球拍(鈦10)，"/><category term="語言檔"/><category term="語言檔命名規範"/><category term="轉換合併字幕影片檔的軟體"/><category term="運用"/><category term="選單聯結"/><category term="還原"/><category term="電子檔作業檔名格式"/><category term="電子郵件主旨格式規定"/><title type='text'>發哥的教學網誌</title><subtitle type='html'>原架在台北市教師研習中心的教學網誌，因為主機太不穩定，所以小弟決定移家到這裏，希望透過這個教學網誌來做為輔助發哥與學生間教學資訊溝通的橋樑之一。</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://yuhfa.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/906613225516010174/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://yuhfa.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/906613225516010174/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>發哥</name><uri>http://www.blogger.com/profile/08767606783186239234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://photos1.blogger.com/blogger2/2750/110670559755372/212/gse_multipart22619.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>266</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-906613225516010174.post-8369098621406830482</id><published>2023-02-06T21:19:00.000-08:00</published><updated>2023-02-06T21:19:00.704-08:00</updated><title type='text'>Centos幾個與hostname 與domain有關的檔案</title><content type='html'>&lt;p&gt;&amp;nbsp;/etc/sysconfig/network&lt;/p&gt;&lt;p&gt;/etc/hosts&lt;/p&gt;&lt;p&gt;/etc/resolv.conf&lt;/p&gt;&lt;p&gt;特別必須注意的是/etc/hosts這個檔案的結構&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEigrP83j6UztydaApRSHiBkJ5JpFudJhFZ-zqAFmg4hGoaiH7s0gXn6e5iTR9nHNlRLoYo7OPM-G7NOdizI06ulPgAKjpazg5fi9dFsSPrVTpWWZ1G7hopZA4tYKLdYexBqKL1s1KX5IUb6idcOkl3WON_oRMBXHdAhcoWMoeVM6m0KIzK4qbwCPjeM&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;313&quot; data-original-width=&quot;789&quot; height=&quot;127&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEigrP83j6UztydaApRSHiBkJ5JpFudJhFZ-zqAFmg4hGoaiH7s0gXn6e5iTR9nHNlRLoYo7OPM-G7NOdizI06ulPgAKjpazg5fi9dFsSPrVTpWWZ1G7hopZA4tYKLdYexBqKL1s1KX5IUb6idcOkl3WON_oRMBXHdAhcoWMoeVM6m0KIzK4qbwCPjeM&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;/etc/resolv.conf這個檔案裡是標註網址查詢的伺服器&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjU3ZnKNyo2rQ3lHFw1xbHoynqloeB-99S28XzoFpWmmxr1obgn6Z3VeowtCsAuqq5zYbSzJdB9ov569GMDfwXuRnWt57ZM9Pgw3bneroZItrKrZ1sgRm6bfH7bXlpxaPdhOBOQkvjPDJRmmqjkwpKtDOn5tD0wML6dZ_Q9hmM-ejOMe6vgdr-1yO3y&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;163&quot; data-original-width=&quot;623&quot; height=&quot;84&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEjU3ZnKNyo2rQ3lHFw1xbHoynqloeB-99S28XzoFpWmmxr1obgn6Z3VeowtCsAuqq5zYbSzJdB9ov569GMDfwXuRnWt57ZM9Pgw3bneroZItrKrZ1sgRm6bfH7bXlpxaPdhOBOQkvjPDJRmmqjkwpKtDOn5tD0wML6dZ_Q9hmM-ejOMe6vgdr-1yO3y&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;/etc/sysconfig/network定莪你主機名稱的地方&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEiCCXLTm1XI4m6M5fVwR8S9FD9ETt3t-cLjDq4c6UiJDQSwr2TEXCqKxbkPnwal0Qsno2VLmT2fpnYjBMycXLzITdMY0PCZpSWBgSmSf27QpmAFeJuP4D0P1ANpDTkKkIlWj6oTvCb8H-gWIzIFg0Oj5YLRQHhGJ-mY4QssAzuJVSA19iGF1tMCoVZ7&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;294&quot; data-original-width=&quot;652&quot; height=&quot;144&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEiCCXLTm1XI4m6M5fVwR8S9FD9ETt3t-cLjDq4c6UiJDQSwr2TEXCqKxbkPnwal0Qsno2VLmT2fpnYjBMycXLzITdMY0PCZpSWBgSmSf27QpmAFeJuP4D0P1ANpDTkKkIlWj6oTvCb8H-gWIzIFg0Oj5YLRQHhGJ-mY4QssAzuJVSA19iGF1tMCoVZ7&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;http://fagoteach.no-ip.org/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yuhfa.blogspot.com/feeds/8369098621406830482/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/906613225516010174/8369098621406830482' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/906613225516010174/posts/default/8369098621406830482'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/906613225516010174/posts/default/8369098621406830482'/><link rel='alternate' type='text/html' href='http://yuhfa.blogspot.com/2023/02/centoshostname-domain.html' title='Centos幾個與hostname 與domain有關的檔案'/><author><name>發哥</name><uri>http://www.blogger.com/profile/08767606783186239234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://photos1.blogger.com/blogger2/2750/110670559755372/212/gse_multipart22619.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEigrP83j6UztydaApRSHiBkJ5JpFudJhFZ-zqAFmg4hGoaiH7s0gXn6e5iTR9nHNlRLoYo7OPM-G7NOdizI06ulPgAKjpazg5fi9dFsSPrVTpWWZ1G7hopZA4tYKLdYexBqKL1s1KX5IUb6idcOkl3WON_oRMBXHdAhcoWMoeVM6m0KIzK4qbwCPjeM=s72-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-906613225516010174.post-6577664879740189141</id><published>2023-02-05T16:25:00.001-08:00</published><updated>2023-02-05T16:25:02.567-08:00</updated><title type='text'>主機對外下戴資料與yum更新都出問題</title><content type='html'>&lt;p&gt;&amp;nbsp;前些日子因為移機，伺服主機必須移到機房，而資訊人員說只能放置主機，不能含其他的配備，結果我原先都是以一個IP分享器連對外實體IP，而分享器之後再指向伺服主機的塔配方式，因而就無法操作了(原先一再因沒有domail name而無法將實體IP轉換為好記的網域名稱，後來因為用了可自動獲取網域名的IP分享器來促成架站的方式，也就因為又遇困難了。&amp;lt;--------IP分享器搭配指向伺服主機的另一個好處是防火牆的設定簡單易操作)。&lt;/p&gt;&lt;p&gt;而為了解決這些問題，只好實際再去申請一個domail name(網域名稱)指向我的實體IP，而主機的iptabels也只好認實設定了，而因為新的domail name，與我原先網站所指向的domail name不同，結果就造成了我必須更新整個網站與domail name有關的設定，而最初不清楚這方面的問題，結果導致我不論是用wegt 或yum要下載更新資料都因無法連新該主機(host)而出現連線被拒絕的問題(連寄信都有問題)，後來在問看鳥哥關於dns(網域)與host(主機)之間的關係之文章後，重新設定的/etc/hosts，與/etc/resolv.conf這兩個檔案之後，終於恢復了正常供能了。&lt;/p&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;http://fagoteach.no-ip.org/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yuhfa.blogspot.com/feeds/6577664879740189141/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/906613225516010174/6577664879740189141' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/906613225516010174/posts/default/6577664879740189141'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/906613225516010174/posts/default/6577664879740189141'/><link rel='alternate' type='text/html' href='http://yuhfa.blogspot.com/2023/02/yum.html' title='主機對外下戴資料與yum更新都出問題'/><author><name>發哥</name><uri>http://www.blogger.com/profile/08767606783186239234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://photos1.blogger.com/blogger2/2750/110670559755372/212/gse_multipart22619.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-906613225516010174.post-1309473862429079870</id><published>2023-02-01T18:53:00.000-08:00</published><updated>2023-02-01T18:53:21.404-08:00</updated><title type='text'>linux尋找列出含有關鍵字串的檔案</title><content type='html'>&lt;p&gt;&amp;nbsp;linux&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Lucida Grande&amp;quot;, Tahoma, Verdana, Arial, sans-serif, 微軟正黑體, 蘋果儷中黑, &amp;quot;儷黑 Pro&amp;quot;, 新細明體; font-size: 18px;&quot;&gt;若要列出含有關鍵字串的檔案，可以使用&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Lucida Grande&amp;quot;, Tahoma, Verdana, Arial, sans-serif, 微軟正黑體, 蘋果儷中黑, &amp;quot;儷黑 Pro&amp;quot;, 新細明體; font-size: 18px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;background-color: #eeeeee; border-radius: 2px; box-sizing: inherit; color: #333333; font-family: Menlo, Monaco, monospace; font-size: 1em; padding: 2px 3px;&quot;&gt;find&lt;/code&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Lucida Grande&amp;quot;, Tahoma, Verdana, Arial, sans-serif, 微軟正黑體, 蘋果儷中黑, &amp;quot;儷黑 Pro&amp;quot;, 新細明體; font-size: 18px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Lucida Grande&amp;quot;, Tahoma, Verdana, Arial, sans-serif, 微軟正黑體, 蘋果儷中黑, &amp;quot;儷黑 Pro&amp;quot;, 新細明體; font-size: 18px;&quot;&gt;尋找指定的檔案後，再搭配&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Lucida Grande&amp;quot;, Tahoma, Verdana, Arial, sans-serif, 微軟正黑體, 蘋果儷中黑, &amp;quot;儷黑 Pro&amp;quot;, 新細明體; font-size: 18px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;background-color: #eeeeee; border-radius: 2px; box-sizing: inherit; color: #333333; font-family: Menlo, Monaco, monospace; font-size: 1em; padding: 2px 3px;&quot;&gt;grep&lt;/code&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Lucida Grande&amp;quot;, Tahoma, Verdana, Arial, sans-serif, 微軟正黑體, 蘋果儷中黑, &amp;quot;儷黑 Pro&amp;quot;, 新細明體; font-size: 18px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Lucida Grande&amp;quot;, Tahoma, Verdana, Arial, sans-serif, 微軟正黑體, 蘋果儷中黑, &amp;quot;儷黑 Pro&amp;quot;, 新細明體; font-size: 18px;&quot;&gt;指令與&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Lucida Grande&amp;quot;, Tahoma, Verdana, Arial, sans-serif, 微軟正黑體, 蘋果儷中黑, &amp;quot;儷黑 Pro&amp;quot;, 新細明體; font-size: 18px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;background-color: #eeeeee; border-radius: 2px; box-sizing: inherit; color: #333333; font-family: Menlo, Monaco, monospace; font-size: 1em; padding: 2px 3px;&quot;&gt;-l&lt;/code&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Lucida Grande&amp;quot;, Tahoma, Verdana, Arial, sans-serif, 微軟正黑體, 蘋果儷中黑, &amp;quot;儷黑 Pro&amp;quot;, 新細明體; font-size: 18px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &amp;quot;Lucida Grande&amp;quot;, Tahoma, Verdana, Arial, sans-serif, 微軟正黑體, 蘋果儷中黑, &amp;quot;儷黑 Pro&amp;quot;, 新細明體; font-size: 18px;&quot;&gt;參數列出檔案名稱，篩選出含有關鍵字的檔案。&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;background-color: white; box-sizing: inherit; color: #333333; font-family: &amp;quot;Lucida Grande&amp;quot;, Tahoma, Verdana, Arial, sans-serif, 微軟正黑體, 蘋果儷中黑, &amp;quot;儷黑 Pro&amp;quot;, 新細明體; font-size: 18px; margin: 0px 0px 25px; padding: 0px;&quot;&gt;例如列出&amp;nbsp;&lt;code style=&quot;background-color: #eeeeee; border-radius: 2px; box-sizing: inherit; font-family: Menlo, Monaco, monospace; font-size: 1em; padding: 2px 3px;&quot;&gt;/var/&lt;/code&gt;&amp;nbsp;目錄之下，內容含有&amp;nbsp;&lt;code style=&quot;background-color: #eeeeee; border-radius: 2px; box-sizing: inherit; font-family: Menlo, Monaco, monospace; font-size: 1em; padding: 2px 3px;&quot;&gt;test&lt;/code&gt;&amp;nbsp;這個關鍵字的&amp;nbsp;&lt;code style=&quot;background-color: #eeeeee; border-radius: 2px; box-sizing: inherit; font-family: Menlo, Monaco, monospace; font-size: 1em; padding: 2px 3px;&quot;&gt;*.conf&lt;/code&gt;&amp;nbsp;設定檔，可以執行以下指令：&lt;/p&gt;&lt;pre class=&quot;code&quot; style=&quot;background-color: #2f333d; border-radius: 4px; border: 1px solid rgb(41, 44, 51); box-sizing: inherit; color: #d2d2d2; font-family: monospace, monospace; font-size: 14px; line-height: 21px; overflow: auto; padding: 14.0312px 17.5469px;&quot;&gt;find /var/ &lt;span class=&quot;Special&quot; style=&quot;box-sizing: inherit; color: #e7f6da;&quot;&gt;-name&lt;/span&gt; &lt;span class=&quot;Statement&quot; style=&quot;box-sizing: inherit; color: #8ac6f2;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;Constant&quot; style=&quot;box-sizing: inherit; color: #e5786d;&quot;&gt;*.conf&lt;/span&gt;&lt;span class=&quot;Statement&quot; style=&quot;box-sizing: inherit; color: #8ac6f2;&quot;&gt;&quot;&lt;/span&gt; &lt;span class=&quot;Special&quot; style=&quot;box-sizing: inherit; color: #e7f6da;&quot;&gt;-exec&lt;/span&gt; grep &lt;span class=&quot;Special&quot; style=&quot;box-sizing: inherit; color: #e7f6da;&quot;&gt;-l&lt;/span&gt; test &lt;span class=&quot;Special&quot; style=&quot;box-sizing: inherit; color: #e7f6da;&quot;&gt;{}&lt;/span&gt; \;&lt;/pre&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;http://fagoteach.no-ip.org/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yuhfa.blogspot.com/feeds/1309473862429079870/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/906613225516010174/1309473862429079870' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/906613225516010174/posts/default/1309473862429079870'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/906613225516010174/posts/default/1309473862429079870'/><link rel='alternate' type='text/html' href='http://yuhfa.blogspot.com/2023/02/linux.html' title='linux尋找列出含有關鍵字串的檔案'/><author><name>發哥</name><uri>http://www.blogger.com/profile/08767606783186239234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://photos1.blogger.com/blogger2/2750/110670559755372/212/gse_multipart22619.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-906613225516010174.post-6585445828460151581</id><published>2023-02-01T17:16:00.001-08:00</published><updated>2023-02-01T17:16:57.504-08:00</updated><title type='text'>gallery2 在布景主內下加入google adsense 程式碼</title><content type='html'>&lt;p&gt;首先登入你的gallery2網站管理選到佈景主題&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEj2EfA9CoYhkRTMCqDmRHlkb6fpJ2AwI1BHMTEPiegitITrl5w2YAbEl-z4u4HWRw2enBKsiGADZ4SwJSkthEPZdJ19kjZ0KsyRnPYiuSns0zX8LWRMJMB_rZb43JeSGuI9nySfNojb_YFhtUU8sqrYt079X6nc4rviM2QEUEAnmPU5sQXvpJP-m9Wy&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;801&quot; data-original-width=&quot;1252&quot; height=&quot;205&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEj2EfA9CoYhkRTMCqDmRHlkb6fpJ2AwI1BHMTEPiegitITrl5w2YAbEl-z4u4HWRw2enBKsiGADZ4SwJSkthEPZdJ19kjZ0KsyRnPYiuSns0zX8LWRMJMB_rZb43JeSGuI9nySfNojb_YFhtUU8sqrYt079X6nc4rviM2QEUEAnmPU5sQXvpJP-m9Wy&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;選擇你要改的佈景主題&lt;br /&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEiOe3mRu7CpH8oKuZkxPMeCGDqUuCo2nkDFfAhvZz3PnYV-sz8Xj6pS4CjsFk1lvQKrZe4oOdQ3XscG-wtd8oNOfGuGkJACVSAkc6kVsdmmxhT5yD1Eiz048LMiB9P0Er3KRPUAMoFgfJWvDOvXSQftyVxekWFlimMJKTs0Mn4z17jfxmXgvykHfGFN&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;739&quot; data-original-width=&quot;1255&quot; height=&quot;188&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEiOe3mRu7CpH8oKuZkxPMeCGDqUuCo2nkDFfAhvZz3PnYV-sz8Xj6pS4CjsFk1lvQKrZe4oOdQ3XscG-wtd8oNOfGuGkJACVSAkc6kVsdmmxhT5yD1Eiz048LMiB9P0Er3KRPUAMoFgfJWvDOvXSQftyVxekWFlimMJKTs0Mn4z17jfxmXgvykHfGFN&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;這裡有一個現成的可&lt;a href=&quot;https://ccsh365-my.sharepoint.com/:u:/g/personal/yuhfa_mail_ccsh_tp_edu_tw/ETnoSkhCU99Pl0535Bj11jUBZo7s57ULGpKhJpKUUGx3KA?e=hnafmx&quot; target=&quot;_blank&quot;&gt;下載&lt;/a&gt;安裝在你的伺服器裡(下載後要解壓縮)的佈景主題的目錄裡(例如：/var/www/html/gallery2//themes)。&lt;p&gt;&lt;/p&gt;&lt;p&gt;然後用ssh 登入server(伺服器主機)，到gallery2的目錄裡，找到你要改的那個佈景主題，然後更改三個檔案，&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEiVBjjxVrbzM0Qi0QaqmaBQwS1HOh2TVLrTPPcyGPtqvy34xleny1JF_Av2xfnf45GqvDcQC0dPurQEKvn1Vnv-qImXXq1mK8vem6MWTYYnPRYSL4Meqa09Yw7vlrSg3Mjf1eolR0JbUcOU40O39zpq1XlLtbfKhp_SIHg-SiVYj2FQMVN9Kp3tQ8Dz&quot; style=&quot;background-color: white; font-family: &amp;quot;Google Sans&amp;quot;, Roboto, Arial, sans-serif; font-size: 18px; margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;174&quot; data-original-width=&quot;1234&quot; height=&quot;45&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEiVBjjxVrbzM0Qi0QaqmaBQwS1HOh2TVLrTPPcyGPtqvy34xleny1JF_Av2xfnf45GqvDcQC0dPurQEKvn1Vnv-qImXXq1mK8vem6MWTYYnPRYSL4Meqa09Yw7vlrSg3Mjf1eolR0JbUcOU40O39zpq1XlLtbfKhp_SIHg-SiVYj2FQMVN9Kp3tQ8Dz&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;span face=&quot;&amp;quot;Google Sans&amp;quot;, Roboto, Arial, sans-serif&quot; style=&quot;color: #202124; font-size: 1.125rem; letter-spacing: 0px;&quot;&gt;分別將你的google&lt;/span&gt;&lt;span face=&quot;&amp;quot;Google Sans&amp;quot;, Roboto, Arial, sans-serif&quot; style=&quot;background-color: white; color: #202124; font-size: 1.125rem; letter-spacing: 0px;&quot;&gt;&amp;nbsp;AdSense 程式碼複製並貼到三個檔案的如下位置：&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEiKvPPAw_KRDha5mfzWhEP-dACopIQFpioR8Cly-2jAD7AHAB6NNzl121OoY0fcw9-50N3qFminudG7NijnjnlmjRcKn_G_HjCxldM49Ah73SB2GfpTVxS5NDuhnQfN2nu2bnge7db9uXcaFjL0PT1auo9-_dTXFswt0IJc9cDxXpqJVuHFuyyvXB44&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img alt=&quot;&quot; data-original-height=&quot;401&quot; data-original-width=&quot;1048&quot; height=&quot;122&quot; src=&quot;https://blogger.googleusercontent.com/img/a/AVvXsEiKvPPAw_KRDha5mfzWhEP-dACopIQFpioR8Cly-2jAD7AHAB6NNzl121OoY0fcw9-50N3qFminudG7NijnjnlmjRcKn_G_HjCxldM49Ah73SB2GfpTVxS5NDuhnQfN2nu2bnge7db9uXcaFjL0PT1auo9-_dTXFswt0IJc9cDxXpqJVuHFuyyvXB44&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;text-align: center;&quot;&gt;改成你的&lt;/span&gt;google&lt;span face=&quot;&amp;quot;Google Sans&amp;quot;, Roboto, Arial, sans-serif&quot; style=&quot;background-color: white; color: #202124; font-size: 1.125rem; letter-spacing: 0px;&quot;&gt;&amp;nbsp;AdSense 程式碼即可。&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: left;&quot;&gt;&lt;span face=&quot;&amp;quot;Google Sans&amp;quot;, Roboto, Arial, sans-serif&quot; style=&quot;background-color: white; color: #202124; font-size: 1.125rem; letter-spacing: 0px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;p style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;http://fagoteach.no-ip.org/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yuhfa.blogspot.com/feeds/6585445828460151581/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/906613225516010174/6585445828460151581' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/906613225516010174/posts/default/6585445828460151581'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/906613225516010174/posts/default/6585445828460151581'/><link rel='alternate' type='text/html' href='http://yuhfa.blogspot.com/2023/02/gallery2-google-adsense.html' title='gallery2 在布景主內下加入google adsense 程式碼'/><author><name>發哥</name><uri>http://www.blogger.com/profile/08767606783186239234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://photos1.blogger.com/blogger2/2750/110670559755372/212/gse_multipart22619.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/a/AVvXsEj2EfA9CoYhkRTMCqDmRHlkb6fpJ2AwI1BHMTEPiegitITrl5w2YAbEl-z4u4HWRw2enBKsiGADZ4SwJSkthEPZdJ19kjZ0KsyRnPYiuSns0zX8LWRMJMB_rZb43JeSGuI9nySfNojb_YFhtUU8sqrYt079X6nc4rviM2QEUEAnmPU5sQXvpJP-m9Wy=s72-c" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-906613225516010174.post-7166976311788054470</id><published>2019-09-10T23:02:00.000-07:00</published><updated>2019-09-10T23:02:21.991-07:00</updated><title type='text'>限制固定IP可以連線到webserver，當固定IP被換成另一組時，必須調整的內容有如下：</title><content type='html'>1.首先是router的IP存取限制要調整&lt;br /&gt;
接著如你的服務有webmin、ssh、phpmyadmin、防火牆，&lt;br /&gt;
2.則你還必須先在server端本地登入，將ssh server 的&lt;b style=&quot;background-color: white; border: 0px; color: #444444; font-family: Raleway; font-size: 16px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;/etc/hosts.allowserver 的/etc/hosts.allow加入更改你新的IP&lt;/b&gt;&lt;br /&gt;
&lt;b style=&quot;background-color: white; border: 0px; color: #444444; font-family: Raleway; font-size: 16px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;3.再到clinet端登入ssh，編輯&lt;/b&gt;&lt;span style=&quot;background-color: white; color: #555555; font-family: &amp;quot;lato&amp;quot; , sans-serif; font-size: 14px;&quot;&gt;vi /etc/webmin/miniserv.conf，更改加入你新&lt;/span&gt;&lt;b style=&quot;background-color: white; border: 0px; color: #444444; font-family: Raleway; font-size: 16px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;的IP&lt;/b&gt;&lt;br /&gt;
&lt;b style=&quot;background-color: white; border: 0px; color: #444444; font-family: Raleway; font-size: 16px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;4.再登入webmin，的網頁伺服器裡的/&lt;/b&gt;預設伺服器/個別路徑選項/(phpmyadmin)/存取控制/限制進入\新增你的新IP。&lt;br /&gt;
或者編輯&lt;span style=&quot;background-color: white; font-family: monospace;&quot;&gt;/etc/httpd/conf.d/phpMyAdmin.conf，新增&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #555555; font-family: &amp;quot;lato&amp;quot; , sans-serif; font-size: 14px;&quot;&gt;你新&lt;/span&gt;&lt;b style=&quot;background-color: white; border: 0px; color: #444444; font-family: Raleway; font-size: 16px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;的IP&lt;/b&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;http://fagoteach.no-ip.org/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yuhfa.blogspot.com/feeds/7166976311788054470/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/906613225516010174/7166976311788054470' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/906613225516010174/posts/default/7166976311788054470'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/906613225516010174/posts/default/7166976311788054470'/><link rel='alternate' type='text/html' href='http://yuhfa.blogspot.com/2019/09/ipwebserverip.html' title='限制固定IP可以連線到webserver，當固定IP被換成另一組時，必須調整的內容有如下：'/><author><name>發哥</name><uri>http://www.blogger.com/profile/08767606783186239234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://photos1.blogger.com/blogger2/2750/110670559755372/212/gse_multipart22619.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-906613225516010174.post-1200376988326287930</id><published>2016-12-17T21:54:00.004-08:00</published><updated>2016-12-17T21:54:41.668-08:00</updated><title type='text'>如何從命令列登入取消qnap的兩階段認證功能</title><content type='html'>Assuming you still have ssh access (as it&#39;s not two-factor protected) 
... remove the secondSV.conf from the user profile in question in 
/mnt/HDA_ROOT/.config/.qos_config/users/[username]/ &lt;br /&gt;
如若你要登入的帳號是admin則使用下列指令移除secondSV.conf&lt;br /&gt;
rm /mnt/HDA_ROOT/.config/.qos_config/users/admin/secondSV.conf&lt;div class=&quot;blogger-post-footer&quot;&gt;http://fagoteach.no-ip.org/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yuhfa.blogspot.com/feeds/1200376988326287930/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/906613225516010174/1200376988326287930' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/906613225516010174/posts/default/1200376988326287930'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/906613225516010174/posts/default/1200376988326287930'/><link rel='alternate' type='text/html' href='http://yuhfa.blogspot.com/2016/12/qnap.html' title='如何從命令列登入取消qnap的兩階段認證功能'/><author><name>發哥</name><uri>http://www.blogger.com/profile/08767606783186239234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://photos1.blogger.com/blogger2/2750/110670559755372/212/gse_multipart22619.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-906613225516010174.post-2136940261763539387</id><published>2016-10-07T06:07:00.003-07:00</published><updated>2016-10-07T06:07:59.925-07:00</updated><title type='text'>中正高中校內ftp網址</title><content type='html'>203.72.62.124&lt;div class=&quot;blogger-post-footer&quot;&gt;http://fagoteach.no-ip.org/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yuhfa.blogspot.com/feeds/2136940261763539387/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/906613225516010174/2136940261763539387' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/906613225516010174/posts/default/2136940261763539387'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/906613225516010174/posts/default/2136940261763539387'/><link rel='alternate' type='text/html' href='http://yuhfa.blogspot.com/2016/10/ftp.html' title='中正高中校內ftp網址'/><author><name>發哥</name><uri>http://www.blogger.com/profile/08767606783186239234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://photos1.blogger.com/blogger2/2750/110670559755372/212/gse_multipart22619.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-906613225516010174.post-3913061102617645021</id><published>2016-09-26T21:30:00.001-07:00</published><updated>2016-09-26T21:30:29.760-07:00</updated><title type='text'>acer pc school MAC </title><content type='html'>EC-A8-6B-91-1F-04&lt;div class=&quot;blogger-post-footer&quot;&gt;http://fagoteach.no-ip.org/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yuhfa.blogspot.com/feeds/3913061102617645021/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/906613225516010174/3913061102617645021' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/906613225516010174/posts/default/3913061102617645021'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/906613225516010174/posts/default/3913061102617645021'/><link rel='alternate' type='text/html' href='http://yuhfa.blogspot.com/2016/09/acer-pc-school-mac.html' title='acer pc school MAC '/><author><name>發哥</name><uri>http://www.blogger.com/profile/08767606783186239234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://photos1.blogger.com/blogger2/2750/110670559755372/212/gse_multipart22619.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-906613225516010174.post-5554356968267138315</id><published>2016-09-09T02:58:00.001-07:00</published><updated>2016-09-09T02:58:06.306-07:00</updated><title type='text'>我個人的學生名冊與成績資料庫更新方式</title><content type='html'>我個人的學生名冊與成績資料庫更新方式&lt;div&gt;
將舊的資料庫分別匯出為sql與OpenDocument Spreadsheet格式各一份，然後打開OpenDocument Spreadsheet檔，將新一年的學生資料加入，再將其匯入到mysql資料庫裡，這時會是一個所謂的工作表的資料表，再將該資料表裡的資料匯出為sql檔，而後將該sql檔裡的&lt;/div&gt;
&lt;div&gt;
所有新的人員資料複製，再將原第一次匯出的sql檔裡的人員資料取代，最後再存檔匯入資料庫裡即可！&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;http://fagoteach.no-ip.org/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yuhfa.blogspot.com/feeds/5554356968267138315/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/906613225516010174/5554356968267138315' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/906613225516010174/posts/default/5554356968267138315'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/906613225516010174/posts/default/5554356968267138315'/><link rel='alternate' type='text/html' href='http://yuhfa.blogspot.com/2016/09/blog-post.html' title='我個人的學生名冊與成績資料庫更新方式'/><author><name>發哥</name><uri>http://www.blogger.com/profile/08767606783186239234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://photos1.blogger.com/blogger2/2750/110670559755372/212/gse_multipart22619.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-906613225516010174.post-4267495989517801541</id><published>2016-03-01T05:30:00.001-08:00</published><updated>2016-03-19T01:29:05.302-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux指令"/><title type='text'>使用 sed 工具在 Linux 環境下快速完成「搜尋取代」的任務</title><content type='html'>&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &#39;Segoe UI&#39;, 微軟正黑體; font-size: 16px; line-height: 26.1818px; margin-bottom: 10px;&quot;&gt;
在 Windows 有&amp;nbsp;&lt;a href=&quot;http://tools.tortoisesvn.net/grepWin.html&quot; rel=&quot;nofollow&quot; style=&quot;background: transparent; box-sizing: border-box; color: #428bca; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;grepWin&lt;/a&gt;&amp;nbsp;可快速執行多檔案的搜尋取代任務，而在 Linux 環境下就非&amp;nbsp;&lt;a href=&quot;http://en.wikipedia.org/wiki/Sed&quot; rel=&quot;nofollow&quot; style=&quot;background: transparent; box-sizing: border-box; color: #428bca; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;sed&lt;/a&gt;&amp;nbsp;莫屬了，為了能讓&amp;nbsp;&lt;a href=&quot;http://en.wikipedia.org/wiki/Sed&quot; rel=&quot;nofollow&quot; style=&quot;background: transparent; box-sizing: border-box; color: #428bca; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;sed&lt;/a&gt;&amp;nbsp;的功效達到極致，你還需要多瞭解&amp;nbsp;&lt;a href=&quot;http://en.wikipedia.org/wiki/Find&quot; rel=&quot;nofollow&quot; style=&quot;background: transparent; box-sizing: border-box; color: #428bca; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;find&lt;/a&gt;&amp;nbsp;指令與&amp;nbsp;&lt;a href=&quot;http://en.wikipedia.org/wiki/Regex&quot; rel=&quot;nofollow&quot; style=&quot;background: transparent; box-sizing: border-box; color: #428bca; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Regular expression&lt;/a&gt;&amp;nbsp;語法才能對你的搜尋取代任務更靈活的運用，以下是幾個常用的指令與說明。&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &#39;Segoe UI&#39;, 微軟正黑體; font-size: 16px; line-height: 26.1818px; margin-bottom: 10px;&quot;&gt;
&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;學習&amp;nbsp;&lt;/strong&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Sed&quot; rel=&quot;nofollow&quot; style=&quot;background: transparent; box-sizing: border-box; color: #428bca; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;sed&lt;/strong&gt;&lt;/a&gt;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;&amp;nbsp;的流程：&lt;/strong&gt;&lt;/div&gt;
&lt;ol style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &#39;Segoe UI&#39;, 微軟正黑體; font-size: 16px; line-height: 26.1818px; margin-bottom: 10px; margin-top: 0px;&quot;&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;先練習單一檔案操作，並練習搜尋取代的語法 (不直接寫入檔案)&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;確認語法正確後，就可以套用&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; color: red; font-family: &amp;quot;consolas&amp;quot;;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;-i&lt;/strong&gt;&lt;/span&gt;&amp;nbsp;選項參數可將搜尋取代的結果直接寫入該檔案&lt;/li&gt;
&lt;li style=&quot;box-sizing: border-box;&quot;&gt;確認無誤後可搭配&amp;nbsp;&lt;a href=&quot;http://en.wikipedia.org/wiki/Find&quot; rel=&quot;nofollow&quot; style=&quot;background: transparent; box-sizing: border-box; color: #428bca; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;find&lt;/a&gt;&amp;nbsp;指令進行多檔案批次搜尋取代 (功能強大、威力十足)&lt;/li&gt;
&lt;/ol&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &#39;Segoe UI&#39;, 微軟正黑體; font-size: 16px; line-height: 26.1818px; margin-bottom: 10px;&quot;&gt;
&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;使用&amp;nbsp;&lt;/strong&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/Sed&quot; rel=&quot;nofollow&quot; style=&quot;background: transparent; box-sizing: border-box; color: #428bca; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;sed&lt;/strong&gt;&lt;/a&gt;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;&amp;nbsp;的範例：&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &#39;Segoe UI&#39;, 微軟正黑體; font-size: 16px; line-height: 26.1818px; margin-bottom: 10px;&quot;&gt;
1. 針對單一檔案進行搜尋取代 ( 針對每一行&lt;span style=&quot;box-sizing: border-box; color: blue;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;第一次出現&lt;/strong&gt;的搜尋文字&lt;/span&gt;&amp;nbsp;) ( 區分大小寫 )&lt;/div&gt;
&lt;div class=&quot;csharpcode-wrapper&quot; id=&quot;codeSnippetWrapper&quot; style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &#39;Segoe UI&#39;, 微軟正黑體; font-size: 16px; line-height: 26.1818px;&quot;&gt;
&lt;pre class=&quot;csharpcode&quot; id=&quot;codeSnippet&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &#39;Courier New&#39;, monospace; font-size: 13px; line-height: 1.42857; margin-bottom: 10px; padding: 9.5px; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt;sed -e &lt;span class=&quot;str&quot; style=&quot;box-sizing: border-box;&quot;&gt;&#39;s/cpu/memory/&#39;&lt;/span&gt; test.txt&lt;/pre&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &#39;Segoe UI&#39;, 微軟正黑體; font-size: 16px; line-height: 26.1818px; margin-bottom: 10px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; color: red;&quot;&gt;&amp;nbsp;&amp;nbsp; 備註 1：如上例&amp;nbsp;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; color: blue;&quot;&gt;cpu&lt;/span&gt;&lt;/strong&gt;&amp;nbsp;為搜尋字串，而&amp;nbsp;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; color: blue;&quot;&gt;memory&lt;/span&gt;&lt;/strong&gt;&amp;nbsp;為替代字串，而替代的結果會直接輸出在畫面上。&amp;nbsp;&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;&lt;span style=&quot;box-sizing: border-box; color: red;&quot;&gt;&amp;nbsp;&amp;nbsp; 備註 2：此範例並沒有加上&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; color: red; font-family: &amp;quot;consolas&amp;quot;;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;-i&lt;/strong&gt;&lt;/span&gt;&amp;nbsp;選項參數，所以替代的結果並不會寫入&amp;nbsp;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;test.txt&lt;/strong&gt;&amp;nbsp;檔案。&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &#39;Segoe UI&#39;, 微軟正黑體; font-size: 16px; line-height: 26.1818px; margin-bottom: 10px;&quot;&gt;
2. 針對單一檔案進行搜尋取代 ( 針對每一行&lt;span style=&quot;box-sizing: border-box; color: blue;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;第一次出現&lt;/strong&gt;的搜尋文字&lt;/span&gt;&amp;nbsp;) (&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; color: blue;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;不區分大小寫&lt;/strong&gt;&lt;/span&gt;&amp;nbsp;)&lt;/div&gt;
&lt;div class=&quot;csharpcode-wrapper&quot; id=&quot;codeSnippetWrapper&quot; style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &#39;Segoe UI&#39;, 微軟正黑體; font-size: 16px; line-height: 26.1818px;&quot;&gt;
&lt;pre class=&quot;csharpcode&quot; id=&quot;codeSnippet&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &#39;Courier New&#39;, monospace; font-size: 13px; line-height: 1.42857; margin-bottom: 10px; padding: 9.5px; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt;sed -e &lt;span class=&quot;str&quot; style=&quot;box-sizing: border-box;&quot;&gt;&#39;s/cpu/memory/g&#39;&lt;/span&gt; test.txt&lt;/pre&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &#39;Segoe UI&#39;, 微軟正黑體; font-size: 16px; line-height: 26.1818px; margin-bottom: 10px;&quot;&gt;
3. 針對單一檔案進行搜尋取代 ( 針對每一行&lt;span style=&quot;box-sizing: border-box; color: blue;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;所有出現過&lt;/strong&gt;的搜尋文字&lt;/span&gt;&amp;nbsp;) (&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; color: blue;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;不區分大小寫&lt;/strong&gt;&lt;/span&gt;&amp;nbsp;)&lt;/div&gt;
&lt;div class=&quot;csharpcode-wrapper&quot; id=&quot;codeSnippetWrapper&quot; style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &#39;Segoe UI&#39;, 微軟正黑體; font-size: 16px; line-height: 26.1818px;&quot;&gt;
&lt;pre class=&quot;csharpcode&quot; id=&quot;codeSnippet&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &#39;Courier New&#39;, monospace; font-size: 13px; line-height: 1.42857; margin-bottom: 10px; padding: 9.5px; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt;sed -e &lt;span class=&quot;str&quot; style=&quot;box-sizing: border-box;&quot;&gt;&#39;s/cpu/memory/g&#39;&lt;/span&gt; test.txt&lt;/pre&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &#39;Segoe UI&#39;, 微軟正黑體; font-size: 16px; line-height: 26.1818px; margin-bottom: 10px;&quot;&gt;
4. 針對單一檔案進行搜尋取代 ( 針對每一行&lt;span style=&quot;box-sizing: border-box; color: blue;&quot;&gt;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;第一次出現&lt;/strong&gt;的搜尋文字&lt;/span&gt;&amp;nbsp;) (&amp;nbsp;&lt;span style=&quot;box-sizing: border-box; color: red;&quot;&gt;將搜尋取代的結果直接回寫檔案&lt;/span&gt;&amp;nbsp;)&lt;/div&gt;
&lt;div class=&quot;csharpcode-wrapper&quot; id=&quot;codeSnippetWrapper&quot; style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &#39;Segoe UI&#39;, 微軟正黑體; font-size: 16px; line-height: 26.1818px;&quot;&gt;
&lt;pre class=&quot;csharpcode&quot; id=&quot;codeSnippet&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &#39;Courier New&#39;, monospace; font-size: 13px; line-height: 1.42857; margin-bottom: 10px; padding: 9.5px; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt;sed &lt;span style=&quot;box-sizing: border-box; color: red;&quot;&gt;-i&lt;/span&gt; -e &lt;span class=&quot;str&quot; style=&quot;box-sizing: border-box;&quot;&gt;&#39;s/cpu/memory/g&#39;&lt;/span&gt; test.txt&lt;/pre&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &#39;Segoe UI&#39;, 微軟正黑體; font-size: 16px; line-height: 26.1818px; margin-bottom: 10px;&quot;&gt;
5. 利用&amp;nbsp;&lt;a href=&quot;http://en.wikipedia.org/wiki/Find&quot; rel=&quot;nofollow&quot; style=&quot;background: transparent; box-sizing: border-box; color: #428bca; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;find&lt;/a&gt;&amp;nbsp;指令找到多個符合條件的檔案，並使用&amp;nbsp;&lt;a href=&quot;http://en.wikipedia.org/wiki/Sed&quot; rel=&quot;nofollow&quot; style=&quot;background: transparent; box-sizing: border-box; color: #428bca; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;sed&lt;/a&gt;&amp;nbsp;做搜尋取代的動作&lt;/div&gt;
&lt;div class=&quot;csharpcode-wrapper&quot; id=&quot;codeSnippetWrapper&quot; style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &#39;Segoe UI&#39;, 微軟正黑體; font-size: 16px; line-height: 26.1818px;&quot;&gt;
&lt;pre class=&quot;csharpcode&quot; id=&quot;codeSnippet&quot; style=&quot;background-color: whitesmoke; border-radius: 4px; border: 1px solid rgb(204, 204, 204); box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &#39;Courier New&#39;, monospace; font-size: 13px; line-height: 1.42857; margin-bottom: 10px; padding: 9.5px; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;&quot;&gt;find . -type f -exec sed -e &lt;span class=&quot;str&quot; style=&quot;box-sizing: border-box;&quot;&gt;&#39;s/cpu/memory/g&#39;&lt;/span&gt; &lt;span class=&quot;str&quot; style=&quot;box-sizing: border-box;&quot;&gt;&#39;{}&#39;&lt;/span&gt; &lt;span style=&quot;box-sizing: border-box; color: red;&quot;&gt;\;&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &#39;Segoe UI&#39;, 微軟正黑體; font-size: 16px; line-height: 26.1818px; margin-bottom: 10px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; color: red;&quot;&gt;&amp;nbsp;&amp;nbsp; 注意&lt;/span&gt;：使用&amp;nbsp;&lt;a href=&quot;http://en.wikipedia.org/wiki/Find&quot; rel=&quot;nofollow&quot; style=&quot;background: transparent; box-sizing: border-box; color: #428bca; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;find&lt;/a&gt;&amp;nbsp;指令搭配&amp;nbsp;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; color: red; font-family: &amp;quot;consolas&amp;quot;;&quot;&gt;-exec&lt;/span&gt;&lt;/strong&gt;&amp;nbsp;參數時，最後一個&amp;nbsp;&lt;strong style=&quot;box-sizing: border-box;&quot;&gt;&lt;span style=&quot;box-sizing: border-box; color: red; font-family: &amp;quot;consolas&amp;quot;;&quot;&gt;\;&lt;/span&gt;&lt;/strong&gt;&amp;nbsp;是非常重要的關鍵，一定要加上才能正常執行。&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;http://fagoteach.no-ip.org/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yuhfa.blogspot.com/feeds/4267495989517801541/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/906613225516010174/4267495989517801541' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/906613225516010174/posts/default/4267495989517801541'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/906613225516010174/posts/default/4267495989517801541'/><link rel='alternate' type='text/html' href='http://yuhfa.blogspot.com/2016/03/sed-linux.html' title='使用 sed 工具在 Linux 環境下快速完成「搜尋取代」的任務'/><author><name>發哥</name><uri>http://www.blogger.com/profile/08767606783186239234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://photos1.blogger.com/blogger2/2750/110670559755372/212/gse_multipart22619.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-906613225516010174.post-7730872754434315686</id><published>2016-02-25T18:04:00.001-08:00</published><updated>2016-03-19T01:29:29.821-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux指令"/><title type='text'>linux 配合find 刪除特定檔名的檔案方法</title><content type='html'>&lt;span style=&quot;background-color: white; font-family: &amp;quot;verdana&amp;quot;; font-size: 13.3333px;&quot;&gt;find ./ -name &quot;*.cache&quot; -exec rm -rf {} \&lt;/span&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;http://fagoteach.no-ip.org/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yuhfa.blogspot.com/feeds/7730872754434315686/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/906613225516010174/7730872754434315686' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/906613225516010174/posts/default/7730872754434315686'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/906613225516010174/posts/default/7730872754434315686'/><link rel='alternate' type='text/html' href='http://yuhfa.blogspot.com/2016/02/linux-find.html' title='linux 配合find 刪除特定檔名的檔案方法'/><author><name>發哥</name><uri>http://www.blogger.com/profile/08767606783186239234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://photos1.blogger.com/blogger2/2750/110670559755372/212/gse_multipart22619.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-906613225516010174.post-7972241116842098826</id><published>2016-02-24T17:49:00.000-08:00</published><updated>2016-03-19T01:29:50.655-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux相關"/><title type='text'>以 mod_evasive 阻擋 D.o.S 攻擊</title><content type='html'>&lt;span style=&quot;background-color: black; color: silver; font-family: &amp;quot;ar pl uming tw&amp;quot; , , &amp;quot;mingliu&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: 20px; line-height: 20px;&quot;&gt;在 CentOS 下有裝 EPEL 的話，使用 yum 安裝即可&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: black; color: silver; font-family: &amp;quot;ar pl uming tw&amp;quot; , , &amp;quot;mingliu&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: 20px; line-height: 20px;&quot;&gt;$ yum install mod_evasive&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: black; color: silver; font-family: &amp;quot;ar pl uming tw&amp;quot; , , &amp;quot;mingliu&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: 20px; line-height: 20px;&quot;&gt;編輯mod_evasive設定檔&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;color: silver; font-family: &#39;AR PL UMING TW&#39;, 細明體, mingliu, Courier, monospace; font-size: 20px; line-height: 20px;&quot; /&gt;
&lt;span style=&quot;background-color: black; color: silver; font-family: &amp;quot;ar pl uming tw&amp;quot; , , &amp;quot;mingliu&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: 20px; line-height: 20px;&quot;&gt;$ vim /etc/httpd/conf.d/mod_evasive.conf&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;color: silver; font-family: &#39;AR PL UMING TW&#39;, 細明體, mingliu, Courier, monospace; font-size: 20px; line-height: 20px;&quot; /&gt;
&lt;span style=&quot;background-color: black; color: silver; font-family: &amp;quot;ar pl uming tw&amp;quot; , , &amp;quot;mingliu&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: 20px; line-height: 20px;&quot;&gt;&amp;nbsp; &amp;nbsp; # 用來儲存黑名單的檔案大小&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: black; color: silver; font-family: &amp;quot;ar pl uming tw&amp;quot; , , &amp;quot;mingliu&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: 20px; line-height: 20px;&quot;&gt;&amp;nbsp; &amp;nbsp; DOSHashTableSize &amp;nbsp; &amp;nbsp;3097&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: black; color: silver; font-family: &amp;quot;ar pl uming tw&amp;quot; , , &amp;quot;mingliu&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: 20px; line-height: 20px;&quot;&gt;&amp;nbsp; &amp;nbsp; # 同一個網址在 DOSPageInterval 內被同一個IP存取幾次時，要阻擋此IP&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: black; color: silver; font-family: &amp;quot;ar pl uming tw&amp;quot; , , &amp;quot;mingliu&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: 20px; line-height: 20px;&quot;&gt;&amp;nbsp; &amp;nbsp; DOSPageCount &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: black; color: silver; font-family: &amp;quot;ar pl uming tw&amp;quot; , , &amp;quot;mingliu&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: 20px; line-height: 20px;&quot;&gt;&amp;nbsp; &amp;nbsp; # 同一個IP在 DOSSiteInterval 存取了網站幾次時，要阻擋此IP&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: black; color: silver; font-family: &amp;quot;ar pl uming tw&amp;quot; , , &amp;quot;mingliu&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: 20px; line-height: 20px;&quot;&gt;&amp;nbsp; &amp;nbsp; DOSSiteCount &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;50&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: black; color: silver; font-family: &amp;quot;ar pl uming tw&amp;quot; , , &amp;quot;mingliu&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: 20px; line-height: 20px;&quot;&gt;&amp;nbsp; &amp;nbsp; DOSPageInterval &amp;nbsp; &amp;nbsp; 1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: black; color: silver; font-family: &amp;quot;ar pl uming tw&amp;quot; , , &amp;quot;mingliu&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: 20px; line-height: 20px;&quot;&gt;&amp;nbsp; &amp;nbsp; DOSSiteInterval &amp;nbsp; &amp;nbsp; 1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: black; color: silver; font-family: &amp;quot;ar pl uming tw&amp;quot; , , &amp;quot;mingliu&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: 20px; line-height: 20px;&quot;&gt;&amp;nbsp; &amp;nbsp; # 被加入阻擋名單的IP要被擋多久，預設為10秒&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: black; color: silver; font-family: &amp;quot;ar pl uming tw&amp;quot; , , &amp;quot;mingliu&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: 20px; line-height: 20px;&quot;&gt;&amp;nbsp; &amp;nbsp; # 若被阻擋期間持續攻擊時，此時間會一直加上去，所以不用設很大&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: black; color: silver; font-family: &amp;quot;ar pl uming tw&amp;quot; , , &amp;quot;mingliu&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: 20px; line-height: 20px;&quot;&gt;&amp;nbsp; &amp;nbsp; DOSBlockingPeriod &amp;nbsp; 10&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;color: silver; font-family: &#39;AR PL UMING TW&#39;, 細明體, mingliu, Courier, monospace; font-size: 20px; line-height: 20px;&quot; /&gt;
&lt;span style=&quot;background-color: black; color: silver; font-family: &amp;quot;ar pl uming tw&amp;quot; , , &amp;quot;mingliu&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: 20px; line-height: 20px;&quot;&gt;&amp;nbsp; &amp;nbsp; #用這個目錄來記錄log檔&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: black; color: silver; font-family: &amp;quot;ar pl uming tw&amp;quot; , , &amp;quot;mingliu&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: 20px; line-height: 20px;&quot;&gt;&amp;nbsp; &amp;nbsp; DOSLogDir &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;/var/lock/mod_evasive&quot;&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;color: silver; font-family: &#39;AR PL UMING TW&#39;, 細明體, mingliu, Courier, monospace; font-size: 20px; line-height: 20px;&quot; /&gt;
&lt;span style=&quot;background-color: black; color: silver; font-family: &amp;quot;ar pl uming tw&amp;quot; , , &amp;quot;mingliu&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: 20px; line-height: 20px;&quot;&gt;&amp;nbsp; &amp;nbsp; # 設定白名單&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: black; color: silver; font-family: &amp;quot;ar pl uming tw&amp;quot; , , &amp;quot;mingliu&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: 20px; line-height: 20px;&quot;&gt;&amp;nbsp; &amp;nbsp; DOSWhitelist &amp;nbsp; 127.0.0.1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: black; color: silver; font-family: &amp;quot;ar pl uming tw&amp;quot; , , &amp;quot;mingliu&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: 20px; line-height: 20px;&quot;&gt;&amp;nbsp; &amp;nbsp; DOSWhitelist &amp;nbsp; 192.168.*.*&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;color: silver; font-family: &#39;AR PL UMING TW&#39;, 細明體, mingliu, Courier, monospace; font-size: 20px; line-height: 20px;&quot; /&gt;
&lt;br style=&quot;color: silver; font-family: &#39;AR PL UMING TW&#39;, 細明體, mingliu, Courier, monospace; font-size: 20px; line-height: 20px;&quot; /&gt;
&lt;span style=&quot;background-color: black; color: silver; font-family: &amp;quot;ar pl uming tw&amp;quot; , , &amp;quot;mingliu&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: 20px; line-height: 20px;&quot;&gt;建立可供 apache 寫入log的 mod_evasive 目錄&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;color: silver; font-family: &#39;AR PL UMING TW&#39;, 細明體, mingliu, Courier, monospace; font-size: 20px; line-height: 20px;&quot; /&gt;
&lt;span style=&quot;background-color: black; color: silver; font-family: &amp;quot;ar pl uming tw&amp;quot; , , &amp;quot;mingliu&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: 20px; line-height: 20px;&quot;&gt;$ mkdir /var/lock/mod_evasive; chown apache /var/lock/mod_evasive&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;color: silver; font-family: &#39;AR PL UMING TW&#39;, 細明體, mingliu, Courier, monospace; font-size: 20px; line-height: 20px;&quot; /&gt;
&lt;span style=&quot;background-color: black; color: silver; font-family: &amp;quot;ar pl uming tw&amp;quot; , , &amp;quot;mingliu&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: 20px; line-height: 20px;&quot;&gt;重載 apache&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: black; color: silver; font-family: &amp;quot;ar pl uming tw&amp;quot; , , &amp;quot;mingliu&amp;quot; , &amp;quot;courier&amp;quot; , monospace; font-size: 20px; line-height: 20px;&quot;&gt;$ service httpd reload&lt;/span&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;http://fagoteach.no-ip.org/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yuhfa.blogspot.com/feeds/7972241116842098826/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/906613225516010174/7972241116842098826' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/906613225516010174/posts/default/7972241116842098826'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/906613225516010174/posts/default/7972241116842098826'/><link rel='alternate' type='text/html' href='http://yuhfa.blogspot.com/2016/02/modevasive-dos.html' title='以 mod_evasive 阻擋 D.o.S 攻擊'/><author><name>發哥</name><uri>http://www.blogger.com/profile/08767606783186239234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://photos1.blogger.com/blogger2/2750/110670559755372/212/gse_multipart22619.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-906613225516010174.post-4372134713322381576</id><published>2016-02-24T16:27:00.000-08:00</published><updated>2016-03-19T01:30:03.495-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux相關"/><title type='text'>安裝DoS Deflate 減輕 DDoS攻擊</title><content type='html'>&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &#39;Open Sans&#39;, Verdana, Tahoma, serif; font-size: 17.5px; line-height: 22.7273px; margin-bottom: 10px;&quot;&gt;
(D)DoS Deflate is a lightweight bash shell script designed to assist in the process of blocking a denial of service attack. It utilizes the command below to create a list of IP addresses connected to the server, along with their total number of connections.&lt;/div&gt;
&lt;blockquote style=&quot;background-color: white; border-left-color: rgb(238, 238, 238); border-left-style: solid; border-left-width: 5px; box-sizing: border-box; color: #333333; font-family: &#39;Open Sans&#39;, Verdana, Tahoma, serif; font-size: 17.5px; line-height: 22.7273px; margin: 0px 0px 20px; padding: 10px 20px;&quot;&gt;
netstat -ntu | awk &#39;{print $5}&#39; | cut -d: -f1 | sort | uniq -c | sort -n&lt;/blockquote&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &#39;Open Sans&#39;, Verdana, Tahoma, serif; font-size: 17.5px; line-height: 22.7273px; margin-bottom: 10px;&quot;&gt;
&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;
&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;
How To Install (D)DoS Deflate :-&lt;/div&gt;
&lt;blockquote style=&quot;background-color: white; border-left-color: rgb(238, 238, 238); border-left-style: solid; border-left-width: 5px; box-sizing: border-box; color: #333333; font-family: &#39;Open Sans&#39;, Verdana, Tahoma, serif; font-size: 17.5px; line-height: 22.7273px; margin: 0px 0px 20px; padding: 10px 20px;&quot;&gt;
wget http://www.inetbase.com/scripts/ddos/install.sh&lt;br /&gt;
chmod 0700 install.sh&lt;br /&gt;
./install.sh&lt;/blockquote&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &#39;Open Sans&#39;, Verdana, Tahoma, serif; font-size: 17.5px; line-height: 22.7273px; margin-bottom: 10px;&quot;&gt;
&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;
&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;
How To UnInstall (D)DoS Deflate :-&lt;/div&gt;
&lt;blockquote style=&quot;background-color: white; border-left-color: rgb(238, 238, 238); border-left-style: solid; border-left-width: 5px; box-sizing: border-box; color: #333333; font-family: &#39;Open Sans&#39;, Verdana, Tahoma, serif; font-size: 17.5px; line-height: 22.7273px; margin: 0px 0px 20px; padding: 10px 20px;&quot;&gt;
wget http://www.inetbase.com/scripts/ddos/uninstall.ddos&lt;br /&gt;
chmod 0700 uninstall.ddos&lt;br /&gt;
./uninstall.ddos&lt;/blockquote&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &#39;Open Sans&#39;, Verdana, Tahoma, serif; font-size: 17.5px; line-height: 22.7273px; margin-bottom: 10px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &#39;Open Sans&#39;, Verdana, Tahoma, serif; font-size: 17.5px; line-height: 22.7273px; margin-bottom: 10px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &#39;Open Sans&#39;, Verdana, Tahoma, serif; font-size: 17.5px; line-height: 22.7273px; margin-bottom: 10px;&quot;&gt;
How To Edit Configuration File:-&lt;/div&gt;
&lt;blockquote style=&quot;background-color: white; border-left-color: rgb(238, 238, 238); border-left-style: solid; border-left-width: 5px; box-sizing: border-box; color: #333333; font-family: &#39;Open Sans&#39;, Verdana, Tahoma, serif; font-size: 17.5px; line-height: 22.7273px; margin: 0px 0px 20px; padding: 10px 20px;&quot;&gt;
vi /usr/local/ddos/ddos.conf&lt;/blockquote&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &#39;Open Sans&#39;, Verdana, Tahoma, serif; font-size: 17.5px; line-height: 22.7273px; margin-bottom: 10px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &#39;Open Sans&#39;, Verdana, Tahoma, serif; font-size: 17.5px; line-height: 22.7273px; margin-bottom: 10px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &#39;Open Sans&#39;, Verdana, Tahoma, serif; font-size: 17.5px; line-height: 22.7273px; margin-bottom: 10px;&quot;&gt;
How To Check The Number Of Connected Ips:-&lt;/div&gt;
&lt;blockquote style=&quot;background-color: white; border-left-color: rgb(238, 238, 238); border-left-style: solid; border-left-width: 5px; box-sizing: border-box; color: #333333; font-family: &#39;Open Sans&#39;, Verdana, Tahoma, serif; font-size: 17.5px; line-height: 22.7273px; margin: 0px 0px 20px; padding: 10px 20px;&quot;&gt;
sh /usr/local/ddos/ddos.sh&lt;/blockquote&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #333333; font-family: &#39;Open Sans&#39;, Verdana, Tahoma, serif; font-size: 17.5px; line-height: 22.7273px; margin-bottom: 10px;&quot;&gt;
&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;
&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;
&lt;br style=&quot;box-sizing: border-box;&quot; /&gt;
How To Restart DDos Deflate:-&lt;/div&gt;
&lt;blockquote style=&quot;background-color: white; border-left-color: rgb(238, 238, 238); border-left-style: solid; border-left-width: 5px; box-sizing: border-box; color: #333333; font-family: &#39;Open Sans&#39;, Verdana, Tahoma, serif; font-size: 17.5px; line-height: 22.7273px; margin: 0px 0px 20px; padding: 10px 20px;&quot;&gt;
sh /usr/local/ddos/ddos.sh -c&lt;/blockquote&gt;
&lt;br /&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;http://fagoteach.no-ip.org/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yuhfa.blogspot.com/feeds/4372134713322381576/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/906613225516010174/4372134713322381576' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/906613225516010174/posts/default/4372134713322381576'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/906613225516010174/posts/default/4372134713322381576'/><link rel='alternate' type='text/html' href='http://yuhfa.blogspot.com/2016/02/dos-deflate-ddos.html' title='安裝DoS Deflate 減輕 DDoS攻擊'/><author><name>發哥</name><uri>http://www.blogger.com/profile/08767606783186239234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://photos1.blogger.com/blogger2/2750/110670559755372/212/gse_multipart22619.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-906613225516010174.post-6256814971194596809</id><published>2016-02-24T00:56:00.001-08:00</published><updated>2016-03-19T01:30:15.782-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux相關"/><title type='text'>更新ClamAv病毒碼！</title><content type='html'>找到freshclam.conf，然後加入以下三行！&lt;br /&gt;
DNSDatabaseInfo current.cvd.clamav.net&lt;br /&gt;
DatabaseMirror&amp;nbsp;&lt;span style=&quot;background-color: #eeeeee; color: #333333; font-family: &amp;quot;verdana&amp;quot; , &amp;quot;geneva&amp;quot; , &amp;quot;lucida&amp;quot;; line-height: 29.6px;&quot;&gt;clamav.stu.edu.tw&lt;/span&gt;&lt;br /&gt;
DatabaseMirror db.ac.clamav.net&lt;br /&gt;
DatabaseMirror database.clamav.net&lt;br /&gt;
使系統自動更新病毒碼&lt;br /&gt;
在crontab中加入&lt;br /&gt;
N * * * * /usr/local/bin/freshclam --quiet&lt;br /&gt;
其中的N值要在3~57中間，但不要用偶數值，因為很多工加台都設成偶數值了。&lt;div class=&quot;blogger-post-footer&quot;&gt;http://fagoteach.no-ip.org/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yuhfa.blogspot.com/feeds/6256814971194596809/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/906613225516010174/6256814971194596809' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/906613225516010174/posts/default/6256814971194596809'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/906613225516010174/posts/default/6256814971194596809'/><link rel='alternate' type='text/html' href='http://yuhfa.blogspot.com/2016/02/clamav.html' title='更新ClamAv病毒碼！'/><author><name>發哥</name><uri>http://www.blogger.com/profile/08767606783186239234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://photos1.blogger.com/blogger2/2750/110670559755372/212/gse_multipart22619.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-906613225516010174.post-6116582019895232147</id><published>2016-02-23T19:34:00.002-08:00</published><updated>2016-03-19T01:30:34.197-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="QNAP"/><title type='text'>QNAP開機自動執行的方法</title><content type='html'>&lt;h2 style=&quot;background: none rgb(255, 255, 255); border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; font-family: &#39;Linux Libertine&#39;, Georgia, Times, serif; font-weight: normal; line-height: 1.3; margin: 1em 0px 0.25em; overflow: hidden; padding: 0px;&quot;&gt;
&lt;span class=&quot;mw-headline&quot; id=&quot;Skills_required&quot;&gt;Skills required&lt;/span&gt;&lt;/h2&gt;
&lt;ul style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 20.3636px; list-style-image: url(&amp;quot;data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%0A%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20width%3D%225%22%20height%3D%2213%22%3E%0A%3Ccircle%20cx%3D%222.5%22%20cy%3D%229.5%22%20r%3D%222.5%22%20fill%3D%22%2300528c%22%2F%3E%0A%3C%2Fsvg%3E%0A&amp;quot;); margin: 0.3em 0px 0px 1.6em; padding: 0px;&quot;&gt;
&lt;li style=&quot;margin-bottom: 0.1em;&quot;&gt;must be able to remote login via ssh or telnet (e.g. use&amp;nbsp;&lt;b&gt;SSH PuTTY&lt;/b&gt;)&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0.1em;&quot;&gt;must know how to edit files using nano, vi, or edit via SFTP (e.g. use&amp;nbsp;&lt;b&gt;WinSCP&lt;/b&gt;)&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 style=&quot;background: none rgb(255, 255, 255); border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; font-family: &#39;Linux Libertine&#39;, Georgia, Times, serif; font-weight: normal; line-height: 1.3; margin: 1em 0px 0.25em; overflow: hidden; padding: 0px;&quot;&gt;
&lt;span class=&quot;mw-headline&quot; id=&quot;MTD-based_method&quot;&gt;MTD-based method&lt;/span&gt;&lt;/h2&gt;
&lt;div style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 20.3636px; margin-bottom: 0.5em; margin-top: 0.5em;&quot;&gt;
autorun.sh is a script which will be executed on every startup of the TS-x09, TS-x19 and TS-x39. Editing this file allows you to start your own programs or overwrite config files with your own copies.&lt;/div&gt;
&lt;h3 style=&quot;background: none rgb(255, 255, 255); border-bottom-style: none; font-family: sans-serif; line-height: 1.6; margin: 0.3em 0px 0px; overflow: hidden; padding-bottom: 0px; padding-top: 0.5em;&quot;&gt;
&lt;span class=&quot;mw-headline&quot; id=&quot;Manual_edit_of_autorun.sh&quot;&gt;Manual edit of autorun.sh&lt;/span&gt;&lt;/h3&gt;
&lt;ol style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 20.3636px; list-style-image: none; margin: 0.3em 0px 0px 3.2em; padding: 0px;&quot;&gt;
&lt;li style=&quot;margin-bottom: 0.1em;&quot;&gt;Log into your QNAP device using SSH or Telnet, for instance by using Putty&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0.1em;&quot;&gt;Optional: install nano; use&amp;nbsp;&lt;b&gt;ipkg install nano&lt;/b&gt;&amp;nbsp;&amp;amp; edit with nano instead of vi&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0.1em;&quot;&gt;Mount config ramblock by finding your specific model below:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;TS-201:&amp;nbsp;&lt;/b&gt;&lt;br /&gt;Mount the config ramblock /dev/mtdblock4:&lt;br /&gt;&lt;code style=&quot;background-color: #f9f9f9; border-radius: 2px; border: 1px solid rgb(221, 221, 221); color: black; font-family: monospace, Courier; padding: 1px 4px;&quot;&gt;# mount -t ext2 /dev/mtdblock4 /tmp/config&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;1 bay:&amp;nbsp;&lt;b&gt;TS-109, TS-109P, TS-110, TS-119,&lt;/b&gt;&lt;br /&gt;2 bay:&amp;nbsp;&lt;b&gt;TS-209, TS-209P, TS-212, TS-219&amp;nbsp;&lt;/b&gt;(TS-219P II:&amp;nbsp;&lt;i&gt;since the new firmware update you maybe have to use ext4 instead of ext2&lt;/i&gt;&lt;b&gt;),&amp;nbsp;&lt;/b&gt;&lt;br /&gt;4 bay:&amp;nbsp;&lt;b&gt;TS-409 (Marvell ARM), TS-412, TS-419P:&lt;/b&gt;&lt;br /&gt;Mount the config ramblock /dev/mtdblock5:&lt;br /&gt;&lt;code style=&quot;background-color: #f9f9f9; border-radius: 2px; border: 1px solid rgb(221, 221, 221); color: black; font-family: monospace, Courier; padding: 1px 4px;&quot;&gt;# mount -t ext2 /dev/mtdblock5 /tmp/config&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;TS-439, TS-509, TS-639, TS-809, TS-809U (x86):&amp;nbsp;&lt;/b&gt;&lt;br /&gt;Mount the config ramblock /dev/sdx6:&lt;br /&gt;&lt;code style=&quot;background-color: #f9f9f9; border-radius: 2px; border: 1px solid rgb(221, 221, 221); color: black; font-family: monospace, Courier; padding: 1px 4px;&quot;&gt;# mount -t ext2 /dev/sdx6 /tmp/config&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;TS-269L:&amp;nbsp;&lt;/b&gt;&lt;br /&gt;Mount the config ramblock /dev/sdc6:&lt;br /&gt;&lt;code style=&quot;background-color: #f9f9f9; border-radius: 2px; border: 1px solid rgb(221, 221, 221); color: black; font-family: monospace, Courier; padding: 1px 4px;&quot;&gt;# mount -t ext2 /dev/sdc6 /tmp/config&lt;/code&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0.1em;&quot;&gt;Create/Edit /tmp/config/autorun.sh .&lt;ol style=&quot;list-style-image: none; margin: 0.3em 0px 0px 3.2em; padding: 0px;&quot;&gt;
&lt;li style=&quot;margin-bottom: 0.1em;&quot;&gt;either using vi:&lt;pre style=&quot;background-color: #f9f9f9; border: 1px solid rgb(221, 221, 221); color: black; font-family: monospace, Courier; line-height: 1.3em; padding: 1em;&quot;&gt;# vi /tmp/config/autorun.sh&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;ol style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 20.3636px; list-style-image: none; margin: 0.3em 0px 0px 3.2em; padding: 0px;&quot;&gt;
&lt;li style=&quot;margin-bottom: 0.1em;&quot;&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0.1em;&quot;&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0.1em;&quot;&gt;Get vi editor into edit mode:&amp;nbsp;&lt;b&gt;press a&lt;/b&gt;&lt;ol style=&quot;list-style-image: none; margin: 0.3em 0px 0px 3.2em; padding: 0px;&quot;&gt;
&lt;li style=&quot;margin-bottom: 0.1em;&quot;&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0.1em;&quot;&gt;Edit whatever you need to&lt;ol style=&quot;list-style-image: none; margin: 0.3em 0px 0px 3.2em; padding: 0px;&quot;&gt;
&lt;li style=&quot;margin-bottom: 0.1em;&quot;&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0.1em;&quot;&gt;Exit edit mode:&amp;nbsp;&lt;b&gt;press ESC&lt;/b&gt;&lt;ol style=&quot;list-style-image: none; margin: 0.3em 0px 0px 3.2em; padding: 0px;&quot;&gt;
&lt;li style=&quot;margin-bottom: 0.1em;&quot;&gt;&lt;ol style=&quot;list-style-image: none; margin: 0.3em 0px 0px 3.2em; padding: 0px;&quot;&gt;
&lt;li style=&quot;margin-bottom: 0.1em;&quot;&gt;Save and exit:&amp;nbsp;&lt;b&gt;press ZZ&lt;/b&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0.1em;&quot;&gt;or editing it using a desktop PC and e.g. SFTP&lt;/li&gt;
&lt;/ol&gt;
&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0.1em;&quot;&gt;Ensure that /tmp/config/autorun.sh is executable:&lt;pre style=&quot;background-color: #f9f9f9; border: 1px solid rgb(221, 221, 221); color: black; font-family: monospace, Courier; line-height: 1.3em; padding: 1em;&quot;&gt;# chmod +x /tmp/config/autorun.sh&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;ol style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 20.3636px; list-style-image: none; margin: 0.3em 0px 0px 3.2em; padding: 0px;&quot;&gt;
&lt;li style=&quot;margin-bottom: 0.1em;&quot;&gt;&lt;b&gt;IMPORTANT:&lt;/b&gt;&amp;nbsp;Unmount the mounted flash partition:&lt;pre style=&quot;background-color: #f9f9f9; border: 1px solid rgb(221, 221, 221); color: black; font-family: monospace, Courier; line-height: 1.3em; padding: 1em;&quot;&gt;# umount /tmp/config&lt;/pre&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 style=&quot;background: none rgb(255, 255, 255); border-bottom-style: none; font-family: sans-serif; line-height: 1.6; margin: 0.3em 0px 0px; overflow: hidden; padding-bottom: 0px; padding-top: 0.5em;&quot;&gt;
&lt;span class=&quot;mw-headline&quot; id=&quot;editautorun.sh:_script_to_ease_autorun.sh_edit&quot;&gt;editautorun.sh: script to ease autorun.sh edit&lt;/span&gt;&lt;/h3&gt;
&lt;div style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 20.3636px; margin-bottom: 0.5em; margin-top: 0.5em;&quot;&gt;
If you edit this file regularly you can save some time by creating a shell script (e.g. editautorun.sh) to automate the process. You can call the script by either putting it in the environment path, or add its folder to the path or call it by an alias.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 20.3636px; margin-bottom: 0.5em; margin-top: 0.5em;&quot;&gt;
The script contents are:&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 20.3636px; margin-bottom: 0.5em; margin-top: 0.5em;&quot;&gt;
For TS-201 use ...&lt;/div&gt;
&lt;pre style=&quot;background-color: #f9f9f9; border: 1px solid rgb(221, 221, 221); font-family: monospace, Courier; font-size: 14px; line-height: 1.3em; padding: 1em;&quot;&gt;mount -t ext2 /dev/mtdblock4 /tmp/config
vi /tmp/config/autorun.sh
chmod +x /tmp/config/autorun.sh
echo .
echo &quot;unmounting /tmp/config...&quot;
umount /tmp/config
&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 20.3636px; margin-bottom: 0.5em; margin-top: 0.5em;&quot;&gt;
For TS-109, TS-109P, TS-119, TS-209, TS-209P, TS-219, TS-412, TS-409 (Marvell ARM) use ...&lt;/div&gt;
&lt;pre style=&quot;background-color: #f9f9f9; border: 1px solid rgb(221, 221, 221); font-family: monospace, Courier; font-size: 14px; line-height: 1.3em; padding: 1em;&quot;&gt;mount -t ext2 /dev/mtdblock5 /tmp/config
vi /tmp/config/autorun.sh
chmod +x /tmp/config/autorun.sh
echo .
echo &quot;unmounting /tmp/config...&quot;
umount /tmp/config
&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 20.3636px; margin-bottom: 0.5em; margin-top: 0.5em;&quot;&gt;
TS-439, TS-509, TS-639, TS-809, TS-809U (x86) use ...&lt;/div&gt;
&lt;pre style=&quot;background-color: #f9f9f9; border: 1px solid rgb(221, 221, 221); font-family: monospace, Courier; font-size: 14px; line-height: 1.3em; padding: 1em;&quot;&gt;mount -t ext2 /dev/sdx6 /tmp/config
vi /tmp/config/autorun.sh
chmod +x /tmp/config/autorun.sh
echo .
echo &quot;unmounting /tmp/config...&quot;
umount /tmp/config
&lt;/pre&gt;
&lt;h3 style=&quot;background: none rgb(255, 255, 255); border-bottom-style: none; font-family: sans-serif; line-height: 1.6; margin: 0.3em 0px 0px; overflow: hidden; padding-bottom: 0px; padding-top: 0.5em;&quot;&gt;
&lt;span class=&quot;mw-headline&quot; id=&quot;autorun.sh:_one_script_to_rule_them_all&quot;&gt;autorun.sh: one script to rule them all&lt;/span&gt;&lt;/h3&gt;
&lt;div style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 20.3636px; margin-bottom: 0.5em; margin-top: 0.5em;&quot;&gt;
Frequently mounting and editing autorun.sh on the flash could be an annoying task. More important, it may reduce the lifetime of some flash blocks. Flash blocks have limited write/erase cycles, and the mtdblock device driver does little to prevent their wear. Read more on this on the &lt;a class=&quot;external free&quot; href=&quot;http://www.linux-mtd.infradead.org/faq/general.html#L_ext2_mtd&quot; nofollow=&quot;&quot; style=&quot;background: linear-gradient(transparent, transparent) 100% 50% no-repeat, url(&amp;quot;data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2210%22%20height%3D%2210%22%3E%3Cg%20transform%3D%22translate%28-826.429%20-698.791%29%22%3E%3Crect%20width%3D%225.982%22%20height%3D%225.982%22%20x%3D%22826.929%22%20y%3D%22702.309%22%20fill%3D%22%23fff%22%20stroke%3D%22%2306c%22%2F%3E%3Cg%3E%3Cpath%20d%3D%22M831.194%20698.791h5.234v5.391l-1.571%201.545-1.31-1.31-2.725%202.725-2.689-2.689%202.808-2.808-1.311-1.311z%22%20fill%3D%22%2306f%22%2F%3E%3Cpath%20d%3D%22M835.424%20699.795l.022%204.885-1.817-1.817-2.881%202.881-1.228-1.228%202.881-2.881-1.851-1.851z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E&amp;quot;) 100% 50%; color: #663366; padding-right: 13px; text-decoration: none;&quot;&gt;http://www.linux-mtd.infradead.org/faq/general.html#L_ext2_mtd&lt;/a&gt;&quot; alt=&quot;&lt;a class=&quot;external free&quot; href=&quot;http://www.linux-mtd.infradead.org/faq/general.html#L_ext2_mtd&quot; rel=&quot;nofollow&quot; style=&quot;background: linear-gradient(transparent, transparent) 100% 50% no-repeat, url(&amp;quot;data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2210%22%20height%3D%2210%22%3E%3Cg%20transform%3D%22translate%28-826.429%20-698.791%29%22%3E%3Crect%20width%3D%225.982%22%20height%3D%225.982%22%20x%3D%22826.929%22%20y%3D%22702.309%22%20fill%3D%22%23fff%22%20stroke%3D%22%2306c%22%2F%3E%3Cg%3E%3Cpath%20d%3D%22M831.194%20698.791h5.234v5.391l-1.571%201.545-1.31-1.31-2.725%202.725-2.689-2.689%202.808-2.808-1.311-1.311z%22%20fill%3D%22%2306f%22%2F%3E%3Cpath%20d%3D%22M835.424%20699.795l.022%204.885-1.817-1.817-2.881%202.881-1.228-1.228%202.881-2.881-1.851-1.851z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E&amp;quot;) 100% 50%; color: #663366; padding-right: 13px; text-decoration: none;&quot;&gt;http://www.linux-mtd.infradead.org/faq/general.html#L_ext2_mtd&lt;/a&gt;&quot; title=&quot;&lt;a class=&quot;external free&quot; href=&quot;http://www.linux-mtd.infradead.org/faq/general.html#L_ext2_mtd&quot; rel=&quot;nofollow&quot; style=&quot;background: linear-gradient(transparent, transparent) 100% 50% no-repeat, url(&amp;quot;data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2210%22%20height%3D%2210%22%3E%3Cg%20transform%3D%22translate%28-826.429%20-698.791%29%22%3E%3Crect%20width%3D%225.982%22%20height%3D%225.982%22%20x%3D%22826.929%22%20y%3D%22702.309%22%20fill%3D%22%23fff%22%20stroke%3D%22%2306c%22%2F%3E%3Cg%3E%3Cpath%20d%3D%22M831.194%20698.791h5.234v5.391l-1.571%201.545-1.31-1.31-2.725%202.725-2.689-2.689%202.808-2.808-1.311-1.311z%22%20fill%3D%22%2306f%22%2F%3E%3Cpath%20d%3D%22M835.424%20699.795l.022%204.885-1.817-1.817-2.881%202.881-1.228-1.228%202.881-2.881-1.851-1.851z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E&amp;quot;) 100% 50%; color: #663366; padding-right: 13px; text-decoration: none;&quot;&gt;http://www.linux-mtd.infradead.org/faq/general.html#L_ext2_mtd&lt;/a&gt;&quot;&amp;gt;Linux mtd&lt;/div&gt;
web site.&lt;br /&gt;
&lt;div style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 20.3636px; margin-bottom: 0.5em; margin-top: 0.5em;&quot;&gt;
To avoid this, you could configure autorun.sh to launch another script located in the inner drive: in this way there no need to always mount and modify the file inside the flash. but only edit the script file located on your drive.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 20.3636px; margin-bottom: 0.5em; margin-top: 0.5em;&quot;&gt;
Create the directory /share/HDA_DATA/.qpkg/autorun and file autorun.sh with:&lt;/div&gt;
&lt;pre style=&quot;background-color: #f9f9f9; border: 1px solid rgb(221, 221, 221); font-family: monospace, Courier; font-size: 14px; line-height: 1.3em; padding: 1em;&quot;&gt;mkdir /share/HDA_DATA/.qpkg/autorun
cd /share/HDA_DATA/.qpkg/autorun/
touch autorun.sh
chmod +x autorun.sh
&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 20.3636px; margin-bottom: 0.5em; margin-top: 0.5em;&quot;&gt;
The autorun.sh located on the flash could be something like this (just two lines that won&#39;t need many changes!):&lt;/div&gt;
&lt;pre style=&quot;background-color: #f9f9f9; border: 1px solid rgb(221, 221, 221); font-family: monospace, Courier; font-size: 14px; line-height: 1.3em; padding: 1em;&quot;&gt;#!/bin/sh
/share/HDA_DATA/.qpkg/autorun/autorun.sh &amp;amp;
&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 20.3636px; margin-bottom: 0.5em; margin-top: 0.5em;&quot;&gt;
and then edit the file /share/HDA_DATA/.qpkg/autorun/autorun.sh to be used to launch all your startup scripts.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 20.3636px; margin-bottom: 0.5em; margin-top: 0.5em;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3 style=&quot;background: none rgb(255, 255, 255); border-bottom-style: none; font-family: sans-serif; line-height: 1.6; margin: 0.3em 0px 0px; overflow: hidden; padding-bottom: 0px; padding-top: 0.5em;&quot;&gt;
&lt;span class=&quot;mw-headline&quot; id=&quot;IMPORTANT_Notes.21&quot;&gt;IMPORTANT Notes!&lt;/span&gt;&lt;/h3&gt;
&lt;div style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 20.3636px; margin-bottom: 0.5em; margin-top: 0.5em;&quot;&gt;
1. Never put any larger files on your flashboot devices and ramdisk; instead, create symbolic links to whatever you want to put there, e.g.:&lt;br /&gt;
&lt;i&gt;Create a link from /usr (which is in ramdisk) to /share/MD0_DATA/jre1.6.0_10 (which is on a hard disk) at the mountpoint /usr/java&lt;/i&gt;&lt;/div&gt;
&lt;pre style=&quot;background-color: #f9f9f9; border: 1px solid rgb(221, 221, 221); font-family: monospace, Courier; font-size: 14px; line-height: 1.3em; padding: 1em;&quot;&gt;# ln -sf /share/MD0_DATA/jre1.6.0_10 /usr/java&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 20.3636px; margin-bottom: 0.5em; margin-top: 0.5em;&quot;&gt;
&lt;br /&gt;
2. Always use the full system path because locations like /opt/bin or /opt/sbin might not have been exported yet when Autorun.sh is executed, e.g:&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 20.3636px; margin-bottom: 0.5em; margin-top: 0.5em;&quot;&gt;
No good.&lt;/div&gt;
&lt;pre style=&quot;background-color: #f9f9f9; border: 1px solid rgb(221, 221, 221); font-family: monospace, Courier; font-size: 14px; line-height: 1.3em; padding: 1em;&quot;&gt;svnserve -d --listen-port=4000 -r /share/subversion&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 20.3636px; margin-bottom: 0.5em; margin-top: 0.5em;&quot;&gt;
&lt;br /&gt;
This is better.&lt;/div&gt;
&lt;pre style=&quot;background-color: #f9f9f9; border: 1px solid rgb(221, 221, 221); font-family: monospace, Courier; font-size: 14px; line-height: 1.3em; padding: 1em;&quot;&gt;/opt/bin/svnserve -d --listen-port=4000 -r /share/subversion&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 20.3636px; margin-bottom: 0.5em; margin-top: 0.5em;&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
If it still fails to start svnserve, you might try adding this line to your autoexec script:&lt;/div&gt;
&lt;pre style=&quot;background-color: #f9f9f9; border: 1px solid rgb(221, 221, 221); font-family: monospace, Courier; font-size: 14px; line-height: 1.3em; padding: 1em;&quot;&gt;/bin/ln -sf /opt/bin/ /share/HDA_DATA/opt/bin/&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 20.3636px; margin-bottom: 0.5em; margin-top: 0.5em;&quot;&gt;
&lt;br /&gt;
3. Many startup scripts in /etc/init.d overwrite their corresponding configuration files in /etc. In this case overwriting the config file using autorun.sh is not enough; we also have to overwrite the startup script itself. Moreover, many startup scripts get excecuted before autorun, such that we also have to restart the service. In this case an autorun.sh may look like this:&lt;/div&gt;
&lt;pre style=&quot;background-color: #f9f9f9; border: 1px solid rgb(221, 221, 221); font-family: monospace, Courier; font-size: 14px; line-height: 1.3em; padding: 1em;&quot;&gt;#!/bin/sh

cp /share/MD0_DATA/admin/nfs /etc/init.d/nfs
cp /share/MD0_DATA/admin/exports /etc

/etc/init.d/nfs restart
&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 20.3636px; margin-bottom: 0.5em; margin-top: 0.5em;&quot;&gt;
Very ugly, indeed! However, it seems this is the only way to make it work (unless you want to throw out the QNAP OS and install a &#39;better&#39; OS on your NAS).&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 20.3636px; margin-bottom: 0.5em; margin-top: 0.5em;&quot;&gt;
4. On our QNAP TS-879 Pro we were not able to run&lt;/div&gt;
&lt;pre style=&quot;background-color: #f9f9f9; border: 1px solid rgb(221, 221, 221); font-family: monospace, Courier; font-size: 14px; line-height: 1.3em; padding: 1em;&quot;&gt;/opt/bin/rsyncd-acl.sh start
&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 20.3636px; margin-bottom: 0.5em; margin-top: 0.5em;&quot;&gt;
from the autorun.sh as /opt is not the one from Optware but a directory containing one file, i.e. nasconfig_fs.img.tgz.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 20.3636px; margin-bottom: 0.5em; margin-top: 0.5em;&quot;&gt;
Thus we modified /tmp/config/autorun.sh to&lt;/div&gt;
&lt;pre style=&quot;background-color: #f9f9f9; border: 1px solid rgb(221, 221, 221); font-family: monospace, Courier; font-size: 14px; line-height: 1.3em; padding: 1em;&quot;&gt;#!/bin/sh
log=/share/MD0_DATA/.qpkg/Optware/var/log/autorun
date &amp;gt; $log
# removing bogus /opt
/bin/rm /opt/nasconfig_fs.img.tgz /opt 2&amp;gt;&amp;gt; $log &amp;gt;&amp;gt; $log
/bin/rmdir /opt 2&amp;gt;&amp;gt; $log &amp;gt;&amp;gt; $log
# link correct /opt
/bin/ln -s /share/MD0_DATA/.qpkg/Optware /opt 2&amp;gt;&amp;gt; $log &amp;gt;&amp;gt; $log
# run autorun.sh
/opt/etc/autorun.sh 2&amp;gt;&amp;gt; $log &amp;gt;&amp;gt; $log
&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 20.3636px; margin-bottom: 0.5em; margin-top: 0.5em;&quot;&gt;
created a log file directory&lt;/div&gt;
&lt;pre style=&quot;background-color: #f9f9f9; border: 1px solid rgb(221, 221, 221); font-family: monospace, Courier; font-size: 14px; line-height: 1.3em; padding: 1em;&quot;&gt;mkdir -p /opt/var/log
&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 20.3636px; margin-bottom: 0.5em; margin-top: 0.5em;&quot;&gt;
and created /opt/etc/autorun.sh on the disk&lt;/div&gt;
&lt;pre style=&quot;background-color: #f9f9f9; border: 1px solid rgb(221, 221, 221); font-family: monospace, Courier; font-size: 14px; line-height: 1.3em; padding: 1em;&quot;&gt;#!/bin/sh
/opt/bin/rsyncd-acl.sh start
&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 20.3636px; margin-bottom: 0.5em; margin-top: 0.5em;&quot;&gt;
thus no mounting of the flash partition is necessary anymore.&lt;/div&gt;
&lt;h2 style=&quot;background: none rgb(255, 255, 255); border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; font-family: &#39;Linux Libertine&#39;, Georgia, Times, serif; font-weight: normal; line-height: 1.3; margin: 1em 0px 0.25em; overflow: hidden; padding: 0px;&quot;&gt;
&lt;span class=&quot;mw-headline&quot; id=&quot;QPKG-based_method&quot;&gt;QPKG-based method&lt;/span&gt;&lt;/h2&gt;
&lt;div style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 20.3636px; margin-bottom: 0.5em; margin-top: 0.5em;&quot;&gt;
With firmware 3.8.2, the &lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=906613225516010174#MTD-based_method&quot;&gt;#MTD-based_method&lt;/a&gt; was broken. With the next firmware update, this bug was corrected, but in the meanwhile, the below workaround has been devised.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 20.3636px; margin-bottom: 0.5em; margin-top: 0.5em;&quot;&gt;
This method consists of declaring a dummy QPKG which launches your script at startup.&lt;/div&gt;
&lt;ul style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 20.3636px; list-style-image: url(&amp;quot;data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%0A%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20width%3D%225%22%20height%3D%2213%22%3E%0A%3Ccircle%20cx%3D%222.5%22%20cy%3D%229.5%22%20r%3D%222.5%22%20fill%3D%22%2300528c%22%2F%3E%0A%3C%2Fsvg%3E%0A&amp;quot;); margin: 0.3em 0px 0px 1.6em; padding: 0px;&quot;&gt;
&lt;li style=&quot;margin-bottom: 0.1em;&quot;&gt;Log into your QNAP device using SSH or Telnet, for instance by using Putty&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0.1em;&quot;&gt;Edit QPKG config file:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre style=&quot;background-color: #f9f9f9; border: 1px solid rgb(221, 221, 221); font-family: monospace, Courier; font-size: 14px; line-height: 1.3em; padding: 1em;&quot;&gt;# vi /etc/config/qpkg.conf
&lt;/pre&gt;
&lt;ul style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 20.3636px; list-style-image: url(&amp;quot;data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%0A%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20width%3D%225%22%20height%3D%2213%22%3E%0A%3Ccircle%20cx%3D%222.5%22%20cy%3D%229.5%22%20r%3D%222.5%22%20fill%3D%22%2300528c%22%2F%3E%0A%3C%2Fsvg%3E%0A&amp;quot;); margin: 0.3em 0px 0px 1.6em; padding: 0px;&quot;&gt;
&lt;li style=&quot;margin-bottom: 0.1em;&quot;&gt;Declare a new dummy package by adding something like that in this file, but take care about the order. e.g. if you would like to start a service from a optware package, be sure optware is initialized before:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre style=&quot;background-color: #f9f9f9; border: 1px solid rgb(221, 221, 221); font-family: monospace, Courier; font-size: 14px; line-height: 1.3em; padding: 1em;&quot;&gt;[autorun]
Name = autorun
Version = 0.1
Author = neomilium
Date = 2013-05-06
Shell = /share/MD0_DATA/.qpkg/autorun/autorun.sh
Install_Path = /share/MD0_DATA/.qpkg/autorun
Enable = TRUE
&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 20.3636px; margin-bottom: 0.5em; margin-top: 0.5em;&quot;&gt;
As you can see,&amp;nbsp;&lt;b&gt;Shell&lt;/b&gt;&amp;nbsp;is the interesting variable: at boot-time, QNAP OS will launch each QPKG&#39;s&amp;nbsp;&lt;b&gt;Shell&lt;/b&gt;&amp;nbsp;variable content.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 20.3636px; margin-bottom: 0.5em; margin-top: 0.5em;&quot;&gt;
Note: if your NAS doesn&#39;t have /share/MD0_DATA (i.e. is a one-drive NAS then substitute /share/MD0_DATA by /share/HDA_DATA , on a NAS with the new Storage Manager substitute /share/MD0_DATA by /share/CACHEDEV1_DATA/), put the right directory into the&amp;nbsp;&lt;b&gt;Shell&lt;/b&gt;&amp;nbsp;and&amp;nbsp;&lt;b&gt;Install_Path&lt;/b&gt;variables and adapt the following commands to your needs.&lt;/div&gt;
&lt;ul style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 20.3636px; list-style-image: url(&amp;quot;data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%0A%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20width%3D%225%22%20height%3D%2213%22%3E%0A%3Ccircle%20cx%3D%222.5%22%20cy%3D%229.5%22%20r%3D%222.5%22%20fill%3D%22%2300528c%22%2F%3E%0A%3C%2Fsvg%3E%0A&amp;quot;); margin: 0.3em 0px 0px 1.6em; padding: 0px;&quot;&gt;
&lt;li style=&quot;margin-bottom: 0.1em;&quot;&gt;Create the dummy package directory:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre style=&quot;background-color: #f9f9f9; border: 1px solid rgb(221, 221, 221); font-family: monospace, Courier; font-size: 14px; line-height: 1.3em; padding: 1em;&quot;&gt;# mkdir /share/MD0_DATA/.qpkg/autorun
&lt;/pre&gt;
&lt;ul style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 20.3636px; list-style-image: url(&amp;quot;data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%0A%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20width%3D%225%22%20height%3D%2213%22%3E%0A%3Ccircle%20cx%3D%222.5%22%20cy%3D%229.5%22%20r%3D%222.5%22%20fill%3D%22%2300528c%22%2F%3E%0A%3C%2Fsvg%3E%0A&amp;quot;); margin: 0.3em 0px 0px 1.6em; padding: 0px;&quot;&gt;
&lt;li style=&quot;margin-bottom: 0.1em;&quot;&gt;Create the autorun script with the contents of your choice:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre style=&quot;background-color: #f9f9f9; border: 1px solid rgb(221, 221, 221); font-family: monospace, Courier; font-size: 14px; line-height: 1.3em; padding: 1em;&quot;&gt;# vi /share/MD0_DATA/.qpkg/autorun/autorun.sh
&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 20.3636px; margin-bottom: 0.5em; margin-top: 0.5em;&quot;&gt;
Note: don&#39;t forget &quot;#!/bin/sh&quot; at the beginning of script.&lt;/div&gt;
&lt;ul style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 20.3636px; list-style-image: url(&amp;quot;data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%0A%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20width%3D%225%22%20height%3D%2213%22%3E%0A%3Ccircle%20cx%3D%222.5%22%20cy%3D%229.5%22%20r%3D%222.5%22%20fill%3D%22%2300528c%22%2F%3E%0A%3C%2Fsvg%3E%0A&amp;quot;); margin: 0.3em 0px 0px 1.6em; padding: 0px;&quot;&gt;
&lt;li style=&quot;margin-bottom: 0.1em;&quot;&gt;Set the execute bit:&lt;/li&gt;
&lt;/ul&gt;
&lt;pre style=&quot;background-color: #f9f9f9; border: 1px solid rgb(221, 221, 221); font-family: monospace, Courier; font-size: 14px; line-height: 1.3em; padding: 1em;&quot;&gt;# chmod +x /share/MD0_DATA/.qpkg/autorun/autorun.sh
&lt;/pre&gt;
&lt;ul style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 20.3636px; list-style-image: url(&amp;quot;data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%0A%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20width%3D%225%22%20height%3D%2213%22%3E%0A%3Ccircle%20cx%3D%222.5%22%20cy%3D%229.5%22%20r%3D%222.5%22%20fill%3D%22%2300528c%22%2F%3E%0A%3C%2Fsvg%3E%0A&amp;quot;); margin: 0.3em 0px 0px 1.6em; padding: 0px;&quot;&gt;
&lt;li style=&quot;margin-bottom: 0.1em;&quot;&gt;Reboot and enjoy!&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 style=&quot;background: none rgb(255, 255, 255); border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; font-family: &#39;Linux Libertine&#39;, Georgia, Times, serif; font-weight: normal; line-height: 1.3; margin: 1em 0px 0.25em; overflow: hidden; padding: 0px;&quot;&gt;
&lt;span class=&quot;mw-headline&quot; id=&quot;MTD-based_method_.28old.29&quot;&gt;MTD-based method (old)&lt;/span&gt;&lt;/h2&gt;
&lt;div style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 20.3636px; margin-bottom: 0.5em; margin-top: 0.5em;&quot;&gt;
This section is here only to make sure existing anchor links continue to work. The meat is in the section &lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=906613225516010174#MTD-based_method&quot;&gt;MTD-based method&lt;/a&gt;.&lt;/div&gt;
&lt;h2 style=&quot;background: none rgb(255, 255, 255); border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; font-family: &#39;Linux Libertine&#39;, Georgia, Times, serif; font-weight: normal; line-height: 1.3; margin: 1em 0px 0.25em; overflow: hidden; padding: 0px;&quot;&gt;
&lt;span class=&quot;mw-headline&quot; id=&quot;QPKG-based_method_.28new.29&quot;&gt;QPKG-based method (new)&lt;/span&gt;&lt;/h2&gt;
&lt;div style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 20.3636px; margin-bottom: 0.5em; margin-top: 0.5em;&quot;&gt;
This section is here only to make sure existing anchor links continue to work. The meat is in the section &lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=906613225516010174#QPKG-based_method&quot;&gt;QPKG-based method&lt;/a&gt;&lt;/div&gt;
&lt;h2 style=&quot;background: none rgb(255, 255, 255); border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; font-family: &#39;Linux Libertine&#39;, Georgia, Times, serif; font-weight: normal; line-height: 1.3; margin: 1em 0px 0.25em; overflow: hidden; padding: 0px;&quot;&gt;
&lt;span class=&quot;mw-headline&quot; id=&quot;Trick_.26_tips&quot;&gt;Trick &amp;amp; tips&lt;/span&gt;&lt;/h2&gt;
&lt;h3 style=&quot;background: none rgb(255, 255, 255); border-bottom-style: none; font-family: sans-serif; line-height: 1.6; margin: 0.3em 0px 0px; overflow: hidden; padding-bottom: 0px; padding-top: 0.5em;&quot;&gt;
&lt;span class=&quot;mw-headline&quot; id=&quot;Waiting_for_encrypted_partitions&quot;&gt;Waiting for encrypted partitions&lt;/span&gt;&lt;/h3&gt;
&lt;div style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 20.3636px; margin-bottom: 0.5em; margin-top: 0.5em;&quot;&gt;
If your data partition is encrypted, you might have some script that has to wait until the encrypted partition is available. I added a script called waitforenc.sh in my autorun-directory:&lt;/div&gt;
&lt;pre style=&quot;background-color: #f9f9f9; border: 1px solid rgb(221, 221, 221); font-family: monospace, Courier; font-size: 14px; line-height: 1.3em; padding: 1em;&quot;&gt;#! /bin/sh

# This script ends after the encrypted filesystem has been mounted.

# The following exits successfully (0) if MD0 is mounted
cat /etc/mtab | grep -q MD0
while [[ $? -ne 0 ]]&amp;nbsp;; do
        sleep 5
        cat /etc/mtab | grep -q MD0
done&lt;/pre&gt;
&lt;div style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 20.3636px; margin-bottom: 0.5em; margin-top: 0.5em;&quot;&gt;
And now I&#39;m able to call scripts *after* the encrypted partition is available, without blocking other scripts:&lt;/div&gt;
&lt;pre style=&quot;background-color: #f9f9f9; border: 1px solid rgb(221, 221, 221); font-family: monospace, Courier; font-size: 14px; line-height: 1.3em; padding: 1em;&quot;&gt;(./waitforenc.sh; /etc/init.d/ldap_server.sh restart ) &amp;amp;&lt;/pre&gt;
&lt;h3 style=&quot;background: none rgb(255, 255, 255); border-bottom-style: none; font-family: sans-serif; line-height: 1.6; margin: 0.3em 0px 0px; overflow: hidden; padding-bottom: 0px; padding-top: 0.5em;&quot;&gt;
&lt;span class=&quot;mw-headline&quot; id=&quot;Calling_all_scripts_in_a_certain_directory&quot;&gt;Calling all scripts in a certain directory&lt;/span&gt;&lt;/h3&gt;
&lt;div style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 20.3636px; margin-bottom: 0.5em; margin-top: 0.5em;&quot;&gt;
Place a file called listoffiles.sh in a directory, create a subdirectory called scripts, add listoffiles.sh to your autorun:&lt;/div&gt;
&lt;pre style=&quot;background-color: #f9f9f9; border: 1px solid rgb(221, 221, 221); font-family: monospace, Courier; font-size: 14px; line-height: 1.3em; padding: 1em;&quot;&gt;#! /bin/sh
# listoffiles.sh

BASEDIR=$(dirname $0)

echo &quot;&quot; &amp;gt; log/userfiles.log

for i in scripts/*.sh&amp;nbsp;; do
        if [[ -x $i ]]&amp;nbsp;; then
                echo -n &quot;$i &quot; &amp;gt;&amp;gt; log/userfiles.log
                echo `date` &amp;gt;&amp;gt; log/userfiles.log
                $i 2&amp;gt;&amp;amp;1 &amp;gt;&amp;gt; log/userfiles.log
                cd $BASEDIR
        fi
done&lt;/pre&gt;
&lt;h3 style=&quot;background: none rgb(255, 255, 255); border-bottom-style: none; font-family: sans-serif; line-height: 1.6; margin: 0.3em 0px 0px; overflow: hidden; padding-bottom: 0px; padding-top: 0.5em;&quot;&gt;
&lt;span class=&quot;mw-headline&quot; id=&quot;Optimized_networking&quot;&gt;Optimized networking&lt;/span&gt;&lt;/h3&gt;
&lt;ul style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 20.3636px; list-style-image: url(&amp;quot;data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%0A%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20width%3D%225%22%20height%3D%2213%22%3E%0A%3Ccircle%20cx%3D%222.5%22%20cy%3D%229.5%22%20r%3D%222.5%22%20fill%3D%22%2300528c%22%2F%3E%0A%3C%2Fsvg%3E%0A&amp;quot;); margin: 0.3em 0px 0px 1.6em; padding: 0px;&quot;&gt;
&lt;li style=&quot;margin-bottom: 0.1em;&quot;&gt;You can also try different values from &lt;a a=&quot;&quot; class=&quot;external free&quot; href=&quot;http://www.speedguide.net/read_articles.php?id=121&quot; rel=&quot;nofollow&quot; style=&quot;background: linear-gradient(transparent, transparent) 100% 50% no-repeat, url(&amp;quot;data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2210%22%20height%3D%2210%22%3E%3Cg%20transform%3D%22translate%28-826.429%20-698.791%29%22%3E%3Crect%20width%3D%225.982%22%20height%3D%225.982%22%20x%3D%22826.929%22%20y%3D%22702.309%22%20fill%3D%22%23fff%22%20stroke%3D%22%2306c%22%2F%3E%3Cg%3E%3Cpath%20d%3D%22M831.194%20698.791h5.234v5.391l-1.571%201.545-1.31-1.31-2.725%202.725-2.689-2.689%202.808-2.808-1.311-1.311z%22%20fill%3D%22%2306f%22%2F%3E%3Cpath%20d%3D%22M835.424%20699.795l.022%204.885-1.817-1.817-2.881%202.881-1.228-1.228%202.881-2.881-1.851-1.851z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E&amp;quot;) 100% 50%; color: #663366; padding-right: 13px; text-decoration: none;&quot;&gt;http://www.speedguide.net/read_articles.php?id=121&lt;/a&gt;&quot; alt=&quot;&lt;a class=&quot;external free&quot; href=&quot;http://www.speedguide.net/read_articles.php?id=121&quot; rel=&quot;nofollow&quot; style=&quot;background: linear-gradient(transparent, transparent) 100% 50% no-repeat, url(&amp;quot;data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2210%22%20height%3D%2210%22%3E%3Cg%20transform%3D%22translate%28-826.429%20-698.791%29%22%3E%3Crect%20width%3D%225.982%22%20height%3D%225.982%22%20x%3D%22826.929%22%20y%3D%22702.309%22%20fill%3D%22%23fff%22%20stroke%3D%22%2306c%22%2F%3E%3Cg%3E%3Cpath%20d%3D%22M831.194%20698.791h5.234v5.391l-1.571%201.545-1.31-1.31-2.725%202.725-2.689-2.689%202.808-2.808-1.311-1.311z%22%20fill%3D%22%2306f%22%2F%3E%3Cpath%20d%3D%22M835.424%20699.795l.022%204.885-1.817-1.817-2.881%202.881-1.228-1.228%202.881-2.881-1.851-1.851z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E&amp;quot;) 100% 50%; color: #663366; padding-right: 13px; text-decoration: none;&quot;&gt;http://www.speedguide.net/read_articles.php?id=121&lt;/a&gt;&quot; title=&quot;&lt;a class=&quot;external free&quot; href=&quot;http://www.speedguide.net/read_articles.php?id=121&quot; rel=&quot;nofollow&quot; style=&quot;background: linear-gradient(transparent, transparent) 100% 50% no-repeat, url(&amp;quot;data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2210%22%20height%3D%2210%22%3E%3Cg%20transform%3D%22translate%28-826.429%20-698.791%29%22%3E%3Crect%20width%3D%225.982%22%20height%3D%225.982%22%20x%3D%22826.929%22%20y%3D%22702.309%22%20fill%3D%22%23fff%22%20stroke%3D%22%2306c%22%2F%3E%3Cg%3E%3Cpath%20d%3D%22M831.194%20698.791h5.234v5.391l-1.571%201.545-1.31-1.31-2.725%202.725-2.689-2.689%202.808-2.808-1.311-1.311z%22%20fill%3D%22%2306f%22%2F%3E%3Cpath%20d%3D%22M835.424%20699.795l.022%204.885-1.817-1.817-2.881%202.881-1.228-1.228%202.881-2.881-1.851-1.851z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E&amp;quot;) 100% 50%; color: #663366; padding-right: 13px; text-decoration: none;&quot;&gt;http://www.speedguide.net/read_articles.php?id=121&lt;/a&gt;&quot;&amp;gt;&lt;a class=&quot;external free&quot; href=&quot;http://www.speedguide.net/read_articles.php?id=121&quot; rel=&quot;nofollow&quot; style=&quot;background: linear-gradient(transparent, transparent) 100% 50% no-repeat, url(&amp;quot;data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2210%22%20height%3D%2210%22%3E%3Cg%20transform%3D%22translate%28-826.429%20-698.791%29%22%3E%3Crect%20width%3D%225.982%22%20height%3D%225.982%22%20x%3D%22826.929%22%20y%3D%22702.309%22%20fill%3D%22%23fff%22%20stroke%3D%22%2306c%22%2F%3E%3Cg%3E%3Cpath%20d%3D%22M831.194%20698.791h5.234v5.391l-1.571%201.545-1.31-1.31-2.725%202.725-2.689-2.689%202.808-2.808-1.311-1.311z%22%20fill%3D%22%2306f%22%2F%3E%3Cpath%20d%3D%22M835.424%20699.795l.022%204.885-1.817-1.817-2.881%202.881-1.228-1.228%202.881-2.881-1.851-1.851z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E&amp;quot;) 100% 50%; color: #663366; padding-right: 13px; text-decoration: none;&quot;&gt;http://www.speedguide.net/read_articles.php?id=121&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&quot;&amp;gt;SpeedGuide.net&lt;br /&gt;
&lt;pre style=&quot;background-color: #f9f9f9; border: 1px solid rgb(221, 221, 221); font-family: monospace, Courier; font-size: 14px; line-height: 1.3em; padding: 1em;&quot;&gt;ifconfig eth0 txqueuelen 50000
ifconfig eth1 txqueuelen 50000
echo 1 &amp;gt; /proc/sys/net/ipv4/tcp_rfc1337
echo 2 &amp;gt; /proc/sys/net/ipv4/tcp_frto
echo 2 &amp;gt; /proc/sys/net/ipv4/tcp_frto_response
echo 1 &amp;gt; /proc/sys/net/ipv4/tcp_mtu_probing
echo 1 &amp;gt; /proc/sys/net/ipv4/tcp_window_scaling
echo 1 &amp;gt; /proc/sys/net/ipv4/tcp_workaround_signed_windows
echo 1 &amp;gt; /proc/sys/net/ipv4/tcp_tw_reuse
echo 0 &amp;gt; /proc/sys/net/ipv4/tcp_tw_recycle
echo 1 &amp;gt; /proc/sys/net/ipv4/tcp_low_latency
echo 1 &amp;gt; /proc/sys/net/ipv4/tcp_ecn&lt;/pre&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;http://fagoteach.no-ip.org/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yuhfa.blogspot.com/feeds/6116582019895232147/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/906613225516010174/6116582019895232147' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/906613225516010174/posts/default/6116582019895232147'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/906613225516010174/posts/default/6116582019895232147'/><link rel='alternate' type='text/html' href='http://yuhfa.blogspot.com/2016/02/qna.html' title='QNAP開機自動執行的方法'/><author><name>發哥</name><uri>http://www.blogger.com/profile/08767606783186239234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://photos1.blogger.com/blogger2/2750/110670559755372/212/gse_multipart22619.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-906613225516010174.post-1484762543778797936</id><published>2016-02-23T00:31:00.002-08:00</published><updated>2016-03-19T01:30:47.001-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="QNAP"/><title type='text'>QNAP mount samb分享的目錄</title><content type='html'>&lt;span style=&quot;background-color: #ecf3f7; color: #333333; font-family: &amp;quot;lucida grande&amp;quot; , &amp;quot;trebuchet ms&amp;quot; , &amp;quot;verdana&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 13px; line-height: 18.2px;&quot;&gt;mount.cifs //192.168.12.34/sharename /share/Public/WindowsShare -o username=user,password=pass&lt;/span&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;http://fagoteach.no-ip.org/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yuhfa.blogspot.com/feeds/1484762543778797936/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/906613225516010174/1484762543778797936' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/906613225516010174/posts/default/1484762543778797936'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/906613225516010174/posts/default/1484762543778797936'/><link rel='alternate' type='text/html' href='http://yuhfa.blogspot.com/2016/02/qnap-mount-samb.html' title='QNAP mount samb分享的目錄'/><author><name>發哥</name><uri>http://www.blogger.com/profile/08767606783186239234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://photos1.blogger.com/blogger2/2750/110670559755372/212/gse_multipart22619.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-906613225516010174.post-4124898258425312675</id><published>2016-02-20T04:43:00.002-08:00</published><updated>2016-03-19T01:31:02.558-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux指令"/><title type='text'>在 Linux 要查詢記憶體大小, 可以用下述指令</title><content type='html'>&lt;div style=&quot;background: rgb(255, 255, 255); border: 0px; color: #333333; font-family: Georgia, &#39;Bitstream Charter&#39;, serif; font-size: 16px; line-height: 24px; margin-bottom: 24px; padding: 0px; vertical-align: baseline;&quot;&gt;
在 Linux 要查詢記憶體大小, 可以用下述指令:&lt;/div&gt;
&lt;ul style=&quot;background: rgb(255, 255, 255); border: 0px; color: #333333; font-family: Georgia, &#39;Bitstream Charter&#39;, serif; font-size: 16px; line-height: 24px; list-style: square; margin: 0px 0px 24px 1.5em; padding: 0px; vertical-align: baseline;&quot;&gt;
&lt;li style=&quot;background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;free&lt;/li&gt;
&lt;li style=&quot;background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;free -m&lt;/li&gt;
&lt;li style=&quot;background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;cat /proc/meminfo&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;http://fagoteach.no-ip.org/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yuhfa.blogspot.com/feeds/4124898258425312675/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/906613225516010174/4124898258425312675' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/906613225516010174/posts/default/4124898258425312675'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/906613225516010174/posts/default/4124898258425312675'/><link rel='alternate' type='text/html' href='http://yuhfa.blogspot.com/2016/02/linux.html' title='在 Linux 要查詢記憶體大小, 可以用下述指令'/><author><name>發哥</name><uri>http://www.blogger.com/profile/08767606783186239234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://photos1.blogger.com/blogger2/2750/110670559755372/212/gse_multipart22619.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-906613225516010174.post-7525646556758433069</id><published>2016-02-20T04:41:00.001-08:00</published><updated>2016-03-19T01:31:16.714-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux指令"/><title type='text'>linux 掛載遠端ftp伺服器的方法</title><content type='html'>&lt;div class=&quot;articalContent   &quot; id=&quot;sina_keyword_ad_area2&quot; style=&quot;clear: both; font-family: simsun; font-size: 14px; line-height: 21px; overflow: hidden; padding-bottom: 30px; padding-top: 18px; width: 690px; word-break: normal; word-wrap: normal;&quot;&gt;
&lt;div style=&quot;border: 0px; list-style: none; margin-bottom: 5px; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;
&lt;b&gt;A&lt;/b&gt;&lt;b&gt;、安装curlftpfs&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; list-style: none; margin-bottom: 5px; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;
&lt;b&gt;A.1&lt;/b&gt;&lt;b&gt;、安装&lt;/b&gt;&lt;b&gt;DAG repository&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; list-style: none; margin-bottom: 5px; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;
Fedora可以直接yum install curlftpfs，CentOS不行，得用DAG repository，所以得先安装DAG repository。&lt;/div&gt;
&lt;div style=&quot;border: 0px; list-style: none; margin-bottom: 5px; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;
&lt;code&gt;rpm -Uhv&lt;/code&gt;&amp;nbsp;&lt;a href=&quot;http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm&quot; style=&quot;color: #41646f; text-decoration: none;&quot;&gt;http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS//rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; list-style: none; margin-bottom: 5px; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;
&lt;b&gt;A.2&lt;/b&gt;&lt;b&gt;、&lt;/b&gt;&lt;b&gt;安装 curlftpfs&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; list-style: none; margin-bottom: 5px; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;
&lt;code&gt;yum install curlftpfs&lt;/code&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; list-style: none; margin-bottom: 5px; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; list-style: none; margin-bottom: 5px; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;
&lt;b&gt;B&lt;/b&gt;&lt;b&gt;、挂载FTP服务器&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; list-style: none; margin-bottom: 5px; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;
&lt;b&gt;B.1&lt;/b&gt;&lt;b&gt;、&lt;/b&gt;&lt;b&gt;用curlftpfs命令挂载&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; list-style: none; margin-bottom: 5px; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;
curlftpfs -o codepage=utf8 ftp://username:password@192.168.192.168 /ftp&lt;br /&gt;
&lt;br /&gt;
也可以用(這是開放權限)curlftpfs -o codepage=utf8 -o rw,allow_other,uid=0,gid=0 ftp:// username: password @192.168.1.111 /ftp&lt;/div&gt;
&lt;div style=&quot;border: 0px; list-style: none; margin-bottom: 5px; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;
codepage：&amp;nbsp;&lt;wbr&gt;&lt;/wbr&gt;&amp;nbsp;&lt;wbr&gt;&lt;/wbr&gt;&amp;nbsp;&lt;wbr&gt;&lt;/wbr&gt;&amp;nbsp;&lt;wbr&gt;&lt;/wbr&gt;&amp;nbsp;&lt;wbr&gt;&lt;/wbr&gt;&amp;nbsp;编码&lt;/div&gt;
&lt;div style=&quot;border: 0px; list-style: none; margin-bottom: 5px; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;
username：&amp;nbsp;&lt;wbr&gt;&lt;/wbr&gt;&amp;nbsp;&lt;wbr&gt;&lt;/wbr&gt;&amp;nbsp;&amp;nbsp;&lt;wbr&gt;&lt;/wbr&gt;&amp;nbsp;&lt;wbr&gt;&lt;/wbr&gt;&amp;nbsp;&lt;wbr&gt;&lt;/wbr&gt;FTP用户名&lt;/div&gt;
&lt;div style=&quot;border: 0px; list-style: none; margin-bottom: 5px; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;
password: &amp;nbsp;&lt;wbr&gt;&lt;/wbr&gt;&amp;nbsp;&lt;wbr&gt;&lt;/wbr&gt;&amp;nbsp;&amp;nbsp;&lt;wbr&gt;&lt;/wbr&gt;&amp;nbsp;&lt;wbr&gt;&lt;/wbr&gt;&amp;nbsp;&lt;wbr&gt;&lt;/wbr&gt;FTP密码&lt;br /&gt;
192.168.1.111:&amp;nbsp;&lt;wbr&gt;&lt;/wbr&gt;&amp;nbsp;FTP地址&lt;br /&gt;
/ftp:&amp;nbsp;&lt;wbr&gt;&lt;/wbr&gt;&amp;nbsp;&lt;wbr&gt;&lt;/wbr&gt;&amp;nbsp;&lt;wbr&gt;&lt;/wbr&gt;&amp;nbsp;&lt;wbr&gt;&lt;/wbr&gt;&amp;nbsp;&lt;wbr&gt;&lt;/wbr&gt;&amp;nbsp;&lt;wbr&gt;&lt;/wbr&gt;&amp;nbsp;&lt;wbr&gt;&lt;/wbr&gt;&amp;nbsp;&lt;wbr&gt;&lt;/wbr&gt;&amp;nbsp;&lt;wbr&gt;&lt;/wbr&gt;&amp;nbsp;&amp;nbsp;&lt;wbr&gt;&lt;/wbr&gt;准备挂载到的路径&lt;/div&gt;
&lt;div style=&quot;border: 0px; list-style: none; margin-bottom: 5px; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;
&lt;b&gt;B.2&lt;/b&gt;&lt;b&gt;、卸载&lt;/b&gt;&lt;b&gt;挂载&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; list-style: none; margin-bottom: 5px; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;
fusermount -u /ftp&lt;/div&gt;
&lt;div style=&quot;border: 0px; list-style: none; margin-bottom: 5px; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;
或&lt;/div&gt;
&lt;div style=&quot;border: 0px; list-style: none; margin-bottom: 5px; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;
umount /ftp&lt;/div&gt;
&lt;div style=&quot;border: 0px; list-style: none; margin-bottom: 5px; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;
&lt;b&gt;B.3&lt;/b&gt;&lt;b&gt;、开放权限&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; list-style: none; margin-bottom: 5px; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;
这样其它用户也能读写了,uid和gid改成你自己的id&lt;/div&gt;
&lt;div style=&quot;border: 0px; list-style: none; margin-bottom: 5px; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;
sudo curlftpfs –o rw,allow_other,uid=0,gid=0 ftp:// username: password @192.168.1.111 /ftp&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;border: 0px; list-style: none; margin-bottom: 5px; padding: 0px; word-break: normal; word-wrap: normal;&quot;&gt;
&lt;b&gt;B.4&lt;/b&gt;&lt;b&gt;、开机自动挂载&lt;/b&gt;&lt;br /&gt;
echo &quot;curlftpfs#username:password@192.168.1.111&amp;nbsp;&lt;wbr&gt;&lt;/wbr&gt;/ftp&amp;nbsp;&lt;wbr&gt;&lt;/wbr&gt;fuse allow_other,uid=0,gid=0 0 0&quot; &amp;gt;&amp;gt; /etc/fstab&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;http://fagoteach.no-ip.org/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yuhfa.blogspot.com/feeds/7525646556758433069/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/906613225516010174/7525646556758433069' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/906613225516010174/posts/default/7525646556758433069'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/906613225516010174/posts/default/7525646556758433069'/><link rel='alternate' type='text/html' href='http://yuhfa.blogspot.com/2016/02/linux-ftp.html' title='linux 掛載遠端ftp伺服器的方法'/><author><name>發哥</name><uri>http://www.blogger.com/profile/08767606783186239234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://photos1.blogger.com/blogger2/2750/110670559755372/212/gse_multipart22619.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-906613225516010174.post-1902640585338593746</id><published>2016-02-20T04:31:00.000-08:00</published><updated>2016-03-19T01:31:38.245-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="QNAP"/><title type='text'>兩個NAS掛載其中一台分享出來的資料夾成為本地硬碟！</title><content type='html'>&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #545454; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px; padding: 0px 0px 15px;&quot;&gt;
Steps to do:&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #545454; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px; padding: 0px 0px 15px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box;&quot;&gt;On the ARM based QNAP, create the share in common, and grant rights to the NFS Intel based QNAP&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #545454; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px; padding: 0px 0px 15px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box;&quot;&gt;On the Intel baed QNAP, create a directory like: / share / MD0_DATA / remotenas&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #545454; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px; padding: 0px 0px 15px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box;&quot;&gt;Then type the Following:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #545454; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px; padding: 0px 0px 15px;&quot;&gt;
&lt;span style=&quot;box-sizing: border-box; color: #333333; font-family: &amp;quot;monaco&amp;quot; , &amp;quot;consolas&amp;quot; , &amp;quot;andale mono&amp;quot; , &amp;quot;dejavu sans mono&amp;quot; , monospace; font-size: 13px;&quot;&gt;mount -t nfs &lt;nas arm=&quot;&quot; ip=&quot;&quot; server=&quot;&quot;&gt;: / &lt;path share=&quot;&quot; to=&quot;&quot;&gt;&amp;nbsp;&lt;/path&gt;&lt;/nas&gt;&lt;/span&gt;&lt;span style=&quot;box-sizing: border-box;&quot;&gt;&amp;nbsp;/ share / MD0_DATA / remotenas&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;http://fagoteach.no-ip.org/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yuhfa.blogspot.com/feeds/1902640585338593746/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/906613225516010174/1902640585338593746' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/906613225516010174/posts/default/1902640585338593746'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/906613225516010174/posts/default/1902640585338593746'/><link rel='alternate' type='text/html' href='http://yuhfa.blogspot.com/2016/02/nas.html' title='兩個NAS掛載其中一台分享出來的資料夾成為本地硬碟！'/><author><name>發哥</name><uri>http://www.blogger.com/profile/08767606783186239234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://photos1.blogger.com/blogger2/2750/110670559755372/212/gse_multipart22619.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-906613225516010174.post-9017496802936374517</id><published>2016-02-12T07:40:00.001-08:00</published><updated>2016-03-19T01:32:18.554-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="synology nas"/><title type='text'>我的nas檔案同步到其外接USB碟的指令</title><content type='html'>rsync -avl --delete -exclude-from=/tmp/nonecopy /volume1/ /volumeUSB1/usbshare/LocalBackup/&lt;div class=&quot;blogger-post-footer&quot;&gt;http://fagoteach.no-ip.org/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yuhfa.blogspot.com/feeds/9017496802936374517/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/906613225516010174/9017496802936374517' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/906613225516010174/posts/default/9017496802936374517'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/906613225516010174/posts/default/9017496802936374517'/><link rel='alternate' type='text/html' href='http://yuhfa.blogspot.com/2016/02/nasusb.html' title='我的nas檔案同步到其外接USB碟的指令'/><author><name>發哥</name><uri>http://www.blogger.com/profile/08767606783186239234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://photos1.blogger.com/blogger2/2750/110670559755372/212/gse_multipart22619.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-906613225516010174.post-6603315695608416965</id><published>2016-01-30T21:23:00.002-08:00</published><updated>2016-03-19T01:32:31.168-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><title type='text'>mysql取代字串語法</title><content type='html'>&lt;div style=&quot;background-color: white; border: 0px; clear: both; color: #222426; font-family: Arial, &#39;Helvetica Neue&#39;, Helvetica, sans-serif; font-size: 15px; line-height: 17.7273px; margin-bottom: 1em; padding: 0px;&quot;&gt;
The easiest way I have found is to dump the database to a text file, run a sed command to do the replace, and reload the database back into MySQL.&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; clear: both; color: #222426; font-family: Arial, &#39;Helvetica Neue&#39;, Helvetica, sans-serif; font-size: 15px; line-height: 17.7273px; margin-bottom: 1em; padding: 0px;&quot;&gt;
All commands are bash on Linux, from memory.&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; clear: both; color: #222426; font-family: Arial, &#39;Helvetica Neue&#39;, Helvetica, sans-serif; font-size: 15px; line-height: 17.7273px; margin-bottom: 1em; padding: 0px;&quot;&gt;
Dump database to text file&lt;/div&gt;
&lt;pre class=&quot;lang-sql prettyprint prettyprinted&quot; style=&quot;background-color: #eeeeee; border: 0px; color: #393318; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; font-size: 13px; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; width: auto; word-wrap: normal;&quot;&gt;&lt;code style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; margin: 0px; padding: 0px; white-space: inherit;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;mysqldump &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;u &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;border: 0px; color: darkblue; margin: 0px; padding: 0px;&quot;&gt;user&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;p databasename &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;./&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;db&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;sql&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;div style=&quot;background-color: white; border: 0px; clear: both; color: #222426; font-family: Arial, &#39;Helvetica Neue&#39;, Helvetica, sans-serif; font-size: 15px; line-height: 17.7273px; margin-bottom: 1em; padding: 0px;&quot;&gt;
Run sed command to find/replace target string&lt;/div&gt;
&lt;pre class=&quot;lang-sql prettyprint prettyprinted&quot; style=&quot;background-color: #eeeeee; border: 0px; color: #393318; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; font-size: 13px; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; width: auto; word-wrap: normal;&quot;&gt;&lt;code style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; margin: 0px; padding: 0px; white-space: inherit;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;sed &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;i &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;&#39;s/oldString/newString/g&#39;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;./&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;db&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;sql&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;div style=&quot;background-color: white; border: 0px; clear: both; color: #222426; font-family: Arial, &#39;Helvetica Neue&#39;, Helvetica, sans-serif; font-size: 15px; line-height: 17.7273px; margin-bottom: 1em; padding: 0px;&quot;&gt;
Reload the database into MySQL&lt;/div&gt;
&lt;pre class=&quot;lang-sql prettyprint prettyprinted&quot; style=&quot;background-color: #eeeeee; border: 0px; color: #393318; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; font-size: 13px; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; width: auto; word-wrap: normal;&quot;&gt;&lt;code style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; margin: 0px; padding: 0px; white-space: inherit;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;mysql &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;u &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;border: 0px; color: darkblue; margin: 0px; padding: 0px;&quot;&gt;user&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;p databasename &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;./&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;db&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;sql&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;div style=&quot;background-color: white; border: 0px; clear: both; color: #222426; font-family: Arial, &#39;Helvetica Neue&#39;, Helvetica, sans-serif; font-size: 15px; line-height: 17.7273px; margin-bottom: 1em; padding: 0px;&quot;&gt;
Easy peasy.&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;http://fagoteach.no-ip.org/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yuhfa.blogspot.com/feeds/6603315695608416965/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/906613225516010174/6603315695608416965' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/906613225516010174/posts/default/6603315695608416965'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/906613225516010174/posts/default/6603315695608416965'/><link rel='alternate' type='text/html' href='http://yuhfa.blogspot.com/2016/01/mysql.html' title='mysql取代字串語法'/><author><name>發哥</name><uri>http://www.blogger.com/profile/08767606783186239234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://photos1.blogger.com/blogger2/2750/110670559755372/212/gse_multipart22619.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-906613225516010174.post-8300668993034495959</id><published>2016-01-28T02:35:00.000-08:00</published><updated>2016-03-19T01:32:59.861-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="google drive"/><category scheme="http://www.blogger.com/atom/ns#" term="linux相關"/><title type='text'>wget 直接下載google硬碟的檔案</title><content type='html'>首先將檔案設請網際網路上所有使用者均可以找到並檢視&lt;br /&gt;
接著用下列語法&lt;br /&gt;
wget --no-check-certificate&amp;nbsp;https://googledrive.com/host/&lt;span style=&quot;color: red;&quot;&gt;ID&amp;nbsp;&lt;/span&gt;-O&lt;span style=&quot;color: red;&quot;&gt; /本地端的檔案儲存路徑與檔名&lt;/span&gt;&lt;br /&gt;
其中的&lt;span style=&quot;color: red;&quot;&gt;ID&lt;/span&gt;就是若你分享的連結為：https://drive.google.com/file/d/&lt;span style=&quot;color: red;&quot;&gt;0B7wsIMxK5Td0dTNPdnNFtsdfwv&lt;/span&gt;/view?usp=sharing&lt;br /&gt;
即為&lt;span style=&quot;color: red;&quot;&gt;0B7wsIMxK5Td0dTNPdnNFtsdfwv&lt;/span&gt;&lt;br /&gt;
換言之你的下載完整指令為wget --no-check-certificate https://googledrive.com/host/&lt;span style=&quot;color: red;&quot;&gt;0B7wsIMxK5Td0dTNPdnNFtsdfwv&amp;nbsp;&lt;/span&gt;-O&lt;span style=&quot;color: red;&quot;&gt; /temp/test.tar.bz2&lt;/span&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;http://fagoteach.no-ip.org/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yuhfa.blogspot.com/feeds/8300668993034495959/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/906613225516010174/8300668993034495959' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/906613225516010174/posts/default/8300668993034495959'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/906613225516010174/posts/default/8300668993034495959'/><link rel='alternate' type='text/html' href='http://yuhfa.blogspot.com/2016/01/wget-google.html' title='wget 直接下載google硬碟的檔案'/><author><name>發哥</name><uri>http://www.blogger.com/profile/08767606783186239234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://photos1.blogger.com/blogger2/2750/110670559755372/212/gse_multipart22619.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-906613225516010174.post-3758344430488387172</id><published>2016-01-23T18:36:00.001-08:00</published><updated>2016-03-19T01:33:20.638-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="centos"/><category scheme="http://www.blogger.com/atom/ns#" term="linux相關"/><title type='text'>centos 降級php</title><content type='html'>&lt;pre style=&quot;-webkit-text-stroke-width: 0px; background-color: #eeeeee; border: 0px; color: #222426; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; margin: 0px 0px 1em; max-height: 600px; orphans: auto; overflow: auto; padding: 5px; text-align: left; text-indent: 0px; text-transform: none; widows: 1; width: auto; word-spacing: 0px; word-wrap: normal;&quot;&gt;&lt;code style=&quot;background-color: #eeeeee; border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; font-size: 13px; margin: 0px; padding: 0px; white-space: inherit;&quot;&gt;yum downgrade php\*&lt;/code&gt;&lt;/pre&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;http://fagoteach.no-ip.org/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yuhfa.blogspot.com/feeds/3758344430488387172/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/906613225516010174/3758344430488387172' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/906613225516010174/posts/default/3758344430488387172'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/906613225516010174/posts/default/3758344430488387172'/><link rel='alternate' type='text/html' href='http://yuhfa.blogspot.com/2016/01/centos-php.html' title='centos 降級php'/><author><name>發哥</name><uri>http://www.blogger.com/profile/08767606783186239234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://photos1.blogger.com/blogger2/2750/110670559755372/212/gse_multipart22619.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-906613225516010174.post-2048500099917185331</id><published>2016-01-22T07:34:00.002-08:00</published><updated>2016-03-19T01:33:37.660-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux相關"/><title type='text'>在 CentOS 6.x 安裝 ClamAV</title><content type='html'>&lt;h1 class=&quot;title&quot; style=&quot;background: rgb(255, 255, 255); border: 0px; color: #4c4c4c; font-family: &#39;Open Sans&#39;, Arial, sans-serif; font-size: 30px; font-weight: lighter; line-height: 1em; margin: 0px; outline: 0px; padding: 0px 0px 5px; vertical-align: baseline;&quot;&gt;
在 CentOS 6.x 安裝 ClamAV&lt;/h1&gt;
&lt;div style=&quot;background: rgb(255, 255, 255); border: 0px; color: #4c4c4c; font-family: &#39;Open Sans&#39;, Arial, sans-serif; font-size: 16px; line-height: 24px; outline: 0px; padding: 0px 0px 17px; vertical-align: baseline;&quot;&gt;
ClamAV 是 Linux 最常用來做防毒整合的套件之一，本文將介紹如何在 CentOS 6.x 中安裝 ClamAV。&lt;/div&gt;
&lt;div style=&quot;background: rgb(255, 255, 255); border: 0px; color: #4c4c4c; font-family: &#39;Open Sans&#39;, Arial, sans-serif; font-size: 16px; line-height: 24px; outline: 0px; padding: 0px 0px 17px; vertical-align: baseline;&quot;&gt;
新增 EPEL 套件來源&lt;/div&gt;
&lt;div class=&quot;crayon-syntax crayon-theme-classic crayon-font-courier-new crayon-os-pc print-yes notranslate&quot; data-settings=&quot; minimize scroll-mouseover&quot; id=&quot;crayon-56a238a3d5903490867055&quot; style=&quot;background: rgb(253, 253, 253) !important; border: 1px solid rgb(153, 153, 153) !important; box-sizing: border-box; color: #4c4c4c; direction: ltr !important; font-family: Monaco, MonacoRegular, &#39;Courier New&#39;, monospace; font-size: 12px !important; height: auto; line-height: 15px !important; margin: 12px 0px; outline: 0px; overflow: hidden !important; padding: 0px; position: relative !important; text-shadow: none !important; vertical-align: baseline; width: 569.19px;&quot;&gt;
&lt;div class=&quot;crayon-plain-wrap&quot; style=&quot;background: 0px 50%; border: 0px; font-family: &#39;Courier New&#39;, monospace !important; height: auto !important; margin: 0px !important; outline: 0px; padding: 0px !important; vertical-align: baseline;&quot;&gt;
&lt;textarea class=&quot;crayon-plain print-no&quot; data-settings=&quot;dblclick&quot; readonly=&quot;&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; box-shadow: none; color: black; font-family: &#39;Courier New&#39;, monospace !important; font-size: 12px !important; height: 14.5455px; line-height: 15px !important; margin: 0px; opacity: 0; overflow: hidden; padding-left: 5px; padding-right: 5px; padding-top: 0px; position: absolute; resize: none; tab-size: 4; white-space: pre; width: 567.372px; word-wrap: normal; z-index: 0;&quot; wrap=&quot;soft&quot;&gt;&lt;/textarea&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-main&quot; style=&quot;background: 0px 50%; border: 0px; font-family: &#39;Courier New&#39;, monospace !important; margin: 0px; outline: 0px; overflow: hidden; padding: 0px; position: relative; vertical-align: baseline; width: 567.372px; z-index: 1;&quot;&gt;
&lt;table class=&quot;crayon-table&quot; style=&quot;background: none !important; border-collapse: collapse !important; border-spacing: 0px !important; border: none !important; font-size: 12px; margin-bottom: 0px !important; margin-left: 0px; margin-right: 0px !important; margin-top: 0px !important; padding: 0px !important; table-layout: auto !important; width: auto !important;&quot;&gt;&lt;tbody&gt;
&lt;tr class=&quot;crayon-row&quot; style=&quot;background: 0px 50%; border: none !important; margin: 0px !important; padding: 0px !important; vertical-align: top !important;&quot;&gt;&lt;td class=&quot;crayon-nums &quot; data-settings=&quot;show&quot; style=&quot;background: rgb(223, 239, 255) !important; border: 0px; color: rgb(84, 153, 222) !important; margin: 0px !important; padding: 0px !important; vertical-align: top !important;&quot;&gt;&lt;div class=&quot;crayon-nums-content&quot; style=&quot;background: 0px 50%; border: 0px; line-height: 15px !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;&quot;&gt;
&lt;div class=&quot;crayon-num&quot; data-line=&quot;crayon-56a238a3d5903490867055-1&quot; style=&quot;background: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; outline: 0px; padding: 0px 5px; text-align: center; vertical-align: baseline;&quot;&gt;
1&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;td class=&quot;crayon-code&quot; style=&quot;background: 0px 50%; border: 0px; margin: 0px !important; padding: 0px !important; vertical-align: top !important; width: 700.909px;&quot;&gt;&lt;div class=&quot;crayon-pre&quot; style=&quot;background: none !important; border: none !important; line-height: 15px !important; margin: 0px; outline: 0px; overflow: visible; padding: 0px; tab-size: 4; vertical-align: baseline; white-space: pre;&quot;&gt;
&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-56a238a3d5903490867055-1&quot; style=&quot;background: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline;&quot;&gt;
&lt;span class=&quot;crayon-v&quot; style=&quot;background: transparent; border: 0px; color: rgb(0 , 45 , 122); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;root&lt;/span&gt;&lt;span class=&quot;crayon-h&quot; style=&quot;background: transparent; border: 0px; color: rgb(0 , 111 , 224); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;crayon-p&quot; style=&quot;background: transparent; border: 0px; color: rgb(184 , 92 , 0); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;# rpm -ivh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;background: rgb(255, 255, 255); border: 0px; color: #4c4c4c; font-family: &#39;Open Sans&#39;, Arial, sans-serif; font-size: 16px; line-height: 24px; outline: 0px; padding: 0px 0px 17px; vertical-align: baseline;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background: rgb(255, 255, 255); border: 0px; color: #4c4c4c; font-family: &#39;Open Sans&#39;, Arial, sans-serif; font-size: 16px; line-height: 24px; outline: 0px; padding: 0px 0px 17px; vertical-align: baseline;&quot;&gt;
安裝 ClamAV 套件&lt;/div&gt;
&lt;div class=&quot;crayon-syntax crayon-theme-classic crayon-font-courier-new crayon-os-pc print-yes notranslate&quot; data-settings=&quot; minimize scroll-mouseover&quot; id=&quot;crayon-56a238a3d5916621794542&quot; style=&quot;background: rgb(253, 253, 253) !important; border: 1px solid rgb(153, 153, 153) !important; box-sizing: border-box; color: #4c4c4c; direction: ltr !important; font-family: Monaco, MonacoRegular, &#39;Courier New&#39;, monospace; font-size: 12px !important; height: auto; line-height: 15px !important; margin: 12px 0px; outline: 0px; overflow: hidden !important; padding: 0px; position: relative !important; text-shadow: none !important; vertical-align: baseline; width: 569.19px;&quot;&gt;
&lt;div class=&quot;crayon-plain-wrap&quot; style=&quot;background: 0px 50%; border: 0px; font-family: &#39;Courier New&#39;, monospace !important; height: auto !important; margin: 0px !important; outline: 0px; padding: 0px !important; vertical-align: baseline;&quot;&gt;
&lt;textarea class=&quot;crayon-plain print-no&quot; data-settings=&quot;dblclick&quot; readonly=&quot;&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; box-shadow: none; color: black; font-family: &#39;Courier New&#39;, monospace !important; font-size: 12px !important; height: 14.5455px; line-height: 15px !important; margin: 0px; opacity: 0; overflow: hidden; padding-left: 5px; padding-right: 5px; padding-top: 0px; position: absolute; resize: none; tab-size: 4; white-space: pre; width: 567.372px; word-wrap: normal; z-index: 0;&quot; wrap=&quot;soft&quot;&gt;&lt;/textarea&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-main&quot; style=&quot;background: 0px 50%; border: 0px; font-family: &#39;Courier New&#39;, monospace !important; margin: 0px; outline: 0px; overflow: hidden; padding: 0px; position: relative; vertical-align: baseline; width: 567.372px; z-index: 1;&quot;&gt;
&lt;table class=&quot;crayon-table&quot; style=&quot;background: none !important; border-collapse: collapse !important; border-spacing: 0px !important; border: none !important; font-size: 12px; margin-bottom: 0px !important; margin-left: 0px; margin-right: 0px !important; margin-top: 0px !important; padding: 0px !important; table-layout: auto !important; width: auto !important;&quot;&gt;&lt;tbody&gt;
&lt;tr class=&quot;crayon-row&quot; style=&quot;background: 0px 50%; border: none !important; margin: 0px !important; padding: 0px !important; vertical-align: top !important;&quot;&gt;&lt;td class=&quot;crayon-nums &quot; data-settings=&quot;show&quot; style=&quot;background: rgb(223, 239, 255) !important; border: 0px; color: rgb(84, 153, 222) !important; margin: 0px !important; padding: 0px !important; vertical-align: top !important;&quot;&gt;&lt;div class=&quot;crayon-nums-content&quot; style=&quot;background: 0px 50%; border: 0px; line-height: 15px !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;&quot;&gt;
&lt;div class=&quot;crayon-num&quot; data-line=&quot;crayon-56a238a3d5916621794542-1&quot; style=&quot;background: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; outline: 0px; padding: 0px 5px; text-align: center; vertical-align: baseline;&quot;&gt;
1&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;td class=&quot;crayon-code&quot; style=&quot;background: 0px 50%; border: 0px; margin: 0px !important; padding: 0px !important; vertical-align: top !important; width: 550px;&quot;&gt;&lt;div class=&quot;crayon-pre&quot; style=&quot;background: none !important; border: none !important; line-height: 15px !important; margin: 0px; outline: 0px; overflow: visible; padding: 0px; tab-size: 4; vertical-align: baseline; white-space: pre;&quot;&gt;
&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-56a238a3d5916621794542-1&quot; style=&quot;background: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline;&quot;&gt;
&lt;span class=&quot;crayon-v&quot; style=&quot;background: transparent; border: 0px; color: rgb(0 , 45 , 122); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;root&lt;/span&gt;&lt;span class=&quot;crayon-h&quot; style=&quot;background: transparent; border: 0px; color: rgb(0 , 111 , 224); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;crayon-p&quot; style=&quot;background: transparent; border: 0px; color: rgb(184 , 92 , 0); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;# yum install clamav clamd clamav-devel -y&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;background: rgb(255, 255, 255); border: 0px; color: #4c4c4c; font-family: &#39;Open Sans&#39;, Arial, sans-serif; font-size: 16px; line-height: 24px; outline: 0px; padding: 0px 0px 17px; vertical-align: baseline;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background: rgb(255, 255, 255); border: 0px; color: #4c4c4c; font-family: &#39;Open Sans&#39;, Arial, sans-serif; font-size: 16px; line-height: 24px; outline: 0px; padding: 0px 0px 17px; vertical-align: baseline;&quot;&gt;
更新 ClamAV 病毒定議檔&lt;/div&gt;
&lt;div class=&quot;crayon-syntax crayon-theme-classic crayon-font-courier-new crayon-os-pc print-yes notranslate&quot; data-settings=&quot; minimize scroll-mouseover&quot; id=&quot;crayon-56a238a3d591d623080890&quot; style=&quot;background: rgb(253, 253, 253) !important; border: 1px solid rgb(153, 153, 153) !important; box-sizing: border-box; color: #4c4c4c; direction: ltr !important; font-family: Monaco, MonacoRegular, &#39;Courier New&#39;, monospace; font-size: 12px !important; height: auto; line-height: 15px !important; margin: 12px 0px; outline: 0px; overflow: hidden !important; padding: 0px; position: relative !important; text-shadow: none !important; vertical-align: baseline; width: 569.19px;&quot;&gt;
&lt;div class=&quot;crayon-plain-wrap&quot; style=&quot;background: 0px 50%; border: 0px; font-family: &#39;Courier New&#39;, monospace !important; height: auto !important; margin: 0px !important; outline: 0px; padding: 0px !important; vertical-align: baseline;&quot;&gt;
&lt;textarea class=&quot;crayon-plain print-no&quot; data-settings=&quot;dblclick&quot; readonly=&quot;&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; box-shadow: none; color: black; font-family: &#39;Courier New&#39;, monospace !important; font-size: 12px !important; height: 14.5455px; line-height: 15px !important; margin: 0px; opacity: 0; overflow: hidden; padding-left: 5px; padding-right: 5px; padding-top: 0px; position: absolute; resize: none; tab-size: 4; white-space: pre; width: 567.372px; word-wrap: normal; z-index: 0;&quot; wrap=&quot;soft&quot;&gt;&lt;/textarea&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-main&quot; style=&quot;background: 0px 50%; border: 0px; font-family: &#39;Courier New&#39;, monospace !important; margin: 0px; outline: 0px; overflow: hidden; padding: 0px; position: relative; vertical-align: baseline; width: 567.372px; z-index: 1;&quot;&gt;
&lt;table class=&quot;crayon-table&quot; style=&quot;background: none !important; border-collapse: collapse !important; border-spacing: 0px !important; border: none !important; font-size: 12px; margin-bottom: 0px !important; margin-left: 0px; margin-right: 0px !important; margin-top: 0px !important; padding: 0px !important; table-layout: auto !important; width: auto !important;&quot;&gt;&lt;tbody&gt;
&lt;tr class=&quot;crayon-row&quot; style=&quot;background: 0px 50%; border: none !important; margin: 0px !important; padding: 0px !important; vertical-align: top !important;&quot;&gt;&lt;td class=&quot;crayon-nums &quot; data-settings=&quot;show&quot; style=&quot;background: rgb(223, 239, 255) !important; border: 0px; color: rgb(84, 153, 222) !important; margin: 0px !important; padding: 0px !important; vertical-align: top !important;&quot;&gt;&lt;div class=&quot;crayon-nums-content&quot; style=&quot;background: 0px 50%; border: 0px; line-height: 15px !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;&quot;&gt;
&lt;div class=&quot;crayon-num&quot; data-line=&quot;crayon-56a238a3d591d623080890-1&quot; style=&quot;background: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; outline: 0px; padding: 0px 5px; text-align: center; vertical-align: baseline;&quot;&gt;
1&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;td class=&quot;crayon-code&quot; style=&quot;background: 0px 50%; border: 0px; margin: 0px !important; padding: 0px !important; vertical-align: top !important; width: 550px;&quot;&gt;&lt;div class=&quot;crayon-pre&quot; style=&quot;background: none !important; border: none !important; line-height: 15px !important; margin: 0px; outline: 0px; overflow: visible; padding: 0px; tab-size: 4; vertical-align: baseline; white-space: pre;&quot;&gt;
&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-56a238a3d591d623080890-1&quot; style=&quot;background: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline;&quot;&gt;
&lt;span class=&quot;crayon-v&quot; style=&quot;background: transparent; border: 0px; color: rgb(0 , 45 , 122); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;root&lt;/span&gt;&lt;span class=&quot;crayon-h&quot; style=&quot;background: transparent; border: 0px; color: rgb(0 , 111 , 224); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;crayon-p&quot; style=&quot;background: transparent; border: 0px; color: rgb(184 , 92 , 0); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;# freshclam&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;background: rgb(255, 255, 255); border: 0px; color: #4c4c4c; font-family: &#39;Open Sans&#39;, Arial, sans-serif; font-size: 16px; line-height: 24px; outline: 0px; padding: 0px 0px 17px; vertical-align: baseline;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background: rgb(255, 255, 255); border: 0px; color: #4c4c4c; font-family: &#39;Open Sans&#39;, Arial, sans-serif; font-size: 16px; line-height: 24px; outline: 0px; padding: 0px 0px 17px; vertical-align: baseline;&quot;&gt;
開機時啟用 ClamAV Daemon&lt;/div&gt;
&lt;div class=&quot;crayon-syntax crayon-theme-classic crayon-font-courier-new crayon-os-pc print-yes notranslate&quot; data-settings=&quot; minimize scroll-mouseover&quot; id=&quot;crayon-56a238a3d5924007998421&quot; style=&quot;background: rgb(253, 253, 253) !important; border: 1px solid rgb(153, 153, 153) !important; box-sizing: border-box; color: #4c4c4c; direction: ltr !important; font-family: Monaco, MonacoRegular, &#39;Courier New&#39;, monospace; font-size: 12px !important; height: auto; line-height: 15px !important; margin: 12px 0px; outline: 0px; overflow: hidden !important; padding: 0px; position: relative !important; text-shadow: none !important; vertical-align: baseline; width: 569.19px;&quot;&gt;
&lt;div class=&quot;crayon-plain-wrap&quot; style=&quot;background: 0px 50%; border: 0px; font-family: &#39;Courier New&#39;, monospace !important; height: auto !important; margin: 0px !important; outline: 0px; padding: 0px !important; vertical-align: baseline;&quot;&gt;
&lt;textarea class=&quot;crayon-plain print-no&quot; data-settings=&quot;dblclick&quot; readonly=&quot;&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; box-shadow: none; color: black; font-family: &#39;Courier New&#39;, monospace !important; font-size: 12px !important; height: 14.5455px; line-height: 15px !important; margin: 0px; opacity: 0; overflow: hidden; padding-left: 5px; padding-right: 5px; padding-top: 0px; position: absolute; resize: none; tab-size: 4; white-space: pre; width: 567.372px; word-wrap: normal; z-index: 0;&quot; wrap=&quot;soft&quot;&gt;&lt;/textarea&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-main&quot; style=&quot;background: 0px 50%; border: 0px; font-family: &#39;Courier New&#39;, monospace !important; margin: 0px; outline: 0px; overflow: hidden; padding: 0px; position: relative; vertical-align: baseline; width: 567.372px; z-index: 1;&quot;&gt;
&lt;table class=&quot;crayon-table&quot; style=&quot;background: none !important; border-collapse: collapse !important; border-spacing: 0px !important; border: none !important; font-size: 12px; margin-bottom: 0px !important; margin-left: 0px; margin-right: 0px !important; margin-top: 0px !important; padding: 0px !important; table-layout: auto !important; width: auto !important;&quot;&gt;&lt;tbody&gt;
&lt;tr class=&quot;crayon-row&quot; style=&quot;background: 0px 50%; border: none !important; margin: 0px !important; padding: 0px !important; vertical-align: top !important;&quot;&gt;&lt;td class=&quot;crayon-nums &quot; data-settings=&quot;show&quot; style=&quot;background: rgb(223, 239, 255) !important; border: 0px; color: rgb(84, 153, 222) !important; margin: 0px !important; padding: 0px !important; vertical-align: top !important;&quot;&gt;&lt;div class=&quot;crayon-nums-content&quot; style=&quot;background: 0px 50%; border: 0px; line-height: 15px !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;&quot;&gt;
&lt;div class=&quot;crayon-num&quot; data-line=&quot;crayon-56a238a3d5924007998421-1&quot; style=&quot;background: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; outline: 0px; padding: 0px 5px; text-align: center; vertical-align: baseline;&quot;&gt;
1&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;td class=&quot;crayon-code&quot; style=&quot;background: 0px 50%; border: 0px; margin: 0px !important; padding: 0px !important; vertical-align: top !important; width: 550px;&quot;&gt;&lt;div class=&quot;crayon-pre&quot; style=&quot;background: none !important; border: none !important; line-height: 15px !important; margin: 0px; outline: 0px; overflow: visible; padding: 0px; tab-size: 4; vertical-align: baseline; white-space: pre;&quot;&gt;
&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-56a238a3d5924007998421-1&quot; style=&quot;background: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline;&quot;&gt;
&lt;span class=&quot;crayon-v&quot; style=&quot;background: transparent; border: 0px; color: rgb(0 , 45 , 122); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;root&lt;/span&gt;&lt;span class=&quot;crayon-h&quot; style=&quot;background: transparent; border: 0px; color: rgb(0 , 111 , 224); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;crayon-p&quot; style=&quot;background: transparent; border: 0px; color: rgb(184 , 92 , 0); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;# service clamd start&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;background: rgb(255, 255, 255); border: 0px; color: #4c4c4c; font-family: &#39;Open Sans&#39;, Arial, sans-serif; font-size: 16px; line-height: 24px; outline: 0px; padding: 0px 0px 17px; vertical-align: baseline;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;background: rgb(255, 255, 255); border: 0px; color: #4c4c4c; font-family: &#39;Open Sans&#39;, Arial, sans-serif; font-size: 16px; line-height: 24px; outline: 0px; padding: 0px 0px 17px; vertical-align: baseline;&quot;&gt;
測試掃掃檔案&lt;/div&gt;
&lt;div class=&quot;crayon-syntax crayon-theme-classic crayon-font-courier-new crayon-os-pc print-yes notranslate&quot; data-settings=&quot; minimize scroll-mouseover&quot; id=&quot;crayon-56a238a3d592a886367199&quot; style=&quot;background: rgb(253, 253, 253) !important; border: 1px solid rgb(153, 153, 153) !important; box-sizing: border-box; color: #4c4c4c; direction: ltr !important; font-family: Monaco, MonacoRegular, &#39;Courier New&#39;, monospace; font-size: 12px !important; height: auto; line-height: 15px !important; margin: 12px 0px; outline: 0px; overflow: hidden !important; padding: 0px; position: relative !important; text-shadow: none !important; vertical-align: baseline; width: 569.19px;&quot;&gt;
&lt;div class=&quot;crayon-plain-wrap&quot; style=&quot;background: 0px 50%; border: 0px; font-family: &#39;Courier New&#39;, monospace !important; height: auto !important; margin: 0px !important; outline: 0px; padding: 0px !important; vertical-align: baseline;&quot;&gt;
&lt;textarea class=&quot;crayon-plain print-no&quot; data-settings=&quot;dblclick&quot; readonly=&quot;&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-radius: 0px; border: 0px; box-shadow: none; color: black; font-family: &#39;Courier New&#39;, monospace !important; font-size: 12px !important; height: 14.5455px; line-height: 15px !important; margin: 0px; opacity: 0; overflow: hidden; padding-left: 5px; padding-right: 5px; padding-top: 0px; position: absolute; resize: none; tab-size: 4; white-space: pre; width: 567.372px; word-wrap: normal; z-index: 0;&quot; wrap=&quot;soft&quot;&gt;&lt;/textarea&gt;&lt;/div&gt;
&lt;div class=&quot;crayon-main&quot; style=&quot;background: 0px 50%; border: 0px; font-family: &#39;Courier New&#39;, monospace !important; margin: 0px; outline: 0px; overflow: hidden; padding: 0px; position: relative; vertical-align: baseline; width: 567.372px; z-index: 1;&quot;&gt;
&lt;table class=&quot;crayon-table&quot; style=&quot;background: none !important; border-collapse: collapse !important; border-spacing: 0px !important; border: none !important; font-size: 12px; margin-bottom: 0px !important; margin-left: 0px; margin-right: 0px !important; margin-top: 0px !important; padding: 0px !important; table-layout: auto !important; width: auto !important;&quot;&gt;&lt;tbody&gt;
&lt;tr class=&quot;crayon-row&quot; style=&quot;background: 0px 50%; border: none !important; margin: 0px !important; padding: 0px !important; vertical-align: top !important;&quot;&gt;&lt;td class=&quot;crayon-nums &quot; data-settings=&quot;show&quot; style=&quot;background: rgb(223, 239, 255) !important; border: 0px; color: rgb(84, 153, 222) !important; margin: 0px !important; padding: 0px !important; vertical-align: top !important;&quot;&gt;&lt;div class=&quot;crayon-nums-content&quot; style=&quot;background: 0px 50%; border: 0px; line-height: 15px !important; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: nowrap;&quot;&gt;
&lt;div class=&quot;crayon-num&quot; data-line=&quot;crayon-56a238a3d592a886367199-1&quot; style=&quot;background: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; outline: 0px; padding: 0px 5px; text-align: center; vertical-align: baseline;&quot;&gt;
1&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;td class=&quot;crayon-code&quot; style=&quot;background: 0px 50%; border: 0px; margin: 0px !important; padding: 0px !important; vertical-align: top !important; width: 550px;&quot;&gt;&lt;div class=&quot;crayon-pre&quot; style=&quot;background: none !important; border: none !important; line-height: 15px !important; margin: 0px; outline: 0px; overflow: visible; padding: 0px; tab-size: 4; vertical-align: baseline; white-space: pre;&quot;&gt;
&lt;div class=&quot;crayon-line&quot; id=&quot;crayon-56a238a3d592a886367199-1&quot; style=&quot;background: 0px 50%; border: 0px; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; margin: 0px; outline: 0px; padding: 0px 5px; vertical-align: baseline;&quot;&gt;
&lt;span class=&quot;crayon-v&quot; style=&quot;background: transparent; border: 0px; color: rgb(0 , 45 , 122); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;root&lt;/span&gt;&lt;span class=&quot;crayon-h&quot; style=&quot;background: transparent; border: 0px; color: rgb(0 , 111 , 224); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;crayon-p&quot; style=&quot;background: transparent; border: 0px; color: rgb(184 , 92 , 0); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;# clamscan -r /etc&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span class=&quot;crayon-p&quot; style=&quot;background: transparent; border: 0px; color: rgb(184 , 92 , 0); font-family: inherit; font-size: inherit; font-weight: inherit; height: inherit; line-height: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;http://fagoteach.no-ip.org/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yuhfa.blogspot.com/feeds/2048500099917185331/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/906613225516010174/2048500099917185331' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/906613225516010174/posts/default/2048500099917185331'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/906613225516010174/posts/default/2048500099917185331'/><link rel='alternate' type='text/html' href='http://yuhfa.blogspot.com/2016/01/centos-6x-clamav.html' title='在 CentOS 6.x 安裝 ClamAV'/><author><name>發哥</name><uri>http://www.blogger.com/profile/08767606783186239234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://photos1.blogger.com/blogger2/2750/110670559755372/212/gse_multipart22619.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-906613225516010174.post-9103574471428999623</id><published>2015-09-21T00:15:00.000-07:00</published><updated>2016-03-19T01:34:06.489-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="伺服器"/><title type='text'>伺服器突然連不到？</title><content type='html'>今天在家裡，連上學校的伺服器，結果不僅速度很慢，且出現一些資料庫有問題的訊息，心想因為昨天在學校升級joomla，而尚其在升級文章時，不知是檔案太大，資料大多，還是升級軟體的bug，反正就是超慢，所以我就回家，讓伺服器慢慢跑，而我回到家也高興的看著該檔案越來越大(表示一直在升級中)，等隔天起床看，發現在家裡很難再連上伺服器，且以phpmyadmin幾乎進不去了，心想可能是mysql的負擔太大，以至於伺服器無法處理資料庫相關的需求，於是我只好將伺服器重啟，結果重啟後，在家中就再也連不到伺服器了(心想，可能是伺服器的loading 太重，所以重開機的速度太久)。&lt;br /&gt;
今天到校發現伺服器已重開完機了，但我從其它電腦想連上它，卻連不上(無論是http，或ssh)，於是我重啟重mysql與http都無效，結果發現我的network根本沒啟動，原因是eth0，因為我與伺服器網卡被設定為eth2，所以我只好重設setup network，將eth0指定到eth2，好不易設定好久後，卻發現仍然無法連上internet，再看才發現，我router所指定的伺服器ip沒有對到我的伺服器IP，原來是我的伺服器IP跑掉了，而router所指定的http server與真定server的IP不合，所以難怪外面連不進來，後來在router裡指定ip與MAC，而最後總算在網海裡又見到我的server了。&lt;div class=&quot;blogger-post-footer&quot;&gt;http://fagoteach.no-ip.org/&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yuhfa.blogspot.com/feeds/9103574471428999623/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/906613225516010174/9103574471428999623' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/906613225516010174/posts/default/9103574471428999623'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/906613225516010174/posts/default/9103574471428999623'/><link rel='alternate' type='text/html' href='http://yuhfa.blogspot.com/2015/09/blog-post.html' title='伺服器突然連不到？'/><author><name>發哥</name><uri>http://www.blogger.com/profile/08767606783186239234</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='26' height='32' src='http://photos1.blogger.com/blogger2/2750/110670559755372/212/gse_multipart22619.jpg'/></author><thr:total>0</thr:total></entry></feed>