<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title>웹마짱구&#039;s 블로그</title>
		<link>http://jjangu.pe.kr/blog/</link>
		<description>비오면 달린다.</description>
		<language>ko</language>
		<pubDate>Fri, 07 May 2010 00:49:59 +0900</pubDate>
		<generator>Tattertools 1.1.3 : Transition</generator>
		<image>
		<title>웹마짱구&#039;s 블로그</title>
		<url>http://jjangu.pe.kr/blog/attach/1/1033912445.jpg</url>
		<link>http://jjangu.pe.kr/blog/</link>
		<width>150</width>
		<height>150</height>
		<description>비오면 달린다.</description>
		</image>
		<item>
			<title>MySql 로그 기록</title>
			<link>http://jjangu.pe.kr/blog/591</link>
			<description>my.cnf 에서 [mysqld] 아래에 다음을 추가 한다&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# MyISAM 로그&lt;br /&gt;#log-isam=/usr/local/mysql/data/log/myisamlog.log&lt;br /&gt;# 쿼리 로그&lt;br /&gt;#log=/usr/local/mysql/data/log/mysql.log&lt;br /&gt;# 수정 로그&lt;br /&gt;#log-update=/usr/local/mysql/data/log/mysql-update.log</description>
			<category>MySql</category>
			<category>로그</category>
			<author> (웹마짱구)</author>
			<guid>http://jjangu.pe.kr/blog/591</guid>
			<comments>http://jjangu.pe.kr/blog/591#entry591comment</comments>
			<pubDate>Fri, 02 Apr 2010 11:45:20 +0900</pubDate>
		</item>
		<item>
			<title>Seconds_Behind_Master</title>
			<link>http://jjangu.pe.kr/blog/590</link>
			<description>&lt;P&gt;&lt;FONT style=&quot;BACKGROUND-COLOR: #ffffff&quot;&gt;Replication의 환경에서&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT style=&quot;BACKGROUND-COLOR: #ffffff&quot;&gt;master에서 어떤 SQL문이 실행되고 있을때, kill 을 시키면&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT style=&quot;BACKGROUND-COLOR: #ffffff&quot;&gt;slave에서 에러가 발생하는 현상이 있었다.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT style=&quot;BACKGROUND-COLOR: #ffffff&quot;&gt;이럴때는 slave에서 &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT style=&quot;BACKGROUND-COLOR: #ffffff&quot;&gt;mysql&amp;gt;show slave status\G&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT style=&quot;BACKGROUND-COLOR: #ffffff&quot;&gt;의 내용중 &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT style=&quot;BACKGROUND-COLOR: #ffffff&quot;&gt;last_error &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT style=&quot;BACKGROUND-COLOR: #ffffff&quot;&gt;항목을 보고 처리하면 된다.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT style=&quot;BACKGROUND-COLOR: #292929&quot;&gt;&lt;FONT style=&quot;BACKGROUND-COLOR: #ffffff&quot;&gt;-- error&lt;/FONT&gt; &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Last_Error: Query partially completed on the master (error on master: 1053) and was aborted. &lt;br /&gt;&amp;nbsp;There is a chance that your master is inconsistent at this point. &lt;br /&gt;&amp;nbsp;If you are sure that your master is ok, run this query manually on the slave and then restart the slave with &lt;br /&gt;&lt;/P&gt;
