<?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-3994398398110947745</id><updated>2024-10-05T10:44:01.744+08:00</updated><category term="Flash"/><category term="教學"/><category term="php"/><category term="Linux"/><category term="AJAX_JS"/><category term="CSS"/><category term="Mysql"/><category term="web server"/><category term="internet"/><category term="網站"/><category term="網頁"/><category term=".Net"/><category term="MS"/><category term="陰影"/><category term="XML"/><category term="database"/><category term="innodb"/><category term="wordpress"/><title type='text'>A Blogger</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://assinthehole.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3994398398110947745/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://assinthehole.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/3994398398110947745/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>AssInTheHole</name><uri>http://www.blogger.com/profile/03887091386144740739</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>86</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3994398398110947745.post-4194337550713954969</id><published>2012-08-06T00:54:00.002+08:00</published><updated>2012-08-06T00:55:39.649+08:00</updated><title type='text'>win7 防火牆設定</title><content type='html'>&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;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
控制台-&amp;gt; administrative &amp;nbsp;tool -&amp;gt; Firewall&lt;/div&gt;
&lt;br /&gt;&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/b/R29vZ2xl/AVvXsEgAZDAujN_5mNnCI6WCQw-_I5iQxhLqqY6FyXNLpoMgdmrcbaYhyphenhyphenEP5xZ6MZ3C9BUceNGEnGqBzlOei7XYSfK0HHwWOkxHsKN4eRcLYnZHiAsPMh6PBK4L8CnPEZhcb6Nl1g2MB5sHD1Vk/s1600/firewall.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;294&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAZDAujN_5mNnCI6WCQw-_I5iQxhLqqY6FyXNLpoMgdmrcbaYhyphenhyphenEP5xZ6MZ3C9BUceNGEnGqBzlOei7XYSfK0HHwWOkxHsKN4eRcLYnZHiAsPMh6PBK4L8CnPEZhcb6Nl1g2MB5sHD1Vk/s640/firewall.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&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;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;br /&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3994398398110947745/posts/default/4194337550713954969'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3994398398110947745/posts/default/4194337550713954969'/><link rel='alternate' type='text/html' href='http://assinthehole.blogspot.com/2012/08/win7.html' title='win7 防火牆設定'/><author><name>AssInTheHole</name><uri>http://www.blogger.com/profile/03887091386144740739</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAZDAujN_5mNnCI6WCQw-_I5iQxhLqqY6FyXNLpoMgdmrcbaYhyphenhyphenEP5xZ6MZ3C9BUceNGEnGqBzlOei7XYSfK0HHwWOkxHsKN4eRcLYnZHiAsPMh6PBK4L8CnPEZhcb6Nl1g2MB5sHD1Vk/s72-c/firewall.png" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-3994398398110947745.post-2130132324926878075</id><published>2009-12-10T03:40:00.000+08:00</published><updated>2009-12-10T03:40:43.282+08:00</updated><title type='text'>wordpree 會員登入的Cookie設定</title><content type='html'>最近有case要整合 wordpress的會員系統&lt;br /&gt;
&lt;br /&gt;
本來都寫完了&lt;br /&gt;
結果安裝其他的plugin後，發現會員系統出了問題&lt;br /&gt;
沒辦法抓到已登入的會員資料，&lt;br /&gt;
但是用$current_user-&amp;gt;user_login 是可以抓到資料的&lt;br /&gt;
wordpress的get_current_user 也是正常的&lt;br /&gt;
花了好長時間才發現&lt;br /&gt;
原來wordpress 的登入的cookie資料，必需設定以下路徑&lt;br /&gt;
wordpress_logged_in_XXXXXXXXXX &lt;br /&gt;
/&amp;nbsp;&amp;nbsp; 主目錄&lt;br /&gt;
/wp前端目錄&lt;br /&gt;
/wp/wp-admin 後台目錄&lt;br /&gt;
/wp/wp-content/plugin &amp;nbsp; 外掛目錄&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
wordpress_XXXXXXXXXX &lt;br /&gt;
/wp/wp-admin 後台目錄</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3994398398110947745/posts/default/2130132324926878075'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3994398398110947745/posts/default/2130132324926878075'/><link rel='alternate' type='text/html' href='http://assinthehole.blogspot.com/2009/12/wordpree-cookie.html' title='wordpree 會員登入的Cookie設定'/><author><name>AssInTheHole</name><uri>http://www.blogger.com/profile/03887091386144740739</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3994398398110947745.post-535275535679978981</id><published>2009-11-29T04:46:00.002+08:00</published><updated>2009-12-10T03:29:20.066+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="wordpress"/><title type='text'>wordpress 會員登入整合</title><content type='html'>require_once(/wp/wp-includes/class-phpass.php&#39;);&lt;br /&gt;
require_once(/wp/wp-includes/cache.php&#39;); &lt;br /&gt;
function user_password($username,$password=false)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; //user id&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; //$GLOBALS[&#39;_p&#39;]-&amp;gt;debug=true;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $u=&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *get user_pass&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $wp_hasher = new PasswordHash(8, TRUE);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; $check = $wp_hasher-&amp;gt;CheckPassword($password, $u[0][&#39;user_pass&#39;]);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return $check;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
define(&#39;COOKIEHASH&#39;, md5 (&amp;nbsp; wp_options的 siteurl&amp;nbsp; );&lt;br /&gt;
define(&#39;AUTH_COOKIE&#39;,&#39;wordpress_logged_in_&#39;.COOKIEHASH);&lt;br /&gt;
&lt;br /&gt;
設定$current_user &lt;br /&gt;
&amp;nbsp; $user=getUserID(); //抓user ID;&lt;br /&gt;
&amp;nbsp; wp_set_current_user($user);&lt;br /&gt;
&lt;br /&gt;
cookie的設定要 設很多路徑&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; setcookie($cookie,$s,$time,COOKIEPATH, COOKIE_DOMAIN, &#39;&#39;, true);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; setcookie($cookie,$s,$time,SITECOOKIEPATH, COOKIE_DOMAIN, &#39;&#39;, true);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; setcookie($cookie,$s,$time,ADMIN_COOKIE_PATH, COOKIE_DOMAIN, &#39;&#39;, true);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; setcookie($cookie,$s,$time,PLUGINS_COOKIE_PATH, COOKIE_DOMAIN, &#39;&#39;, true);</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3994398398110947745/posts/default/535275535679978981'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3994398398110947745/posts/default/535275535679978981'/><link rel='alternate' type='text/html' href='http://assinthehole.blogspot.com/2009/11/wordpress.html' title='wordpress 會員登入整合'/><author><name>AssInTheHole</name><uri>http://www.blogger.com/profile/03887091386144740739</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3994398398110947745.post-8122353229406635768</id><published>2009-11-27T01:10:00.000+08:00</published><updated>2009-11-27T01:10:48.822+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Flash"/><title type='text'>Flash &amp; php  多檔案上傳</title><content type='html'>Flash 多檔案上傳，一次上傳2個以上的檔案&lt;br /&gt;
var f:FileReferenceList=new FileReferenceList();&lt;br /&gt;
f.addEventListener(Event.SELECT, selectHandler);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
var request2:URLRequest = new URLRequest();&lt;br /&gt;
var file:FileReference = FileReference(fileList[i]);&lt;br /&gt;
file.addEventListener(ProgressEvent.PROGRESS,progressHandler);&lt;br /&gt;
file.addEventListener(Event.COMPLETE, completeHandler)&lt;br /&gt;
file.upload(request2);;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3994398398110947745/posts/default/8122353229406635768'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3994398398110947745/posts/default/8122353229406635768'/><link rel='alternate' type='text/html' href='http://assinthehole.blogspot.com/2009/11/flash-php.html' title='Flash &amp; php  多檔案上傳'/><author><name>AssInTheHole</name><uri>http://www.blogger.com/profile/03887091386144740739</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3994398398110947745.post-6420459606889259746</id><published>2009-11-11T16:31:00.000+08:00</published><updated>2009-11-11T16:31:10.334+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="php"/><title type='text'>php 自動下載圖片</title><content type='html'>PHP下載圖片，必需使用二進位的讀寫方式&lt;br /&gt;
&lt;br /&gt;
$image=&#39;http://xxxxxxxxxxxxx/xxx.jpg&#39;; &lt;br /&gt;
$f=fopen($image,&#39;rb&#39;);&lt;br /&gt;
$dis=&#39;/home/root/&#39;;&lt;br /&gt;
$name=&#39;new_file_name.jpg&#39;;&lt;br /&gt;
$f2=fopen($dis.$name,&#39;wb&#39;);&lt;br /&gt;
&lt;br /&gt;
while(!feof($f)){&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fputs($f2,fgetc($f));&lt;br /&gt;
&amp;nbsp;}&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;fclose($f);&lt;br /&gt;
fclose($f2);</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3994398398110947745/posts/default/6420459606889259746'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3994398398110947745/posts/default/6420459606889259746'/><link rel='alternate' type='text/html' href='http://assinthehole.blogspot.com/2009/11/php.html' title='php 自動下載圖片'/><author><name>AssInTheHole</name><uri>http://www.blogger.com/profile/03887091386144740739</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3994398398110947745.post-3963750591218171292</id><published>2009-10-07T17:52:00.007+08:00</published><updated>2009-10-07T18:02:16.973+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="web server"/><category scheme="http://www.blogger.com/atom/ns#" term="教學"/><title type='text'>VDSL 光纖  路由器設定  &amp;  DHCP</title><content type='html'>ADSL的光纖版叫 VDSL&lt;br /&gt;
本身就有路由器功能，不用另外買分享器也能做虛擬ip設定&lt;br /&gt;
&lt;br /&gt;
1.先設定DNS 伺服器為 192.168.1.1(VDSL預設)，這樣才能連到vdsl伺服器&lt;br /&gt;
如下圖 &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/b/R29vZ2xl/AVvXsEj7tKmvwEqnKa6OeVdAcnJqDK3dXSgRCKC4_ntyZTUyE2ShMvlNJc0JtQFTdyD_Q_DzA8fgMb_0LxXFFPoKeh4lzqSnhDC1Zu_mpdZdq6PxKoqvUqJvAW8u2YMrs02FgVGynvmBAQLghPA/s1600-h/1.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7tKmvwEqnKa6OeVdAcnJqDK3dXSgRCKC4_ntyZTUyE2ShMvlNJc0JtQFTdyD_Q_DzA8fgMb_0LxXFFPoKeh4lzqSnhDC1Zu_mpdZdq6PxKoqvUqJvAW8u2YMrs02FgVGynvmBAQLghPA/s320/1.JPG&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;2.在 ie 瀏覽器 網址列上打&amp;nbsp; 192.168.1.1&lt;br /&gt;
輸入帳號密碼&lt;br /&gt;
帳號cht 密碼chtnvdsl 北部&lt;br /&gt;
帳號cht 密碼chtcvdsl 中部&lt;br /&gt;
帳號cht 密碼chtsvdsl 南部&lt;br /&gt;
&lt;br /&gt;
3. 進入 advanced Setup &amp;gt; Wan&lt;br /&gt;
點 Add新增 網路設定&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&amp;nbsp;&lt;b&gt;Select a layer 2 interface for this service 這個不改&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;b&gt;Connection Type&amp;nbsp; 選 PPPoE&lt;/b&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;&lt;b&gt;輸入帳密&lt;/b&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Network Address Translation Settings&amp;nbsp;&amp;nbsp; 不改&lt;/b&gt;&lt;b&gt;&lt;b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Routing -- Default Gateway 選擇你剛剛選的名稱&lt;br /&gt;
&lt;/b&gt;&lt;/li&gt;
&lt;/ul&gt;4.進入 advanced Setup &amp;gt; Routing &amp;gt; Default Gateway&lt;br /&gt;
&amp;nbsp;&amp;nbsp; 選擇你剛剛建立的設定名稱，指定為預設網路連結&lt;br /&gt;
&lt;br /&gt;
以上硬體播接就設定完成了，只要電腦的DNS伺服器設定為192.168.1.1&lt;br /&gt;
就會自動連上網路&lt;br /&gt;
&lt;br /&gt;
5.啟動 DHCP&lt;br /&gt;
進入 advanced Setup &amp;gt;NAT &lt;br /&gt;
勾選 Enable DHCP Server&lt;br /&gt;
Start IP Address:&amp;nbsp; 192.168.1.2&lt;br /&gt;
End IP Address: 192.168.1.255&lt;br /&gt;
&lt;br /&gt;
另外你可以用Mac Address 來自動分配電腦 IP&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;table border=&quot;1&quot; cellpadding=&quot;3&quot; cellspacing=&quot;0&quot;&gt;&lt;tbody&gt;
&lt;tr align=&quot;middle&quot;&gt; &lt;td class=&quot;hd&quot;&gt;MAC Address&lt;br /&gt;
&lt;/td&gt; &lt;td class=&quot;hd&quot;&gt;IP Address&lt;br /&gt;
&lt;/td&gt; &lt;td class=&quot;hd&quot;&gt;Remove&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;tr align=&quot;middle&quot;&gt; &lt;td&gt;00:1A:92:89:59:4A&lt;br /&gt;
&lt;/td&gt; &lt;td&gt;192.168.1.2&lt;br /&gt;
&lt;/td&gt; &lt;td&gt;&lt;br /&gt;
&lt;input name=&quot;rml&quot; type=&quot;checkbox&quot; value=&quot;00:1A:92:89:59:4A&quot; /&gt;&lt;br /&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;br /&gt;
6.開放網站伺服器 ，FTP...等功能&lt;br /&gt;
進入 Advances Setup &amp;gt; NAT &amp;gt; Virtual Srevers&lt;br /&gt;
開啟 伺服器的 port&amp;nbsp; 80&amp;nbsp; 21 ......&amp;nbsp; 與指定ip&lt;br /&gt;
這樣能指定某台電腦來當單一伺服器&lt;br /&gt;
&lt;br /&gt;
7.指定一台電腦為全伺服器&lt;br /&gt;
進入 Advances Setup &amp;gt; NAT &amp;gt; DMZ Host&lt;br /&gt;
打上 IP 192.168.1.x&lt;br /&gt;
這樣某人連到你的 ip，不管是什麼port，都會被導向至你所指定的電腦&lt;br /&gt;
&lt;/dd&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3994398398110947745/posts/default/3963750591218171292'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3994398398110947745/posts/default/3963750591218171292'/><link rel='alternate' type='text/html' href='http://assinthehole.blogspot.com/2009/10/vdsl-dhcp.html' title='VDSL 光纖  路由器設定  &amp;  DHCP'/><author><name>AssInTheHole</name><uri>http://www.blogger.com/profile/03887091386144740739</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7tKmvwEqnKa6OeVdAcnJqDK3dXSgRCKC4_ntyZTUyE2ShMvlNJc0JtQFTdyD_Q_DzA8fgMb_0LxXFFPoKeh4lzqSnhDC1Zu_mpdZdq6PxKoqvUqJvAW8u2YMrs02FgVGynvmBAQLghPA/s72-c/1.JPG" height="72" width="72"/></entry><entry><id>tag:blogger.com,1999:blog-3994398398110947745.post-7299615613597103943</id><published>2009-10-04T21:50:00.001+08:00</published><updated>2009-11-11T03:14:07.174+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="php"/><title type='text'>php 寄信中文亂碼處理</title><content type='html'>1.指定UTF-8編碼&amp;nbsp;&amp;nbsp;&amp;nbsp; Content-type:text/html;charset=utf8&lt;br /&gt;
2.php檔編碼方式改為UTF-8&lt;br /&gt;
3.主題編碼使用 base64_encode&lt;br /&gt;
&lt;br /&gt;
$Name=&quot;主題有中文&quot;;&lt;br /&gt;
$Name =&quot;=?UTF-8?B?&quot;. base64_encode($Name) .&quot;?=&quot;; &lt;br /&gt;
&amp;nbsp; &lt;br /&gt;
$headers = &quot;MIME-Version: 1.0&quot; . &quot;\r\n&quot;; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
$headers .= &quot; Content-type:text/html;charset=utf8&quot; . &quot;\r\n&quot;;&lt;br /&gt;
&lt;br /&gt;
$headers .= &#39;From: &lt;a href=&quot;mailto:postfix@test.com%27&quot;&gt;postfix@test.com&#39;&lt;/a&gt; . &quot;\r\n&quot;; &lt;br /&gt;
mail(&lt;a href=&quot;mailto:%27test@gmail.com%27&quot;&gt;&#39;test@gmail.com&#39;&lt;/a&gt;, $Name, &#39;內容有中文&#39;,$header);&lt;br /&gt;
&lt;br /&gt;
如果要big5 編碼 &lt;br /&gt;
$subject = mb_convert_encoding($subject,&quot;big5&quot;,&quot;utf-8&quot;);&lt;br /&gt;
$mail_body = mb_convert_encoding($mail_body,&quot;big5&quot;,&quot;utf-8&quot;);</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3994398398110947745/posts/default/7299615613597103943'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3994398398110947745/posts/default/7299615613597103943'/><link rel='alternate' type='text/html' href='http://assinthehole.blogspot.com/2009/10/php.html' title='php 寄信中文亂碼處理'/><author><name>AssInTheHole</name><uri>http://www.blogger.com/profile/03887091386144740739</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3994398398110947745.post-582801625907598998</id><published>2009-10-04T21:44:00.004+08:00</published><updated>2010-01-11T01:35:17.103+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>freebsd postfix 郵件伺服器</title><content type='html'>&lt;b&gt;安裝&lt;/b&gt;&lt;br /&gt;
cd /usr/ports/mail/postfix&lt;br /&gt;
make install clean&lt;br /&gt;
&lt;br /&gt;
可安裝套件&lt;br /&gt;
SASL :登入驗証&lt;br /&gt;
&lt;a href=&quot;http://zh.wikipedia.org/zh-hk/%E4%BC%A0%E8%BE%93%E5%B1%82%E5%AE%89%E5%85%A8&quot;&gt;TLS&lt;/a&gt; &amp;amp; SSL&amp;nbsp;:資料傳輸保密機制&lt;br /&gt;
&lt;br /&gt;
設定&lt;br /&gt;
/usr/local/etc/postfix/main.cf&lt;br /&gt;
hostname=xxxx.com.tw &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.freebsddiary.org/postfix.php&quot;&gt;http://www.freebsddiary.org/postfix.php&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.postfix.org/basic.html&quot;&gt;http://www.postfix.org/basic.html&lt;/a&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3994398398110947745/posts/default/582801625907598998'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3994398398110947745/posts/default/582801625907598998'/><link rel='alternate' type='text/html' href='http://assinthehole.blogspot.com/2009/10/freebsd-postfix.html' title='freebsd postfix 郵件伺服器'/><author><name>AssInTheHole</name><uri>http://www.blogger.com/profile/03887091386144740739</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3994398398110947745.post-8022057477095214134</id><published>2009-10-01T15:09:00.004+08:00</published><updated>2009-10-02T14:55:34.428+08:00</updated><title type='text'>freebsd 安裝 php 套件 curl  iconv</title><content type='html'>&lt;span id=&quot;fullpost&quot;&gt;&lt;code class=&quot;cmd&quot;&gt;&lt;b&gt;curl &lt;/b&gt;&lt;br /&gt;
&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span id=&quot;fullpost&quot;&gt;&lt;code class=&quot;cmd&quot;&gt;cd &lt;/code&gt;&lt;/span&gt;&lt;code class=&quot;code&quot;&gt;/usr/ports/ftp/php5-curl&lt;/code&gt;&lt;br /&gt;
&lt;span id=&quot;fullpost&quot;&gt;&lt;code class=&quot;cmd&quot;&gt;make install clean&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span id=&quot;fullpost&quot;&gt;&lt;code class=&quot;cmd&quot;&gt; &lt;b&gt;iconv&lt;/b&gt;&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span id=&quot;fullpost&quot;&gt;&lt;code class=&quot;cmd&quot;&gt;cd &lt;/code&gt;&lt;/span&gt;&lt;code class=&quot;code&quot;&gt;/usr/ports/converters/php5-iconv&lt;/code&gt;&lt;br /&gt;
&lt;span id=&quot;fullpost&quot;&gt;&lt;code class=&quot;cmd&quot;&gt;make install clean&lt;/code&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span id=&quot;fullpost&quot;&gt;&lt;code class=&quot;cmd&quot;&gt;&lt;br /&gt;
&lt;/code&gt;&lt;/span&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3994398398110947745/posts/default/8022057477095214134'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3994398398110947745/posts/default/8022057477095214134'/><link rel='alternate' type='text/html' href='http://assinthehole.blogspot.com/2009/10/freebsd-php-curl.html' title='freebsd 安裝 php 套件 curl  iconv'/><author><name>AssInTheHole</name><uri>http://www.blogger.com/profile/03887091386144740739</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3994398398110947745.post-4063260534767318815</id><published>2009-09-14T12:37:00.002+08:00</published><updated>2009-09-28T16:49:03.369+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>freebsd  Awstats</title><content type='html'>awstats可以統計網站的每天流量&lt;br /&gt;
&lt;br /&gt;
安裝&lt;br /&gt;
cd /usr/ports/www/awstats&lt;br /&gt;
make install clean&lt;br /&gt;
&lt;br /&gt;
cd /usr/local/www/awstats/tool&lt;br /&gt;
./awstats_configure.pl&lt;br /&gt;
&lt;br /&gt;
設定路徑 變數&lt;br /&gt;
&lt;br /&gt;
awstats.XXXXX.conf 設定&lt;br /&gt;
LogFile=&quot;/www/log/xxxxxx.log&quot;&lt;br /&gt;
SiteDomain=&quot;www.xx.com.tw&quot;&lt;br /&gt;
HostAliases=&quot;www.xx.com.tw  127.0.0.1 localhost&quot;&lt;br /&gt;
&lt;br /&gt;
awstats資料庫位置&lt;br /&gt;
DirData=&quot;/www/awstats/dir&quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
更新&lt;br /&gt;
cd /usr/ports/www/awstats/cgi-bin&lt;br /&gt;
perl awstats.pl -config=www.xxx.om.tw&lt;br /&gt;
&lt;br /&gt;
http://ahmadriki.blogspot.com/2008/04/install-awstats-on-freebsd_13.html&lt;br /&gt;
http://plone.org/documentation/tutorial/plone-apache/virtualhost</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3994398398110947745/posts/default/4063260534767318815'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3994398398110947745/posts/default/4063260534767318815'/><link rel='alternate' type='text/html' href='http://assinthehole.blogspot.com/2009/09/freebsd-awstats.html' title='freebsd  Awstats'/><author><name>AssInTheHole</name><uri>http://www.blogger.com/profile/03887091386144740739</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3994398398110947745.post-518986560006999768</id><published>2009-09-14T09:53:00.004+08:00</published><updated>2009-09-28T16:49:15.628+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>freeBSD Samba 安裝設定</title><content type='html'>&lt;h3&gt;檔案分享 samba&lt;/h3&gt;cd /user/ports/net/samba3&lt;br /&gt;
make install clean&lt;br /&gt;
&lt;br /&gt;
可安裝選項&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;&lt;a href=&quot;http://www.l-penguin.idv.tw/article/ldap-1.htm&quot;&gt;LDAP: Lightweight Directory Access Protocol.&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://zh.wikipedia.org/wiki/Active_Directory&quot;&gt;Active Directory :活動目錄&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;CUPS  printing:支持印表機分享&lt;/li&gt;
&lt;li&gt;winBIND:  linux windows 登入整合&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://en.wikipedia.org/wiki/File_alteration_monitor&quot;&gt;File Alteration Monitor: 檔案是否已被修改提示&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;syslog ：記錄&lt;/li&gt;
&lt;li&gt;quotas&lt;/li&gt;
&lt;li&gt;UTMP:登 錄 記 錄&lt;/li&gt;
&lt;li&gt;MSDFS&lt;/li&gt;
&lt;/ol&gt;在/etc/rc.conf 中加入&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;samba_enable=&quot;YES&lt;/li&gt;
&lt;li&gt;&lt;code&gt;nmbd_enable=&quot;YES&quot;&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;smbd_enable=&quot;YES&quot;&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;啟動 /usr/local/etc/rc.d/samba start    stop  restart&lt;br /&gt;
設定檔在 /usr/local/etc/smb.conf&lt;br /&gt;
設定選項&lt;br /&gt;
1.內部管理，指定訪客Root登入&lt;br /&gt;
security= share&lt;br /&gt;
guest account = root&lt;br /&gt;
hosts allow=192.168.1.   192.168.2.  127.&lt;br /&gt;
&lt;br /&gt;
[homes]&lt;br /&gt;
browseable=yes&lt;br /&gt;
writeable=yes&lt;br /&gt;
path=/&lt;br /&gt;
guest ok=yes</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3994398398110947745/posts/default/518986560006999768'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3994398398110947745/posts/default/518986560006999768'/><link rel='alternate' type='text/html' href='http://assinthehole.blogspot.com/2009/09/freebsd-samba.html' title='freeBSD Samba 安裝設定'/><author><name>AssInTheHole</name><uri>http://www.blogger.com/profile/03887091386144740739</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3994398398110947745.post-1310121091785268920</id><published>2009-09-10T16:03:00.007+08:00</published><updated>2009-09-28T16:49:31.979+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="internet"/><title type='text'>DVD光碟  騙人的4.7GB</title><content type='html'>剛買了燒錄器和4.7 GB  dvd光碟片&lt;br /&gt;
結果回來試燒，系統竟然跟我說&lt;br /&gt;
光碟片只有4482xxxx bytes空間  ( 約4482MB)&lt;br /&gt;
哇怎麼少了3G，看一下光碟片上又寫 4.7億位元組&lt;br /&gt;
&lt;br /&gt;
我想又是算法不一樣，可惡的貪商&lt;br /&gt;
電腦的檔案大小是用1024進位&lt;br /&gt;
而一般光碟是用10進位&lt;br /&gt;
結果 4.7億在轉換成電腦的進位法&lt;br /&gt;
4.7 除 1.024  再除 1.024&lt;br /&gt;
=4.482  ( = = 剛剛好 )&lt;br /&gt;
&lt;br /&gt;
奸商真可恨&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
另外頻寬的算法也是&lt;br /&gt;
一般光纖 下載 10Mbps&lt;br /&gt;
是指每秒  10 Mb&lt;br /&gt;
轉換成電腦算法  ( 1B(Byte) =8b(bit)) &lt;br /&gt;
&lt;br /&gt;
10 除 8  = 1.25 MB&lt;br /&gt;
是不是變慢很多呢  XD</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3994398398110947745/posts/default/1310121091785268920'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3994398398110947745/posts/default/1310121091785268920'/><link rel='alternate' type='text/html' href='http://assinthehole.blogspot.com/2009/09/dvd-47gb.html' title='DVD光碟  騙人的4.7GB'/><author><name>AssInTheHole</name><uri>http://www.blogger.com/profile/03887091386144740739</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3994398398110947745.post-8781418805610331630</id><published>2009-09-03T17:27:00.003+08:00</published><updated>2009-09-28T16:49:42.229+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="php"/><title type='text'>php xdebug  好慢</title><content type='html'>剛下載xdebug回來安裝&lt;br /&gt;
&lt;br /&gt;
tar -xvf xdebug-2.0.5.tgz&lt;br /&gt;
cd xdebug&lt;br /&gt;
phpize&lt;br /&gt;
./configure --enable-xdebug&lt;br /&gt;
make install&lt;br /&gt;
&lt;br /&gt;
extesion.ini加上 xdebug.so&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
安裝順利成功&lt;br /&gt;
不過安裝xdebug後速度會慢十倍左右 = =</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3994398398110947745/posts/default/8781418805610331630'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3994398398110947745/posts/default/8781418805610331630'/><link rel='alternate' type='text/html' href='http://assinthehole.blogspot.com/2009/09/php-xdebug.html' title='php xdebug  好慢'/><author><name>AssInTheHole</name><uri>http://www.blogger.com/profile/03887091386144740739</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3994398398110947745.post-23780457336079059</id><published>2009-09-02T20:09:00.003+08:00</published><updated>2009-09-28T16:50:01.706+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>freebsd SSH 安裝設定</title><content type='html'>freebsd 內建已經裝好SSH了，只要設定、啟動即可&lt;br /&gt;
&lt;br /&gt;
#sysinstall&lt;br /&gt;
允許 ssh&lt;br /&gt;
在/etc/rc.conf&lt;br /&gt;
加上 ssh_enable=&quot;YES&quot;&lt;br /&gt;
啟動 /etc/rc.d/sshd restart&lt;br /&gt;
&lt;br /&gt;
設定檔位置&lt;br /&gt;
/etc/ssh/sshd_config&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;允許遠端 Root 登入      PermitRootLogin yes&lt;br /&gt;
&lt;/li&gt;
&lt;/ol&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3994398398110947745/posts/default/23780457336079059'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3994398398110947745/posts/default/23780457336079059'/><link rel='alternate' type='text/html' href='http://assinthehole.blogspot.com/2009/09/ssh.html' title='freebsd SSH 安裝設定'/><author><name>AssInTheHole</name><uri>http://www.blogger.com/profile/03887091386144740739</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3994398398110947745.post-3251368306390207027</id><published>2009-09-02T13:46:00.005+08:00</published><updated>2009-09-28T16:49:51.903+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="php"/><title type='text'>php extension</title><content type='html'>系統 freebsd&lt;br /&gt;
&lt;br /&gt;
裝了PHP5後&lt;br /&gt;
phpize 預設安裝在 /usr/local/bin/phpize&lt;br /&gt;
alias phpize   /usr/local/bin/phpize&lt;br /&gt;
php  so模版儲存位置&lt;br /&gt;
/usr/local/lib/php/20060613-debug&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
config.m4 擴展設定&lt;br /&gt;
PHP_REQUIRE_CXX  擴展c++&lt;br /&gt;
PHP_ADD_LIBRARY(stdc++, 1, VEHICLES_SHARED_LIBADD)  加上c++的 std library&lt;br /&gt;
&lt;br /&gt;
zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, &quot;slls&quot;, &amp;amp;data,&amp;amp;s_len,&amp;amp;save,&amp;amp;stime,&amp;amp;data2,&amp;amp;s_len2) == FAILURE)&lt;br /&gt;
變數個數　zend_num_args()&lt;br /&gt;
&quot;slls&quot; 變數型態　s 字串　　l 長整數&lt;br /&gt;
字串需要宣告一個char *  及一個　　int來接變數  &lt;br /&gt;
&lt;br /&gt;
參考資料&lt;br /&gt;
中文 http://www.ctoof.net/?p=819&lt;br /&gt;
中文&lt;br /&gt;
1&lt;br /&gt;
http://www.cyask.com/question.php?qid=1571&lt;br /&gt;
2&lt;br /&gt;
http://www.cyask.com/question.php?qid=1572&lt;br /&gt;
英文 http://devzone.zend.com/article/4486-Wrapping-C-Classes-in-a-PHP-Extension</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3994398398110947745/posts/default/3251368306390207027'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3994398398110947745/posts/default/3251368306390207027'/><link rel='alternate' type='text/html' href='http://assinthehole.blogspot.com/2009/09/php-extension.html' title='php extension'/><author><name>AssInTheHole</name><uri>http://www.blogger.com/profile/03887091386144740739</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3994398398110947745.post-4575139183281388450</id><published>2009-09-02T00:18:00.002+08:00</published><updated>2009-09-28T16:50:27.449+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>freebsd 指令</title><content type='html'>freebsd list socket port&lt;br /&gt;
列出開啟的port&lt;br /&gt;
sockstat -l&lt;br /&gt;
&lt;br /&gt;
看local address&lt;br /&gt;
例 127.0.0.1.25</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3994398398110947745/posts/default/4575139183281388450'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3994398398110947745/posts/default/4575139183281388450'/><link rel='alternate' type='text/html' href='http://assinthehole.blogspot.com/2009/09/freebsd.html' title='freebsd 指令'/><author><name>AssInTheHole</name><uri>http://www.blogger.com/profile/03887091386144740739</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3994398398110947745.post-6086289016221932849</id><published>2009-09-01T22:47:00.004+08:00</published><updated>2009-09-01T23:02:02.762+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>freebsd   /boot/defaults/loader.conf  unable to load kernel</title><content type='html'>/boot/defaults/loader.conf  unable to load kernel&lt;br /&gt;OK&lt;br /&gt;&lt;br /&gt;看到這句就代表抓不到kernel&lt;br /&gt;&lt;br /&gt;解決辦法是&lt;br /&gt;****&lt;br /&gt;1.方法一&lt;br /&gt;自已指定kernel名稱，先進入freebsd 再說&lt;br /&gt;下指令  boot  kernel名稱&lt;br /&gt;可以執行舊的kernel&lt;br /&gt;例如&lt;br /&gt;OK  boot /boot/GENERIC&lt;br /&gt;&lt;br /&gt;不知道你 有什麼kernel的話&lt;br /&gt;輸入 OK  ls /boot&lt;br /&gt;會自動列出一堆東西，自已猜吧(一個一個試也行)&lt;br /&gt;我使用freebsd7.0&lt;br /&gt;下這句有效&lt;br /&gt;OK  boot /boot/GENERIC&lt;br /&gt;***&lt;br /&gt;2.方法二&lt;br /&gt;裝 freebsd live CD 光碟 登入去修改&lt;br /&gt;&lt;br /&gt;-------------------------------&lt;br /&gt;當你順利登入freebsd後&lt;br /&gt;修改開機檔&lt;br /&gt;vi /boot/defaults/loader.conf&lt;br /&gt;bootfile=&quot;指定你要的kernel&quot;  #kernel name&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;參考&lt;br /&gt;http://www.lslnet.com/linux/f/docs1/i04/big5126346.htm</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3994398398110947745/posts/default/6086289016221932849'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3994398398110947745/posts/default/6086289016221932849'/><link rel='alternate' type='text/html' href='http://assinthehole.blogspot.com/2009/09/freebsd-bootdefaultsloaderconf-unable.html' title='freebsd   /boot/defaults/loader.conf  unable to load kernel'/><author><name>AssInTheHole</name><uri>http://www.blogger.com/profile/03887091386144740739</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3994398398110947745.post-8352699889225538468</id><published>2009-09-01T16:35:00.021+08:00</published><updated>2009-09-24T10:39:22.200+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="教學"/><title type='text'>FreeBSD 7.0 安裝筆記 之軟體安裝</title><content type='html'>&lt;h3&gt;freeBSD 7.0 (2009/09/01更新)&lt;br /&gt;
&lt;/h3&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;adsl 設定&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
輸入 ifconfig 找網卡代號&lt;br /&gt;
在/etc/ppp/ppp.conf中&lt;br /&gt;
第二個  label 改成 pppoe  (第一個是default)&lt;br /&gt;
加入 set device  XX[代號]&lt;br /&gt;
ppp -ddial pppoe&lt;br /&gt;
&lt;br /&gt;
/*****透過 ip分享器*******/&lt;br /&gt;
&lt;pre class=&quot;screen&quot;&gt;&lt;tt class=&quot;userinput&quot;&gt;ifconfig vr0 down&lt;/tt&gt;
&lt;tt class=&quot;userinput&quot;&gt;ifconfig vr0 192.168.1.2 netmask 255.255.255.0&lt;/tt&gt;
&lt;tt class=&quot;userinput&quot;&gt;ifconfig vr0 up&lt;/tt&gt;&lt;/pre&gt;&lt;pre class=&quot;screen&quot;&gt;&lt;tt&gt;&lt;tt class=&quot;userinput&quot;&gt;route add default 192.168.1.1
&lt;/tt&gt;&lt;/tt&gt;&lt;tt&gt;&lt;tt class=&quot;userinput&quot;&gt;ping 168.95.1.1&lt;/tt&gt;&lt;/tt&gt;
&lt;/pre&gt;&lt;br /&gt;
sysinstall&lt;br /&gt;
選擇 update  ，更新 freebsd&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: 130%;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;ports功能啟用&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
sysinstall&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;進入Configure選項&lt;/li&gt;
&lt;li&gt;進入Distributions選項&lt;/li&gt;
&lt;li&gt;啟用&quot;ports&quot;選項&lt;/li&gt;
&lt;li&gt;選擇網路安裝&lt;/li&gt;
&lt;li&gt;結束&lt;/li&gt;
&lt;/ol&gt;&lt;br /&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;ports更新&lt;/span&gt;&lt;br /&gt;
portsnap fetch extract&lt;br /&gt;
portsnap update&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;更新libtool&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;cd /usr/ports/devel/libtool22&lt;/li&gt;
&lt;li&gt;make install clean&lt;/li&gt;
&lt;/ul&gt;&lt;h3&gt;檔案分享 samba&lt;/h3&gt;&lt;div style=&quot;text-align: left;&quot;&gt;cd /user/ports/net/samba3&lt;br /&gt;
make install clean&lt;br /&gt;
可安裝選項&lt;br /&gt;
&lt;a href=&quot;http://www.l-penguin.idv.tw/article/ldap-1.htm&quot;&gt;LDAP: Lightweight Directory Access Protocol.&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://zh.wikipedia.org/wiki/Active_Directory&quot;&gt;Active Directory :活動目錄&lt;/a&gt;&lt;br /&gt;
CUPS  printing:支持印表機分享&lt;br /&gt;
winBIND:  linux windows 登入整合&lt;br /&gt;
&lt;a href=&quot;http://en.wikipedia.org/wiki/File_alteration_monitor&quot;&gt;File Alteration Monitor: 檔案是否已被修改提示&lt;/a&gt;&lt;br /&gt;
syslog ：記錄&lt;br /&gt;
quotas&lt;br /&gt;
UTMP:登 錄 記 錄&lt;br /&gt;
MSDFS&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
啟動&lt;br /&gt;
在/etc/rc.conf 中加入&lt;br /&gt;
samba_enable=&quot;YES&lt;br /&gt;
&lt;code&gt;nmbd_enable=&quot;YES&quot;&lt;br /&gt;
&lt;/code&gt;&lt;code&gt;smbd_enable=&quot;YES&quot;&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;----&lt;br /&gt;
&lt;/code&gt;/usr/local/etc/rc.d/samba restart&lt;br /&gt;
nano  /usr/local/etc/smb.conf&lt;br /&gt;
記錄檔 /var/log/samba/&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;資料庫 mysql&lt;/h3&gt;ports 安裝法&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;cd /usr/ports/databases/mysql50-server&lt;/li&gt;
&lt;li&gt;make install clean&lt;/li&gt;
&lt;/ol&gt;安裝路徑&lt;br /&gt;
/usr/local/share/mysql/&lt;br /&gt;
資料庫儲存路徑&lt;br /&gt;
/var/db/mysql&lt;br /&gt;
增加mysql 管理員&lt;br /&gt;
mysqladmin -u root password &lt;b&gt;&#39;&lt;/b&gt;your-password&lt;b&gt;&#39;&lt;/b&gt;&lt;br /&gt;
&lt;a href=&quot;http://www.phpv.net/html/my.cnf_configure.html&quot;&gt;my.cnf設定&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
****舊的安裝****&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;pkg_add -r mysql50-server.tbz&lt;/li&gt;
&lt;li&gt;php-mysql&lt;/li&gt;
&lt;li&gt;pkg_add -r php5.tbz&lt;/li&gt;
&lt;/ol&gt;****************&lt;br /&gt;
&lt;h3&gt;網站伺服器apache&lt;/h3&gt;&lt;br /&gt;
cd /usr/ports/www/apache22&lt;br /&gt;
make install clean&lt;br /&gt;
啟動&lt;br /&gt;
/usr/local/etc/rc.d/apache22 restart&lt;br /&gt;
&lt;br /&gt;
無法啟動時去這看錯誤訊息/var/log/httpd_error&lt;br /&gt;
/etc/hosts  加上 127.0.0.1 localhost  &amp;lt;-- server名稱 在/etc/rc.conf加上  apache22_enable = &quot;YES&quot; 修改設定 /usr/local/etc/apache22/httpd.conf  問題 &lt;br /&gt;
&lt;ol&gt;&lt;li&gt;unable to find IPv4 address of &quot;XXXXXX&quot; ，注解掉LoadModule unique_id_module libexec/apache22/mod_unique_id.so&lt;br /&gt;
&lt;/li&gt;

&lt;/ol&gt;&lt;br /&gt;
&lt;h3&gt;php5&lt;/h3&gt;/usr/ports/lang/php5&lt;br /&gt;
make install clean&lt;br /&gt;
/usr/ports/lang/php5-extension&lt;br /&gt;
make install clean&lt;br /&gt;
實用 extension&lt;br /&gt;
(php-xml  DOM  mcrypt  GD)&lt;br /&gt;
&lt;br /&gt;
設定檔&lt;br /&gt;
/usr/local/etc/php.ini&lt;br /&gt;
extension檔&lt;br /&gt;
/usr/local/etc/php/extensions.ini&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;phpmyadmin&lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;/usr/ports/databases/phpmyadmin
make install clean

&lt;/pre&gt;安裝路徑/usr/local/www/phpMyAdmin/&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;其他軟體&lt;/span&gt;&lt;br /&gt;
編輯器nano&lt;br /&gt;
/usr/ports/editors/nano  make install clean&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
刪除資料夾全部&lt;br /&gt;
rm -r /xxx&lt;br /&gt;
&lt;br /&gt;
參考資料&lt;br /&gt;
adsl &lt;a href=&quot;http://blog.havenlin.org/archives/598&quot;&gt;設定&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://blog.weithenn.org/2009/06/freebsdopenldap-samba-auth-with-ldap.html&quot;&gt;samba &lt;/a&gt;&lt;br /&gt;
http://twntwn.info/blog/ajer001/archives/1596</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3994398398110947745/posts/default/8352699889225538468'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3994398398110947745/posts/default/8352699889225538468'/><link rel='alternate' type='text/html' href='http://assinthehole.blogspot.com/2008/11/freebsd.html' title='FreeBSD 7.0 安裝筆記 之軟體安裝'/><author><name>AssInTheHole</name><uri>http://www.blogger.com/profile/03887091386144740739</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3994398398110947745.post-5013980771944470228</id><published>2009-06-30T06:47:00.004+08:00</published><updated>2009-06-30T06:50:40.210+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CSS"/><title type='text'>CSS Hack   IE6 IE7 IE8 Firefox FF</title><content type='html'>&lt;code class=&quot;code_bg&quot;&gt;區分不同瀏覽器的css屬性&lt;br /&gt;selector{  &lt;br /&gt;color:red; /* 所有&lt;/code&gt;&lt;code class=&quot;code_bg&quot;&gt;瀏覽器&lt;/code&gt;&lt;code class=&quot;code_bg&quot;&gt; */  &lt;br /&gt;&lt;/code&gt;&lt;code class=&quot;code_bg&quot;&gt;color:blue&lt;/code&gt;&lt;code class=&quot;code_bg&quot;&gt;\9; &lt;/code&gt;&lt;code class=&quot;code_bg&quot;&gt;/* 所有IE&lt;/code&gt;&lt;code class=&quot;code_bg&quot;&gt;瀏覽器&lt;/code&gt;&lt;code class=&quot;code_bg&quot;&gt; */  &lt;br /&gt;+&lt;/code&gt;&lt;code class=&quot;code_bg&quot;&gt;color:green&lt;/code&gt;&lt;code class=&quot;code_bg&quot;&gt;; /* IE7 */  &lt;br /&gt;_&lt;/code&gt;&lt;code class=&quot;code_bg&quot;&gt;color:black&lt;/code&gt;&lt;code class=&quot;code_bg&quot;&gt;; /* IE6 */  &lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;code class=&quot;code_bg&quot;&gt;color:&lt;/code&gt;&lt;code class=&quot;code_bg&quot;&gt;blue&lt;/code&gt;&lt;code class=&quot;code_bg&quot;&gt;\9; &lt;/code&gt;IE6 IE7  IE8 懂&lt;br /&gt;&lt;code class=&quot;code_bg&quot;&gt;*&lt;/code&gt;&lt;code class=&quot;code_bg&quot;&gt;color:&lt;/code&gt;&lt;code class=&quot;code_bg&quot;&gt;green&lt;/code&gt;&lt;code class=&quot;code_bg&quot;&gt;;&lt;/code&gt; 只有IE7  IE6懂&lt;code class=&quot;code_bg&quot;&gt;&lt;br /&gt;_&lt;/code&gt;&lt;code class=&quot;code_bg&quot;&gt;color:&lt;/code&gt;&lt;code class=&quot;code_bg&quot;&gt;black&lt;/code&gt;&lt;code class=&quot;code_bg&quot;&gt;; 只有IE6 &lt;/code&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3994398398110947745/posts/default/5013980771944470228'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3994398398110947745/posts/default/5013980771944470228'/><link rel='alternate' type='text/html' href='http://assinthehole.blogspot.com/2009/06/css-hack-ie6-ie7-ie8-firefox-ff.html' title='CSS Hack   IE6 IE7 IE8 Firefox FF'/><author><name>AssInTheHole</name><uri>http://www.blogger.com/profile/03887091386144740739</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3994398398110947745.post-3899231763974417846</id><published>2009-05-20T10:30:00.000+08:00</published><updated>2009-05-20T10:31:19.326+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="教學"/><title type='text'>vista 重灌 xp   可怕的藍畫面</title><content type='html'>進BIOS 將sata 硬碟改成 IDE模式&lt;br /&gt;就可以重灌了</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3994398398110947745/posts/default/3899231763974417846'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3994398398110947745/posts/default/3899231763974417846'/><link rel='alternate' type='text/html' href='http://assinthehole.blogspot.com/2009/05/vista-xp.html' title='vista 重灌 xp   可怕的藍畫面'/><author><name>AssInTheHole</name><uri>http://www.blogger.com/profile/03887091386144740739</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3994398398110947745.post-2362513228868818944</id><published>2009-05-05T00:05:00.002+08:00</published><updated>2009-05-05T00:15:14.485+08:00</updated><title type='text'>windows XP 工作管理員的程式解說</title><content type='html'>1.alg.exe&lt;br /&gt;&lt;span style=&quot;color:black;&quot;&gt;用來處理Windows網路連接共用和網路連接防火牆。&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color:black;&quot;&gt;C:\Windows\system32\&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;2.wlcomm.exe   msnmsgr.exe&lt;br /&gt;安裝windows live 也就是msn後，必跑程式&lt;br /&gt;wlcomm是 2009版的msn才會有的&lt;br /&gt;&lt;br /&gt;3.svchost.exe&lt;br /&gt;網路通訊必備，一次有很多個，不過也有可能受病毒感染&lt;br /&gt;&lt;br /&gt;4.explorer.exe&lt;br /&gt;桌面程式，當你的資料夾或桌面有問題時，可以試著關掉，並可在工作管理員 -&gt;檔案-&gt;新工作打入 exploere 重啟&lt;br /&gt;&lt;br /&gt;5.conime.exe&lt;br /&gt;輸入法編輯器，有可能感染病毒&lt;br /&gt;&lt;br /&gt;6.ctfmon.exe&lt;br /&gt;文字輸入處理器，語音辨識、手寫辨識、鍵盤、翻譯</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3994398398110947745/posts/default/2362513228868818944'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3994398398110947745/posts/default/2362513228868818944'/><link rel='alternate' type='text/html' href='http://assinthehole.blogspot.com/2009/05/windows-xp.html' title='windows XP 工作管理員的程式解說'/><author><name>AssInTheHole</name><uri>http://www.blogger.com/profile/03887091386144740739</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3994398398110947745.post-5253024637710307949</id><published>2009-05-03T05:45:00.002+08:00</published><updated>2009-05-03T07:34:35.586+08:00</updated><title type='text'>電腦中毒基本檢查法</title><content type='html'>1.一般來說，病毒檔會已隱藏檔的方式存在，並且常在 windows/system32，一旦發現這個資料夾有隱藏檔，不要懷疑，直接刪除，如果無法刪除，請先中斷程式，可以用超級兔子來中斷，或是進入安全模式操作。&lt;br /&gt;&lt;br /&gt;2.開始-&gt;執行-&gt;regedit  &lt;br /&gt;  HKEY_CURRENT_USER-&gt; Software-&gt;Microsoft-&gt;windows-&gt;CurrentVersion-&gt;run&lt;br /&gt;&lt;br /&gt;  HKEY_LOCAL_MACHINE-&gt; Software-&gt;Microsoft-&gt;windows-&gt;CurrentVersion-&gt;run&lt;br /&gt;這兩個資料夾都是開機啟動程式，有懷疑病毒的，一樣刪除之</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3994398398110947745/posts/default/5253024637710307949'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3994398398110947745/posts/default/5253024637710307949'/><link rel='alternate' type='text/html' href='http://assinthehole.blogspot.com/2009/05/blog-post.html' title='電腦中毒基本檢查法'/><author><name>AssInTheHole</name><uri>http://www.blogger.com/profile/03887091386144740739</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3994398398110947745.post-143675172514218533</id><published>2009-04-09T11:44:00.005+08:00</published><updated>2009-09-01T20:09:39.732+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="php"/><category scheme="http://www.blogger.com/atom/ns#" term="web server"/><category scheme="http://www.blogger.com/atom/ns#" term="網站"/><title type='text'>firefox 亂碼 編碼錯誤  語系無法指定 utf-8</title><content type='html'>今天發生了奇怪的事情，原來客戶的資料好好的。&lt;br /&gt;結果客戶突然說出現亂碼，我用firefox測試後，果然出發亂碼，語系指定big5繁體中文，很明顯的不對，我明明是指定utf-8，改編碼，重整，又是big5，真奇怪，本來都抓得到呀，改用IE 後，一初正常，後來才發現，原來是伺服器有默認編碼，而firefox 會以伺服器默認編碼為優先。&lt;br /&gt;&lt;br /&gt;處理方式：&lt;br /&gt;1.改apache的http.conf&lt;br /&gt;AddDefaultCharset off  #關閉默認編碼&lt;br /&gt;或 &lt;strong&gt;&lt;span style=&quot;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;font-family:Calibri;&quot;&gt;AddDefaultCharset  &lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;UTF-8 #指定編碼&lt;br /&gt;&lt;br /&gt;2.新增 .htaccess檔，&lt;br /&gt;填入AddCharset UTF-8 .html .htm .php&lt;br /&gt;&lt;br /&gt;3.在php檔案加上&lt;br /&gt;ini_set(&#39;default_charset&#39;, &#39;utf-8&#39;);  //指定編碼為 utf-8&lt;br /&gt;&lt;br /&gt;以上擇一使用即可</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3994398398110947745/posts/default/143675172514218533'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3994398398110947745/posts/default/143675172514218533'/><link rel='alternate' type='text/html' href='http://assinthehole.blogspot.com/2009/04/firefox-utf-8.html' title='firefox 亂碼 編碼錯誤  語系無法指定 utf-8'/><author><name>AssInTheHole</name><uri>http://www.blogger.com/profile/03887091386144740739</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3994398398110947745.post-879861386116650857</id><published>2009-03-26T21:36:00.003+08:00</published><updated>2009-03-26T21:47:22.913+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="教學"/><category scheme="http://www.blogger.com/atom/ns#" term="網站"/><title type='text'>FTTP 光纖上網  架站</title><content type='html'>昨天就裝好了光纖，早在申請裝光纖之前，我就上網查詢了一些資訊，因為我會用來架站，必竟上傳有2M頻寬 ，平均上傳速度也有2xx k/s，而且價格又不是特別貴，感覺除了專線以外，就沒有比這個更好了。&lt;br /&gt;&lt;br /&gt;       裝好光纖後，等三小時，就能上網去申請固定IP，然後裝 a電腦的連線帳號改成 XXX@ip.hinet.net，密碼不變，這樣就有固定ip可以用囉，不過當你在區網用b電腦卻會連不到a電腦，神奇的是 b ping得到 a  ，用tracert 兩步就跑完了，但是就無法抓到a電腦的網站資料，今天我先用 online port scan ，去檢查a電腦的80 port是否打開，測試完的結果是 a電腦有開80 por，什麼那個網站不但能連線到a電腦，還能查port， @@好無言，接著我用遠端桌面，操控公司的電腦，一樣成功的連線到a電腦的網站，這實在是讓我感到意外，難不成真是是 專員小姐 講的 申請的固定 ip 不適合用來架站，可以外部網路的確是可以連到我的電腦，而我的區網，明明這麼近，確怎麼也連不到，後來我想到了 設proxy，  YA 我設定完Hinet的 proxy 後，IE Firefox 都成功的連線到我的網站囉，速度蠻快的。&lt;br /&gt;&lt;br /&gt; 不多說  上網上</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3994398398110947745/posts/default/879861386116650857'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3994398398110947745/posts/default/879861386116650857'/><link rel='alternate' type='text/html' href='http://assinthehole.blogspot.com/2009/03/fttp.html' title='FTTP 光纖上網  架站'/><author><name>AssInTheHole</name><uri>http://www.blogger.com/profile/03887091386144740739</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3994398398110947745.post-1786770257378865526</id><published>2009-03-24T00:12:00.008+08:00</published><updated>2009-03-24T00:36:58.238+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="web server"/><title type='text'>apache conf 設定教學</title><content type='html'>&lt;dl&gt;&lt;dt&gt;&lt;b&gt;&lt;tt class=&quot;envar&quot;&gt;Timeout 300&lt;/tt&gt;&lt;/b&gt; &lt;/dt&gt;&lt;dd&gt; &lt;p&gt;Apache等待網頁要求的時間上限。(300秒)&lt;/p&gt;&lt;/dd&gt;&lt;dt&gt;&lt;b&gt;&lt;tt class=&quot;envar&quot;&gt;KeepAlive On&lt;/tt&gt;&lt;/b&gt; &lt;/dt&gt;&lt;dd&gt; &lt;p&gt;是否充許永久連線：一般網頁的要求，一旦資料傳輸完畢後就會關閉連結，但是有些網頁必需要待續斷線，例如通訊系統。&lt;/p&gt;&lt;/dd&gt;&lt;dt&gt;&lt;b&gt;&lt;tt class=&quot;envar&quot;&gt;MaxKeepAliveRequests 0&lt;/tt&gt;&lt;/b&gt; &lt;/dt&gt;&lt;dd&gt; &lt;p&gt;每一個網址連結的最多 Request上限。( 0是無上限) &lt;/p&gt;&lt;/dd&gt;&lt;dt&gt;&lt;b&gt;&lt;tt class=&quot;envar&quot;&gt;KeepAliveTimeout 15&lt;/tt&gt;&lt;/b&gt; &lt;/dt&gt;&lt;dd&gt; &lt;p&gt;等待Request 的時間上限。&lt;/p&gt;&lt;/dd&gt;&lt;dt&gt;&lt;b&gt;&lt;tt class=&quot;envar&quot;&gt;MinSpareServers 16&lt;/tt&gt;&lt;/b&gt; &lt;/dt&gt;&lt;dd&gt; &lt;p&gt;Apache 最少的執行序&lt;/p&gt;&lt;/dd&gt;&lt;dt&gt;&lt;b&gt;&lt;tt class=&quot;envar&quot;&gt;MaxSpareServers 64&lt;/tt&gt;&lt;/b&gt;&lt;/dt&gt;&lt;dd&gt;Apache 最多的執行序&lt;/dd&gt;&lt;/dl&gt;&lt;br /&gt;&lt;dl&gt;&lt;dt&gt;&lt;b&gt;&lt;tt class=&quot;envar&quot;&gt;StartServers 16&lt;/tt&gt;&lt;/b&gt; &lt;/dt&gt;&lt;dd&gt; &lt;p&gt;Apache 剛啟動時的執行序數量&lt;/p&gt;&lt;/dd&gt;&lt;dt&gt;&lt;b&gt;&lt;tt class=&quot;envar&quot;&gt;MaxClients 512&lt;/tt&gt;&lt;/b&gt; &lt;/dt&gt;&lt;dd&gt; &lt;p&gt;最多能同時接受多少個 Request&lt;/p&gt; &lt;/dd&gt;&lt;dt&gt;&lt;b&gt;&lt;tt class=&quot;envar&quot;&gt;MaxRequestsPerChild 100000&lt;/tt&gt;&lt;/b&gt;&lt;/dt&gt;&lt;dd&gt;每個執行序能處理多少個 Request&lt;/dd&gt;&lt;dd&gt; &lt;br /&gt;&lt;/dd&gt;&lt;/dl&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3994398398110947745/posts/default/1786770257378865526'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3994398398110947745/posts/default/1786770257378865526'/><link rel='alternate' type='text/html' href='http://assinthehole.blogspot.com/2009/03/apache-conf.html' title='apache conf 設定教學'/><author><name>AssInTheHole</name><uri>http://www.blogger.com/profile/03887091386144740739</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author></entry></feed>