<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Web Server linux Centos Games &#187; server</title>
	<atom:link href="http://www.webserverthai.com/tag/server/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webserverthai.com</link>
	<description>Web Server linux Centos blog game</description>
	<lastBuildDate>Sun, 04 Sep 2011 05:27:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>ปรับแต่ง apache ให้รองรับ connection ได้มากขึ้น</title>
		<link>http://www.webserverthai.com/apache/%e0%b8%9b%e0%b8%a3%e0%b8%b1%e0%b8%9a%e0%b9%81%e0%b8%95%e0%b9%88%e0%b8%87-apache-%e0%b9%83%e0%b8%ab%e0%b9%89%e0%b8%a3%e0%b8%ad%e0%b8%87%e0%b8%a3%e0%b8%b1%e0%b8%9a-connection-%e0%b9%84%e0%b8%94%e0%b9%89/</link>
		<comments>http://www.webserverthai.com/apache/%e0%b8%9b%e0%b8%a3%e0%b8%b1%e0%b8%9a%e0%b9%81%e0%b8%95%e0%b9%88%e0%b8%87-apache-%e0%b9%83%e0%b8%ab%e0%b9%89%e0%b8%a3%e0%b8%ad%e0%b8%87%e0%b8%a3%e0%b8%b1%e0%b8%9a-connection-%e0%b9%84%e0%b8%94%e0%b9%89/#comments</comments>
		<pubDate>Sun, 28 Mar 2010 05:49:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.webserverthai.com/?p=51</guid>
		<description><![CDATA[หลายๆคนอ่านจะเคยประสบปัญหาพอมีคนเข้าเว็บเยอะๆแล้วปรากฏว่าเว็บอืด ทั้งๆที่เครื่องก็แรง แถม Ram ก็เยอะ จริงๆแล้วสาเหตุมาจากโดยค่า default ของ apache จะสามารถรองรับ connection ได้ระดับนึง ซึ่งถ้าหากเราต้องการมากขึ้น จำเป็นที่จะต้องทำการปรับปรุงค่า configuration บางตัวเสียก่อน ไฟล์ที่เราต้องแก้ไขคือไฟล์ ⁄etc⁄httpd⁄conf⁄httpd·conf สามารถใช้ vi editor แก้ไขได้เลย แก้ตามนี้ &#60;IfModule prefork.c&#62; StartServers 8 MinSpareServers 15 MaxSpareServers 40 ServerLimit 1024 MaxClients 1024 MaxRequestsPerChild 4000 &#60;⁄IfModule&#62; &#60;IfModule worker.c&#62; StartServers 2 MaxClients 1024 MinSpareThreads 25 MaxSpareThreads 75 ThreadsPerChild 25 MaxRequestsPerChild 0 &#60;⁄IfModule&#62; ค่าที่ตั้งก็ขึ้นอยู่กับจำนวน Ram ที่เรามี [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.webserverthai.com/wp-content/uploads/2010/03/apache-logo.jpg"><img class="alignleft size-full wp-image-63" title="apache-logo" src="http://www.webserverthai.com/wp-content/uploads/2010/03/apache-logo.jpg" alt="apache" width="200" height="96" /></a>หลายๆคนอ่านจะเคยประสบปัญหาพอมีคนเข้าเว็บเยอะๆแล้วปรากฏว่าเว็บอืด ทั้งๆที่เครื่องก็แรง แถม Ram ก็เยอะ</p>
<p>จริงๆแล้วสาเหตุมาจากโดยค่า default ของ apache จะสามารถรองรับ connection ได้ระดับนึง ซึ่งถ้าหากเราต้องการมากขึ้น จำเป็นที่จะต้องทำการปรับปรุงค่า configuration บางตัวเสียก่อน</p>
<p>ไฟล์ที่เราต้องแก้ไขคือไฟล์ ⁄etc⁄httpd⁄conf⁄httpd·conf สามารถใช้ vi editor แก้ไขได้เลย</p>
<p>แก้ตามนี้</p>
<p>&lt;IfModule prefork.c&gt;</p>
<p>StartServers 8</p>
<p>MinSpareServers 15</p>
<p>MaxSpareServers 40</p>
<p><span style="color: #ff0000;">ServerLimit 1024</span></p>
<p><span style="color: #ff0000;">MaxClients 1024</span></p>
<p>MaxRequestsPerChild 4000</p>
<p>&lt;⁄IfModule&gt;</p>
<p>&lt;IfModule worker.c&gt;</p>
<p>StartServers 2</p>
<p><span style="color: #ff0000;">MaxClients 1024</span></p>
<p>MinSpareThreads 25</p>
<p>MaxSpareThreads 75</p>
<p>ThreadsPerChild 25</p>
<p>MaxRequestsPerChild 0</p>
<p>&lt;⁄IfModule&gt;</p>
<p>ค่าที่ตั้งก็ขึ้นอยู่กับจำนวน Ram ที่เรามี จากนั้น restart apache ด้วยคำสั่ง service httpd restart ก็เป็นอันจบ</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webserverthai.com/apache/%e0%b8%9b%e0%b8%a3%e0%b8%b1%e0%b8%9a%e0%b9%81%e0%b8%95%e0%b9%88%e0%b8%87-apache-%e0%b9%83%e0%b8%ab%e0%b9%89%e0%b8%a3%e0%b8%ad%e0%b8%87%e0%b8%a3%e0%b8%b1%e0%b8%9a-connection-%e0%b9%84%e0%b8%94%e0%b9%89/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ปรับ Mysql ให้ใช้ cache เพื่อเพิ่มความเร็ว</title>
		<link>http://www.webserverthai.com/mysql/%e0%b8%9b%e0%b8%a3%e0%b8%b1%e0%b8%9a-mysql-%e0%b9%83%e0%b8%ab%e0%b9%89%e0%b9%83%e0%b8%8a%e0%b9%89-cache-%e0%b9%80%e0%b8%9e%e0%b8%b7%e0%b9%88%e0%b8%ad%e0%b9%80%e0%b8%9e%e0%b8%b4%e0%b9%88%e0%b8%a1/</link>
		<comments>http://www.webserverthai.com/mysql/%e0%b8%9b%e0%b8%a3%e0%b8%b1%e0%b8%9a-mysql-%e0%b9%83%e0%b8%ab%e0%b9%89%e0%b9%83%e0%b8%8a%e0%b9%89-cache-%e0%b9%80%e0%b8%9e%e0%b8%b7%e0%b9%88%e0%b8%ad%e0%b9%80%e0%b8%9e%e0%b8%b4%e0%b9%88%e0%b8%a1/#comments</comments>
		<pubDate>Sun, 28 Mar 2010 02:19:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://www.webserverthai.com/?p=44</guid>
		<description><![CDATA[โดยปกติแล้วโดย default ของ mysql จะไม่มีการเปิดใช้ cache ทำให้ต้องทำการ query ใหม่ทุกครั้ง เราสามารถทำการเปิดการใช้ cache ได้โดยการแก้ไขค่าในไฟล์ ⁄etc⁄my.cnf แต่ก่อนอื่นต้องเช็คดูก่อนว่า server ของเรามีไฟล์ ⁄etc⁄my.cnf อยู่หรือยัง ถ้ายังให้ช้คำสั่งนี้เพื่อหาตัวอย่างไฟล์ my.cnf ในเครื่องของเรา #find ⁄ -name *.cnf จะใช้ไฟล์ไหนขึ้นอยู่กับ Ram ของเรา รายละเอียดดูในแต่ละไฟล์ได้เลย จากนั้น copy file นั้นไปเป็น my.cnf โดยคำสั่ง #cp (file) ⁄etc⁄my.cnf จากนั้นทำการแก้ไข ⁄etc⁄my.cnf โดยเพิ่มบรรทัดนี้เข้าไป query_cache_type= 1 แล้วอาจจะทำการ เพิ่มขนาดของ cache โดยแก้ query_cache_size= 64M ในตัวอย่างเพิ่ม cache เป็น 64M จากนั้น restart [...]]]></description>
			<content:encoded><![CDATA[<p>โดยปกติแล้วโดย default ของ mysql จะไม่มีการเปิดใช้ cache ทำให้ต้องทำการ query ใหม่ทุกครั้ง</p>
<p>เราสามารถทำการเปิดการใช้ cache ได้โดยการแก้ไขค่าในไฟล์ ⁄etc⁄my.cnf</p>
<p>แต่ก่อนอื่นต้องเช็คดูก่อนว่า server ของเรามีไฟล์ ⁄etc⁄my.cnf อยู่หรือยัง ถ้ายังให้ช้คำสั่งนี้เพื่อหาตัวอย่างไฟล์ my.cnf ในเครื่องของเรา</p>
<p>#find ⁄ -name *.cnf</p>
<p>จะใช้ไฟล์ไหนขึ้นอยู่กับ Ram ของเรา รายละเอียดดูในแต่ละไฟล์ได้เลย</p>
<p>จากนั้น copy file นั้นไปเป็น my.cnf โดยคำสั่ง</p>
<p>#cp (file) ⁄etc⁄my.cnf</p>
<p>จากนั้นทำการแก้ไข ⁄etc⁄my.cnf โดยเพิ่มบรรทัดนี้เข้าไป</p>
<p>query_cache_type= 1</p>
<p>แล้วอาจจะทำการ เพิ่มขนาดของ cache โดยแก้</p>
<p>query_cache_size= 64M</p>
<p>ในตัวอย่างเพิ่ม cache เป็น 64M</p>
<p>จากนั้น restart mysql ด้วยคำสั่ง</p>
<p>service mysqld restart</p>
<p>เป็นอันเสร็จ</p>
<p><a href="http://www.webserverthai.com/wp-content/uploads/2010/03/logoMysql.gif"><img class="size-full wp-image-46 alignleft" title="ปรับแต่ง Mysql" src="http://www.webserverthai.com/wp-content/uploads/2010/03/logoMysql.gif" alt="" width="425" height="283" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webserverthai.com/mysql/%e0%b8%9b%e0%b8%a3%e0%b8%b1%e0%b8%9a-mysql-%e0%b9%83%e0%b8%ab%e0%b9%89%e0%b9%83%e0%b8%8a%e0%b9%89-cache-%e0%b9%80%e0%b8%9e%e0%b8%b7%e0%b9%88%e0%b8%ad%e0%b9%80%e0%b8%9e%e0%b8%b4%e0%b9%88%e0%b8%a1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