&lt;br /&gt;
&lt;P&gt;-- solution&lt;/P&gt;
&lt;P&gt;mysql&amp;gt;SET GLOBAL SQL_SLAVE_SKIP_COUNTER=1;&lt;/P&gt;
&lt;P&gt;mysql&amp;gt;START SLAVE;&lt;/P&gt;
&lt;br /&gt;
&lt;P&gt;이렇게 하면 현재 에러의 내용을 SKIP 하고 다음 내용을 처리한다.&lt;/P&gt;</description>
			<category>MySql</category>
			<category>MySql</category>
			<author> (웹마짱구)</author>
			<guid>http://jjangu.pe.kr/blog/590</guid>
			<comments>http://jjangu.pe.kr/blog/590#entry590comment</comments>
			<pubDate>Wed, 17 Feb 2010 16:06:46 +0900</pubDate>
		</item>
		<item>
			<title>존파일에서 아이피 일괄변경</title>
			<link>http://jjangu.pe.kr/blog/589</link>
			<description>find . -type f -name &quot;*.zone&quot; -exec perl -pi -e &quot;s/구IP/신IP/g&quot; {} \;</description>
			<category>Linux</category>
			<author> (웹마짱구)</author>
			<guid>http://jjangu.pe.kr/blog/589</guid>
			<comments>http://jjangu.pe.kr/blog/589#entry589comment</comments>
			<pubDate>Wed, 27 Jan 2010 17:01:51 +0900</pubDate>
		</item>
		<item>
			<title>mysql  서버상태 점검</title>
			<link>http://jjangu.pe.kr/blog/585</link>
			<description>mysqladmin -u root -p -i1 -r extended-status</description>
			<category>MySql</category>
			<category>MySql</category>
			<author> (웹마짱구)</author>
			<guid>http://jjangu.pe.kr/blog/585</guid>
			<comments>http://jjangu.pe.kr/blog/585#entry585comment</comments>
			<pubDate>Wed, 27 Jan 2010 17:00:02 +0900</pubDate>
		</item>
		<item>
			<title>mod_rewrite 모듈 추가</title>
			<link>http://jjangu.pe.kr/blog/584</link>
			<description>/usr/local/apache/bin/apxs -cai /src_directory/modules/mappers/mod_rewrite.c</description>
			<category>Linux</category>
			<category>mod_rewrite</category>
			<category>rewrite 모듈</category>
			<author> (웹마짱구)</author>
			<guid>http://jjangu.pe.kr/blog/584</guid>
			<comments>http://jjangu.pe.kr/blog/584#entry584comment</comments>
			<pubDate>Wed, 27 Jan 2010 16:59:20 +0900</pubDate>
		</item>
		<item>
			<title>DB 백업 쉘스크립트</title>
			<link>http://jjangu.pe.kr/blog/582</link>
			<description>&lt;P&gt;#!/bin/bash&lt;/P&gt;
&lt;P&gt;dump_date=$(date +%Y%m%d-%H);&lt;/P&gt;
&lt;P&gt;dump_dir=&quot;/backup/DB_BACKUP&quot;;&lt;br /&gt;DB_user=&quot;userid&quot;;&lt;br /&gt;DB_pass=&quot;userpwd&quot;;&lt;/P&gt;
&lt;P&gt;DB_optimize_switch=0;&lt;/P&gt;
&lt;P&gt;for database in `/usr/local/mysql/bin/mysqlshow -u ${DB_user} -p${DB_pass} | awk -F&quot; &quot; &#039;{ print $2 }&#039; | grep -v &quot;^$&quot; |grep -v &quot;Databases&quot;`&lt;br /&gt;do&lt;br /&gt;&amp;nbsp; &amp;nbsp; echo &quot;*------------------------------------------------------ *&quot;;&lt;br /&gt;&amp;nbsp; &amp;nbsp; echo &quot;* ${database} START&quot;;&lt;br /&gt;&amp;nbsp; &amp;nbsp; echo &quot;*------------------------------------------------------ *&quot;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; if [ ! -d &quot;${dump_dir}/${dump_date}/${database}&quot; ]&lt;br /&gt;&amp;nbsp; &amp;nbsp; then&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; mkdir -p ${dump_dir}/${dump_date}/${database};&lt;br /&gt;&amp;nbsp; &amp;nbsp; fi&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; for table in `mysql -u ${DB_user} -p${DB_pass} -e&quot;show tables&quot; ${database} | grep -v &quot;Tables_in_${database}&quot; | grep -v &quot;^$&quot;`&lt;br /&gt;&amp;nbsp; &amp;nbsp; do&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; if [ ${DB_optimize_switch} = &quot;1&quot; ]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; then&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; mysql -u ${DB_user} -p${DB_pass} -e&quot;optimize table ${table}&quot; ${database}&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; fi&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; mysqldump -u ${DB_user} -p${DB_pass} --quick --single-transaction &quot;${database}&quot; ${table} &amp;gt; ${dump_dir}/${dump_date}/${database}/${table}.sql&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; echo &quot;mysql ${DB_user} -p${DB_pass} $db &amp;lt; $table.sql&quot; &amp;gt;&amp;gt; $dump_dir/$dump_date/$database/restore.sh&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; echo $table;&lt;br /&gt;&amp;nbsp; &amp;nbsp; done&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; sleep 1;&lt;br /&gt;done&lt;/P&gt;
&lt;P&gt;echo &quot;* ----------------------- - 7 DAY DELETE-------------------- *&quot;;&lt;br /&gt;Old_Date=`/bin/date -d &quot;10 day ago&quot; +&quot;%Y%m%d-%H&quot;`;&lt;br /&gt;rm -rf ${dump_dir}/${Old_Date};&lt;/P&gt;
&lt;P&gt;#tar cvfz /backups/${dump_date}.tar ${dump_dir}/${dump_date};&lt;/P&gt;
&lt;P&gt;echo &quot;*----------------------------------------------------------- *&quot;;&lt;br /&gt;echo &quot;* BACKUP PATH : ${dump_dir}/${dump_date} &quot;;&lt;br /&gt;echo &quot;*----------------------------------------------------------- *&quot;;&lt;br /&gt;ls -asl ${dump_dir}/${dump_date};&lt;br /&gt;exit 0;&lt;/P&gt;</description>
			<category>MySql</category>
			<category>MySql</category>
			<author> (웹마짱구)</author>
			<guid>http://jjangu.pe.kr/blog/582</guid>
			<comments>http://jjangu.pe.kr/blog/582#entry582comment</comments>
			<pubDate>Thu, 26 Nov 2009 12:15:03 +0900</pubDate>
		</item>
		<item>
			<title>표준시간 맞추기(time.cron)</title>
			<link>http://jjangu.pe.kr/blog/4</link>
			<description>&lt;DIV id=contents&gt;
