<?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>گنجه &#187; خدمت</title>
	<atom:link href="http://blog.ebrahim.ir/tag/service/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.ebrahim.ir</link>
	<description># tail -f /var/log/experience</description>
	<lastBuildDate>Wed, 25 Aug 2010 22:16:39 +0000</lastBuildDate>
	<language>fa</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>هرزنامه‌نگار نبودیم که شدیم [0]</title>
		<link>http://blog.ebrahim.ir/1387/08/we-were-not-spammer-but-got-0/</link>
		<comments>http://blog.ebrahim.ir/1387/08/we-were-not-spammer-but-got-0/#comments</comments>
		<pubDate>Sat, 15 Nov 2008 13:36:32 +0000</pubDate>
		<dc:creator>ابراهیم</dc:creator>
				<category><![CDATA[رایانه]]></category>
		<category><![CDATA[BASH]]></category>
		<category><![CDATA[اینترنت]]></category>
		<category><![CDATA[خادم]]></category>
		<category><![CDATA[خدمت]]></category>
		<category><![CDATA[راه‌بری]]></category>
		<category><![CDATA[رایانامه]]></category>
		<category><![CDATA[شهاب]]></category>
		<category><![CDATA[لینوکس]]></category>
		<category><![CDATA[هرزنامه]]></category>

		<guid isPermaLink="false">http://blog.ebrahim.ir/?p=25</guid>
		<description><![CDATA[مدیر0 یک خادم1 رایانامه2 هستم به نام «شهاب». بعد از مدت‌ها که داشت به خوبی و خوشی کارش رو می‌کرد، یک روز دیدم حدود بیست هزار تا رایانامه توی صفش گیر کرده. معمولاً این عدد برای شهاب حدود یکی دو هزار تاست. از اون طرف یکی‌یکی رایانامه‌ها و پیامک3های دوستان می‌رسید که «شهاب میل نمی‌فرسته» [...]]]></description>
			<content:encoded><![CDATA[<p><!--startnum=0--></p>
<p>مدیر<sup><a href="http://blog.ebrahim.ir/1387/08/we-were-not-spammer-but-got-0/#footnote_0_25" id="identifier_0_25" class="footnote-link footnote-identifier-link" title="Administrator">0</a></sup> یک خادم<sup><a href="http://blog.ebrahim.ir/1387/08/we-were-not-spammer-but-got-0/#footnote_1_25" id="identifier_1_25" class="footnote-link footnote-identifier-link" title="Server">1</a></sup> رایانامه<sup><a href="http://blog.ebrahim.ir/1387/08/we-were-not-spammer-but-got-0/#footnote_2_25" id="identifier_2_25" class="footnote-link footnote-identifier-link" title="E-mail">2</a></sup> هستم به نام «شهاب». بعد از مدت‌ها که داشت به خوبی و خوشی کارش رو می‌کرد، یک روز دیدم حدود بیست هزار تا رایانامه توی صفش گیر کرده. معمولاً این عدد برای شهاب حدود یکی دو هزار تاست. از اون طرف یکی‌یکی رایانامه‌ها و پیامک<sup><a href="http://blog.ebrahim.ir/1387/08/we-were-not-spammer-but-got-0/#footnote_3_25" id="identifier_3_25" class="footnote-link footnote-identifier-link" title="SMS">3</a></sup>های دوستان می‌رسید که «شهاب میل نمی‌فرسته» و «دوباره دانلود گذاشتی رو شهاب؟! کار نمی‌کنه!». همون طور که حتماً فهمیده‌اید وضعیت شهاب وخیم بود.</p>
<p>چون علائم شهاب شبیه تجربه‌ای نه‌چندان‌قدیمی بود، قبل از هر چیز، فضای خالی بخش<sup><a href="http://blog.ebrahim.ir/1387/08/we-were-not-spammer-but-got-0/#footnote_4_25" id="identifier_4_25" class="footnote-link footnote-identifier-link" title="Partition">4</a></sup>های لوح<sup><a href="http://blog.ebrahim.ir/1387/08/we-were-not-spammer-but-got-0/#footnote_5_25" id="identifier_5_25" class="footnote-link footnote-identifier-link" title="Disk">5</a></sup> رو بررسی کردم. دیدم که بعله، بخش <code>/var</code> پر شده. با استفاده از</p>

<div class="wp_syntax" dir="ltr"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">du</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sort</span> <span style="color: #660033;">-nr</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">less</span></pre></div></div>

<p>دیدم که کار، کار نگاره<sup><a href="http://blog.ebrahim.ir/1387/08/we-were-not-spammer-but-got-0/#footnote_6_25" id="identifier_6_25" class="footnote-link footnote-identifier-link" title="Log">6</a></sup>هاست<sup><a href="http://blog.ebrahim.ir/1387/08/we-were-not-spammer-but-got-0/#footnote_7_25" id="identifier_7_25" class="footnote-link footnote-identifier-link" title="این دستورهایی که نقل می&zwnj;کنم، نقل به مضمون هستند! ">7</a></sup>. از اون‌جا که بخش <code>/var</code> دیگه جا نداشت، باید شاخهٔ<sup><a href="http://blog.ebrahim.ir/1387/08/we-were-not-spammer-but-got-0/#footnote_8_25" id="identifier_8_25" class="footnote-link footnote-identifier-link" title="Directory">8</a></sup> <code>/var/log</code> رو به بخش دیگری منتقل می‌کردم. پس بعد از متوقف کردن [تقریباً] همهٔ خدمت<sup><a href="http://blog.ebrahim.ir/1387/08/we-were-not-spammer-but-got-0/#footnote_9_25" id="identifier_9_25" class="footnote-link footnote-identifier-link" title="Service">9</a></sup>ها، از جمله apache2 و postfix و klogd و غیره، زدم:</p>

<div class="wp_syntax" dir="ltr"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mv</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>log <span style="color: #000000; font-weight: bold;">/</span>home
<span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>log <span style="color: #000000; font-weight: bold;">/</span>var</pre></div></div>

<p>خدمت‌ها رو آغاز<sup><a href="http://blog.ebrahim.ir/1387/08/we-were-not-spammer-but-got-0/#footnote_10_25" id="identifier_10_25" class="footnote-link footnote-identifier-link" title="Start">10</a></sup> کردم و همه چیز خوب به نظر می‌رسید.</p>
<p>خارج شدم، اما ته دلم هنوز نگران بودم. چون نمی‌دونستم چرا این همه نگاره تولید شده. با این حال راه راحت‌تر رو انتخاب کردم(!): به خودم گفتم «حالا بذار تا فردا کار کنه ببینیم چی می‌شه». <img src='http://blog.ebrahim.ir/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>&#8230; ادامه دارد &#8230;</p>
<ol start="0" class="footnotes"><li id="footnote_0_25" class="footnote">Administrator</li><li id="footnote_1_25" class="footnote">Server</li><li id="footnote_2_25" class="footnote">E-mail</li><li id="footnote_3_25" class="footnote">SMS</li><li id="footnote_4_25" class="footnote">Partition</li><li id="footnote_5_25" class="footnote">Disk</li><li id="footnote_6_25" class="footnote">Log</li><li id="footnote_7_25" class="footnote"><span style="direction: rtl; unicode-bidi: bidi-override;">این دستورهایی که نقل می‌کنم، نقل به مضمون هستند! </span></li><li id="footnote_8_25" class="footnote">Directory</li><li id="footnote_9_25" class="footnote">Service</li><li id="footnote_10_25" class="footnote">Start</li></ol>]]></content:encoded>
			<wfw:commentRss>http://blog.ebrahim.ir/1387/08/we-were-not-spammer-but-got-0/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (user agent is rejected)

Served from: blog.ebrahim.ir @ 2012-02-07 00:18:20 -->