&lt;P&gt;00 00 * * * su - root -c &#039;/usr/bin/rdate -s time.bora.net &amp;amp;&amp;amp; /sbin/clock -w&#039;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;* rdate 와 hwclock 을 이용한 세계표준시간 맞추기&lt;br /&gt;&lt;br /&gt;rdate -s time.kriss.re.kr &amp;amp;&amp;amp; hwclock -w&lt;br /&gt;rdate -s time.bora.net &amp;amp;&amp;amp; hwclock -w&lt;br /&gt;&lt;br /&gt;rdate는 다른서버에서 시간을 받아와 시스템 시간을 셋팅한다.&lt;br /&gt;hwclock는 시간을 시스템 바이오스에 기록한다.&lt;br /&gt;&lt;br /&gt;위의 내용을 cron 데몬을 이용하면 항상 시스템을 세계표준시간에 맞출 수 있다.&lt;/P&gt;&lt;br /&gt;
&lt;P&gt;[/etc/cron.daily/time.cron]&lt;/P&gt;
&lt;P&gt;#!/bin/bash&lt;br /&gt;# Get korea Standard Time&lt;/P&gt;
&lt;P&gt;r=`rdate -s time.bora.net`&lt;/P&gt;
&lt;P&gt;while [ $? -eq 1 ]; do&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; r=`rdate -s time.bora.net`&lt;/P&gt;
&lt;P&gt;done&lt;/P&gt;&lt;/DIV&gt;</description>
			<category>Linux</category>
			<category>Linux</category>
			<author> (웹마짱구)</author>
			<guid>http://jjangu.pe.kr/blog/4</guid>
			<comments>http://jjangu.pe.kr/blog/4#entry4comment</comments>
			<pubDate>Wed, 11 Nov 2009 15:19:01 +0900</pubDate>
		</item>
		<item>
			<title>vi 사용시 tab 간격 조절</title>
			<link>http://jjangu.pe.kr/blog/581</link>
			<description>명령어 모드에서&lt;br /&gt;&lt;br /&gt;:se ts=4&lt;br /&gt;&lt;br /&gt;라고 하면 됩니다.&lt;br /&gt;&lt;br /&gt;tab size를 4로 설정하라는 뜻입니다.&lt;br /&gt;&lt;br /&gt;vi가 실행될 때마다 이 설정을 가지게 하려면&lt;br /&gt;&lt;br /&gt;사용자 홈디렉토리에 .exrc 파일을 만들고&lt;br /&gt;&lt;br /&gt;그안에&lt;br /&gt;&lt;br /&gt;se ts=4&lt;br /&gt;&lt;br /&gt;라고 넣으세요 (.exrc 파일에 넣을 때는 : 없음에 유의)&amp;nbsp; 
&lt;DIV class=autosourcing-stub&gt;
&lt;P style=&quot;PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-WEIGHT: normal; FONT-SIZE: 12px; PADDING-BOTTOM: 0px; MARGIN: 11px 0px 7px; PADDING-TOP: 0px; FONT-STYLE: normal; FONT-FAMILY: Dotum&quot;&gt;&lt;STRONG style=&quot;PADDING-RIGHT: 7px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px&quot;&gt;[출처]&lt;/STRONG&gt; &lt;A href=&quot;http://blog.naver.com/wooya510/60004833116&quot; target=_blank&gt;vi에서 tab간격 4칸으로 조절하기&lt;/A&gt;&lt;SPAN style=&quot;PADDING-RIGHT: 7px; PADDING-LEFT: 5px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px&quot;&gt;|&lt;/SPAN&gt;&lt;STRONG style=&quot;PADDING-RIGHT: 7px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px&quot;&gt;작성자&lt;/STRONG&gt; &lt;A href=&quot;http://blog.naver.com/wooya510&quot; target=_blank&gt;이주한&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
			<category>Linux</category>
			<category>Linux</category>
			<category>vi</category>
			<author> (웹마짱구)</author>
			<guid>http://jjangu.pe.kr/blog/581</guid>
			<comments>http://jjangu.pe.kr/blog/581#entry581comment</comments>
			<pubDate>Mon, 09 Nov 2009 19:16:39 +0900</pubDate>
		</item>
		<item>
			<title>포인트 정보</title>
			<link>http://jjangu.pe.kr/blog/580</link>
			<description>경남 남해 물건 방파제&lt;br /&gt;&lt;br /&gt;전남 여수 화양면 힛도마을 (백야대교), 백야도</description>
			<category>낚시</category>
			<author> (웹마짱구)</author>
			<guid>http://jjangu.pe.kr/blog/580</guid>
			<comments>http://jjangu.pe.kr/blog/580#entry580comment</comments>
			<pubDate>Mon, 02 Nov 2009 14:08:21 +0900</pubDate>
		</item>
		<item>
			<title>갈치 갯바위/방파제 원투낚시 채비도</title>
			<link>http://jjangu.pe.kr/blog/579</link>
			<description>와이어 갈치전용 라인 구매 : &lt;a href=&quot;http://itempage3.auction.co.kr/DetailView.aspx?ItemNo=A505793397&quot;&gt;http://itempage3.auction.co.kr/DetailView.aspx?ItemNo=A505793397&lt;/a&gt;&lt;a href=&quot;http://itempage3.auction.co.kr/DetailView.aspx?ItemNo=A505793397&quot; onclick=&quot;window.open(&#039;http://itempage3.auction.co.kr/DetailView.aspx?ItemNo=A505793397&#039;);return false;&quot; style=&quot;border:none; text-decoration:none; padding-left:15px; margin-right: -0.5em; background: transparent url(/blog/plugins/NewWindowLink/newwindow.gif) no-repeat 0px 50%;&quot; title=&quot;다음 링크를 새 창으로 엽니다. : &#039;http://itempage3.auction.co.kr/DetailView.aspx?ItemNo=A505793397&#039;&quot;&gt;&amp;nbsp;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;imageblock center&quot; style=&quot;text-align: center; clear: both;&quot;&gt;&lt;img src=&quot;http://jjangu.pe.kr/blog/attach/1/1057041067.jpg&quot; alt=&quot;사용자 삽입 이미지&quot; height=&quot;459&quot; width=&quot;600&quot; /&gt;&lt;/div&gt;&lt;br /&gt;</description>
			<category>낚시</category>
			<category>갈치낚시</category>
			<author> (웹마짱구)</author>
			<guid>http://jjangu.pe.kr/blog/579</guid>
			<comments>http://jjangu.pe.kr/blog/579#entry579comment</comments>
			<pubDate>Mon, 21 Sep 2009 12:11:55 +0900</pubDate>
		</item>
	</channel>
</rss>
