<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Yongbok Blog</title>
	
	<link>http://www.yongbok.net/blog</link>
	<description>Linux, Unix, FreeBSD, Solaris, Windows, Operating System</description>
	<lastBuildDate>Sun, 19 May 2013 14:25:12 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/ruo91" /><feedburner:info uri="ruo91" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>How to WordPress Permalink Setting on Nginx</title>
		<link>http://feedproxy.google.com/~r/ruo91/~3/Ky_roRmQVyw/</link>
		<comments>http://www.yongbok.net/blog/how-to-wordpress-permalink-setting-on-nginx/#comments</comments>
		<pubDate>Sun, 19 May 2013 14:23:30 +0000</pubDate>
		<dc:creator>ruo91</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[How to WordPress Permalink Setting on Nginx]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress Permalink]]></category>

		<guid isPermaLink="false">http://www.yongbok.net/blog/?p=924</guid>
		<description><![CDATA[WordPress 블로그를 사용하다 보면 Permalink를 사용자 임의로 변경 하고 싶을때가 있습니다. Nginx를 웹서버로 사용하고 있는 사용자에게 도움이 될까 싶어 포스팅 합니다. Nginx 설정 파일의 server구문 사이에 아래 예제 처럼 적용 하시면 됩니다. # Yongbok.netserver {&#160;&#160;listen&#160;&#160;80;&#160;&#160;server_name yongbok.net www.yongbok.net yongbok.com www.yongbok.com;&#160;&#160;&#160;root&#160;&#160; /home/user/ruo91/public_html;&#160;&#160;index&#160;&#160;index.php index.html;&#160;&#160;&#160;# Logs&#160;&#160;access_log&#160;&#160;logs/www-access.log;&#160;&#160;error_log logs/www-error.log;&#160;&#160;&#160;# WordPress Permalink&#160;&#160;try_files $uri $uri/ /blog/index.php?$args;&#160;&#160;&#160;# php-fpm&#160;&#160;location ~ \.php$ {&#160;&#160;&#160;&#160;&#160;&#160; fastcgi_pass&#160;&#160; unix:/dev/shm/php-fpm.sock;&#160;&#160;&#160;&#160;&#160;&#160; fastcgi_index&#160;&#160;index.php;&#160;&#160;&#160;&#160;&#160;&#160; [...]]]></description>
				<content:encoded><![CDATA[<div id="!Share" socials="Facebook,Twitter,Google,Digg,Tumblr,Linkedin,Blogger" shareID="6ad064f6c56b1a2516af0831fbd0fc46" layout="nice_left" color="#fefefe" width="50" position="center" icons="" showat="" textcolor="#000000" counter="yes" offleft="40" ></div><p>WordPress 블로그를 사용하다 보면 Permalink를 사용자 임의로 변경 하고 싶을때가 있습니다.<br />
Nginx를 웹서버로 사용하고 있는 사용자에게 도움이 될까 싶어 포스팅 합니다.</p>
<p>Nginx 설정 파일의 server구문 사이에 아래 예제 처럼 적용 하시면 됩니다.<br />
<!--DEVFMTCODE--><pre class="devcodeblock" title="Text"><div class="devcodeoverflow"><ol><li># Yongbok.net</li><li>server {</li><li>&nbsp;&nbsp;listen&nbsp;&nbsp;80;</li><li>&nbsp;&nbsp;server_name yongbok.net www.yongbok.net yongbok.com www.yongbok.com;</li><li>&nbsp;</li><li>&nbsp;&nbsp;root&nbsp;&nbsp; /home/user/ruo91/public_html;</li><li>&nbsp;&nbsp;index&nbsp;&nbsp;index.php index.html;</li><li>&nbsp;</li><li>&nbsp;&nbsp;# Logs</li><li>&nbsp;&nbsp;access_log&nbsp;&nbsp;logs/www-access.log;</li><li>&nbsp;&nbsp;error_log logs/www-error.log;</li><li>&nbsp;</li><li>&nbsp;&nbsp;# WordPress Permalink</li><li>&nbsp;&nbsp;try_files $uri $uri/ /blog/index.php?$args;</li><li>&nbsp;</li><li>&nbsp;&nbsp;# php-fpm</li><li>&nbsp;&nbsp;location ~ \.php$ {</li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fastcgi_pass&nbsp;&nbsp; unix:/dev/shm/php-fpm.sock;</li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fastcgi_index&nbsp;&nbsp;index.php;</li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fastcgi_split_path_info ^(.+\.php)(/.+)$;</li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fastcgi_param&nbsp;&nbsp;SCRIPT_FILENAME&nbsp;&nbsp;&nbsp;&nbsp;$document_root$fastcgi_script_name;</li><li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; include fastcgi.conf;</li><li>&nbsp;&nbsp;}</li><li>}</li></ol></div></pre><!--END_DEVFMTCODE--></p>
<img src="http://feeds.feedburner.com/~r/ruo91/~4/Ky_roRmQVyw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.yongbok.net/blog/how-to-wordpress-permalink-setting-on-nginx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.yongbok.net/blog/how-to-wordpress-permalink-setting-on-nginx/</feedburner:origLink></item>
		<item>
		<title>munin – Permission denied at /usr/share/perl5/Munin/Node/Service.pm line 215,  line 30.</title>
		<link>http://feedproxy.google.com/~r/ruo91/~3/4jlEneYue6M/</link>
		<comments>http://www.yongbok.net/blog/munin-permission-denied-at-usrshareperl5muninnodeservice-pm-line-215-line-30/#comments</comments>
		<pubDate>Fri, 19 Apr 2013 02:55:30 +0000</pubDate>
		<dc:creator>ruo91</dc:creator>
				<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[line 30.]]></category>
		<category><![CDATA[Munin]]></category>
		<category><![CDATA[munin Permission denied at]]></category>
		<category><![CDATA[Permission denied at /usr/share/perl5/Munin/Node/Service.pm line 215]]></category>

		<guid isPermaLink="false">http://www.yongbok.net/blog/?p=895</guid>
		<description><![CDATA[Munin에서 Plugin을 실행 했을때 아래와 같은 문제를 만나볼수 있었습니다. &#160; [root@yongbok ~]# tail -F /var/log/munin/munin-node.log 2013/04/19-11:17:01 [9708] # ERROR: Failed to exec. 2013/04/19-11:17:01 [9708] Service &#8216;example_script&#8217; exited with status 42/0. 2013/04/19-11:17:01 [9708] Error output from example_script: 2013/04/19-11:17:01 [9708] Can&#8217;t exec &#8220;/etc/munin/plugins/example_script&#8221;: Permission denied at /usr/share/perl5/Munin/Node/Service.pm line 215, line 30. 이것은 스크립트의 실행할 사용자의 권한이 주어지지 [...]]]></description>
				<content:encoded><![CDATA[<div id="!Share" socials="Facebook,Twitter,Google,Digg,Tumblr,Linkedin,Blogger" shareID="6ad064f6c56b1a2516af0831fbd0fc46" layout="nice_left" color="#fefefe" width="50" position="center" icons="" showat="" textcolor="#000000" counter="yes" offleft="40" ></div><p>Munin에서 Plugin을 실행 했을때 아래와 같은 문제를 만나볼수 있었습니다.</p>
<p>&nbsp;</p>
<blockquote><p>[root@yongbok ~]# tail -F /var/log/munin/munin-node.log<br />
2013/04/19-11:17:01 [9708] # ERROR: Failed to exec.<br />
2013/04/19-11:17:01 [9708] Service &#8216;example_script&#8217; exited with status 42/0.<br />
2013/04/19-11:17:01 [9708] Error output from example_script:<br />
2013/04/19-11:17:01 [9708] Can&#8217;t exec &#8220;/etc/munin/plugins/example_script&#8221;: Permission denied at /usr/share/perl5/Munin/Node/Service.pm line 215, <stdin> line 30.</stdin></p></blockquote>
<p>이것은 스크립트의 실행할 사용자의 권한이 주어지지 않아서 생긴 문제였습니다.</p>
<p>&nbsp;</p>
<p>/etc/munin/plugin-conf.d/munin-node 설정파일에 해당 스크립트를 실행할수 있는 사용자를 지정 해주면 됩니다.</p>
<blockquote><p>[root@yongbok ~]# nano /etc/munin/plugin-conf.d/munin-node<br />
[example*]<br />
user root</p></blockquote>
<img src="http://feeds.feedburner.com/~r/ruo91/~4/4jlEneYue6M" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.yongbok.net/blog/munin-permission-denied-at-usrshareperl5muninnodeservice-pm-line-215-line-30/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.yongbok.net/blog/munin-permission-denied-at-usrshareperl5muninnodeservice-pm-line-215-line-30/</feedburner:origLink></item>
		<item>
		<title>jQuery – text 파일 불러오기</title>
		<link>http://feedproxy.google.com/~r/ruo91/~3/yEU7lXEbx-8/</link>
		<comments>http://www.yongbok.net/blog/jquery-text-%ed%8c%8c%ec%9d%bc-%eb%b6%88%eb%9f%ac%ec%98%a4%ea%b8%b0/#comments</comments>
		<pubDate>Sun, 14 Apr 2013 10:57:17 +0000</pubDate>
		<dc:creator>ruo91</dc:creator>
				<category><![CDATA[jquery]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[jQuery load]]></category>
		<category><![CDATA[jQuery load txt file]]></category>
		<category><![CDATA[jQuery text]]></category>
		<category><![CDATA[jQuery text 파일]]></category>
		<category><![CDATA[jQuery txt]]></category>

		<guid isPermaLink="false">http://www.yongbok.net/blog/?p=882</guid>
		<description><![CDATA[jQuery를 이용하여 사용자가 원하는 파일을 불러올수 있습니다. &#160; 원하는 위치에 아래를 추가합니다. &#60;div id=&#34;target&#34;&#62;&#60;/div&#62; &#160; 해당 파일을 불러오면 됩니다. &#60;script type=&#34;text/javascript&#34;&#62; $&#40;function&#40;&#41;&#123; $&#40; &#34;#target&#34; &#41;.load&#40; &#34;example.txt&#34; &#41;; &#125;&#41;;&#60;/script&#62; &#160; - 적용 예 &#60;!DOCTYPE html&#62;&#60;html&#62;&#60;head&#62;&#60;title&#62;jquery example&#60;/title&#62;&#60;meta charset=&#34;UTF-8&#34;&#62;&#60;meta name=&#34;description&#34; content=&#34;jquery example&#34;&#62;&#60;script type=&#34;text/javascript&#34; src=&#34;http://code.jquery.com/jquery.min.js&#34;&#62;&#60;/script&#62;&#60;/head&#62;&#160;&#60;body&#62;&#60;script type=&#34;text/javascript&#34;&#62; $&#40;function&#40;&#41;&#123; $&#40; &#34;#target&#34; &#41;.load&#40; &#34;example.txt&#34; &#41;; &#125;&#41;;&#60;/script&#62;&#160; &#60;pre&#62;&#160;&#160;&#60;div id=&#34;target&#34;&#62;&#60;/div&#62;&#60;/pre&#62;&#160;&#60;/body&#62;&#60;/html&#62; &#160; 참고 http://api.jquery.com/load/]]></description>
				<content:encoded><![CDATA[<div id="!Share" socials="Facebook,Twitter,Google,Digg,Tumblr,Linkedin,Blogger" shareID="6ad064f6c56b1a2516af0831fbd0fc46" layout="nice_left" color="#fefefe" width="50" position="center" icons="" showat="" textcolor="#000000" counter="yes" offleft="40" ></div><p>jQuery를 이용하여 사용자가 원하는 파일을 불러올수 있습니다.<br />
&nbsp;</p>
<p>원하는 위치에 아래를 추가합니다.<br />
<!--DEVFMTCODE--><pre class="devcodeblock" title="HTML"><div class="devcodeoverflow"><ol><li><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;target&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span></li></ol></div></pre><!--END_DEVFMTCODE--><br />
&nbsp;</p>
<p>해당 파일을 불러오면 됩니다.<br />
<!--DEVFMTCODE--><pre class="devcodeblock" title="Javascript"><div class="devcodeoverflow"><ol><li><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span></li><li> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span></li><li> $<span style="color: #009900;">&#40;</span> <span style="color: #3366CC;">&quot;#target&quot;</span> <span style="color: #009900;">&#41;</span>.<span style="color: #660066;">load</span><span style="color: #009900;">&#40;</span> <span style="color: #3366CC;">&quot;example.txt&quot;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></li><li> <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></li><li><span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></li></ol></div></pre><!--END_DEVFMTCODE--><br />
&nbsp;</p>
<p>- 적용 예<br />
<!--DEVFMTCODE--><pre class="devcodeblock" title="HTML"><div class="devcodeoverflow"><ol><li><span style="color: #00bbdd;">&lt;!DOCTYPE html&gt;</span></li><li><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/html.html"><span style="color: #000000; font-weight: bold;">html</span></a>&gt;</span></li><li><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/head.html"><span style="color: #000000; font-weight: bold;">head</span></a>&gt;</span></li><li><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/title.html"><span style="color: #000000; font-weight: bold;">title</span></a>&gt;</span>jquery example<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/title.html"><span style="color: #000000; font-weight: bold;">title</span></a>&gt;</span></li><li><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/meta.html"><span style="color: #000000; font-weight: bold;">meta</span></a> <span style="color: #000066;">charset</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;UTF-8&quot;</span>&gt;</span></li><li><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/meta.html"><span style="color: #000000; font-weight: bold;">meta</span></a> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;description&quot;</span> <span style="color: #000066;">content</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;jquery example&quot;</span>&gt;</span></li><li><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">script</span></a> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://code.jquery.com/jquery.min.js&quot;</span>&gt;</span><span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">script</span></a>&gt;</span></li><li><span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/head.html"><span style="color: #000000; font-weight: bold;">head</span></a>&gt;</span></li><li>&nbsp;</li><li><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/body.html"><span style="color: #000000; font-weight: bold;">body</span></a>&gt;</span></li><li><span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">script</span></a> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;</span></li><li> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span></li><li> $<span style="color: #009900;">&#40;</span> <span style="color: #3366CC;">&quot;#target&quot;</span> <span style="color: #009900;">&#41;</span>.<span style="color: #660066;">load</span><span style="color: #009900;">&#40;</span> <span style="color: #3366CC;">&quot;example.txt&quot;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></li><li> <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></li><li><span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">script</span></a>&gt;</span></li><li>&nbsp;</li><li> <span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/pre.html"><span style="color: #000000; font-weight: bold;">pre</span></a>&gt;</span></li><li>&nbsp;&nbsp;<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;target&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">div</span></a>&gt;</span></li><li><span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/pre.html"><span style="color: #000000; font-weight: bold;">pre</span></a>&gt;</span></li><li>&nbsp;</li><li><span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/body.html"><span style="color: #000000; font-weight: bold;">body</span></a>&gt;</span></li><li><span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/html.html"><span style="color: #000000; font-weight: bold;">html</span></a>&gt;</span></li></ol></div></pre><!--END_DEVFMTCODE--><br />
&nbsp;</p>
<p>참고<br />
<a href="http://api.jquery.com/load/">http://api.jquery.com/load/</a></p>
<img src="http://feeds.feedburner.com/~r/ruo91/~4/yEU7lXEbx-8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.yongbok.net/blog/jquery-text-%ed%8c%8c%ec%9d%bc-%eb%b6%88%eb%9f%ac%ec%98%a4%ea%b8%b0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.yongbok.net/blog/jquery-text-%ed%8c%8c%ec%9d%bc-%eb%b6%88%eb%9f%ac%ec%98%a4%ea%b8%b0/</feedburner:origLink></item>
		<item>
		<title>Install PECL SSH2 extension for PHP</title>
		<link>http://feedproxy.google.com/~r/ruo91/~3/8iA8OIY6Oyg/</link>
		<comments>http://www.yongbok.net/blog/install-pecl-ssh2-extension-for-php/#comments</comments>
		<pubDate>Sun, 31 Mar 2013 07:07:27 +0000</pubDate>
		<dc:creator>ruo91</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Install PECL SSH2 extension for PHP]]></category>
		<category><![CDATA[pecl ssh2]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php extension]]></category>
		<category><![CDATA[php sftp]]></category>
		<category><![CDATA[php ssh2]]></category>

		<guid isPermaLink="false">http://www.yongbok.net/blog/?p=839</guid>
		<description><![CDATA[PHP의 확장 모듈인 SSH2를 설치하는 방법입니다. 최신 버전을 http://pecl.php.net/package/ssh2 에서 다운로드 합니다. [root@yongbok ~]# wget http://pecl.php.net/get/ssh2-0.12.tgz [root@yongbok ~]# tar xzvf ssh2-0.12.tgz [root@yongbok ~]# cd ssh2-0.12 [root@yongbok ~]# /usr/local/php-5.3.21-fpm/bin/phpize Configuring for: PHP Api Version: 20090626 Zend Module Api No: 20090626 Zend Extension Api No: 220090626 configure.in:3: warning: prefer named diversions configure.in:3: warning: prefer named diversions &#160; [...]]]></description>
				<content:encoded><![CDATA[<div id="!Share" socials="Facebook,Twitter,Google,Digg,Tumblr,Linkedin,Blogger" shareID="6ad064f6c56b1a2516af0831fbd0fc46" layout="nice_left" color="#fefefe" width="50" position="center" icons="" showat="" textcolor="#000000" counter="yes" offleft="40" ></div><p>PHP의 확장 모듈인 SSH2를 설치하는 방법입니다.</p>
<p>최신 버전을 <a title="pecl ssh2" href="http://pecl.php.net/package/ssh2" target="_blank">http://pecl.php.net/package/ssh2</a> 에서 다운로드 합니다.</p>
<blockquote><p>[root@yongbok ~]# wget http://pecl.php.net/get/ssh2-0.12.tgz<br />
[root@yongbok ~]# tar xzvf ssh2-0.12.tgz<br />
[root@yongbok ~]# cd ssh2-0.12<br />
[root@yongbok ~]# /usr/local/php-5.3.21-fpm/bin/phpize<br />
Configuring for:<br />
PHP Api Version: 20090626<br />
Zend Module Api No: 20090626<br />
Zend Extension Api No: 220090626<br />
configure.in:3: warning: prefer named diversions<br />
configure.in:3: warning: prefer named diversions</p></blockquote>
<p>&nbsp;</p>
<p>컴파일 및 설치 합니다.</p>
<blockquote><p>[root@yongbok ~]# ./configure &#8211;with-php-config=/usr/local/php-5.3.21-fpm/bin/php-config<br />
[root@yongbok ~]# make ; make install<br />
/bin/bash /usr/local/src/ssh2-0.12/libtool &#8211;mode=install cp ./ssh2.la /usr/local/src/ssh2-0.12/modules<br />
cp ./.libs/ssh2.so /usr/local/src/ssh2-0.12/modules/ssh2.so<br />
cp ./.libs/ssh2.lai /usr/local/src/ssh2-0.12/modules/ssh2.la<br />
PATH=&#8221;$PATH:/sbin&#8221; ldconfig -n /usr/local/src/ssh2-0.12/modules<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Libraries have been installed in:<br />
/usr/local/src/ssh2-0.12/modules</p>
<p>If you ever happen to want to link against installed libraries<br />
in a given directory, LIBDIR, you must either use libtool, and<br />
specify the full pathname of the library, or use the `-LLIBDIR&#8217;<br />
flag during linking and do at least one of the following:<br />
- add LIBDIR to the `LD_LIBRARY_PATH&#8217; environment variable<br />
during execution<br />
- add LIBDIR to the `LD_RUN_PATH&#8217; environment variable<br />
during linking<br />
- use the `-Wl,&#8211;rpath -Wl,LIBDIR&#8217; linker flag<br />
- have your system administrator add LIBDIR to `/etc/ld.so.conf&#8217;</p>
<p>See any operating system documentation about shared libraries for<br />
more information, such as the ld(1) and ld.so(8) manual pages.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>Build complete.<br />
Don&#8217;t forget to run &#8216;make test&#8217;.</p>
<p>Installing shared extensions: /usr/local/php-5.3.21-fpm/lib/php/extensions/no-debug-non-zts-20090626/</p></blockquote>
<p>&nbsp;</p>
<p>php.ini에 내용 추가</p>
<blockquote><p>[root@yongbok ~]# echo &#8216;[ssh2]&#8216; &gt;&gt; /usr/local/php-5.3.21-fpm/etc/php.ini<br />
[root@yongbok ~]# echo &#8216;extension=ssh2.so&#8217; &gt;&gt; /usr/local/php-5.3.21-fpm/etc/php.ini<br />
[root@yongbok ~]# echo &#8216;/usr/local/php-5.3.21-fpm/lib/php/extensions/no-debug-non-zts-20090626/&#8217; &gt;&gt; /usr/local/php-5.3.21-fpm/etc/php.ini</p></blockquote>
<p>&nbsp;</p>
<p>phpinfo 확인</p>
<blockquote><p>[root@yongbok ~]# echo &#8216;&lt;?php phpinfo(); ?&gt;&#8217;<!--?php phpinfo(); ?--> &gt; /home/ruo91/public_html/phpinfo.php<br />
[root@yongbok ~]# php /home/ruo91/public_html/phpinfo.php | grep ssh2<br />
Registered PHP Streams =&gt; https, ftps, compress.zlib, compress.bzip2, php, file, glob, data, http, ftp, zip, phar, ssh2.shell, ssh2.exec, ssh2.tunnel, ssh2.scp, ssh2.sftp<br />
libSSH Version =&gt; libssh2/1.2.6<br />
ssh2<br />
libssh2 version =&gt; 1.2.6<br />
banner =&gt; SSH-2.0-libssh2_1.2.6<br />
OLDPWD =&gt; /usr/local/src/ssh2-0.12<br />
_SERVER["OLDPWD"] =&gt; /usr/local/src/ssh2-0.12<br />
_ENV["OLDPWD"] =&gt; /usr/local/src/ssh2-0.12</p></blockquote>
<p>&nbsp;</p>
<p>또는 Web browser에서 확인<br />
<img class="aligncenter size-full wp-image-841" alt="php-ssh2" src="http://www.yongbok.net/blog/wp-content/uploads/2013/03/php-ssh2.png" width="599" height="34" /><br />
<img class="aligncenter size-full wp-image-842" alt="php-ssh2_2" src="http://www.yongbok.net/blog/wp-content/uploads/2013/03/php-ssh2_2.png" width="598" height="128" /></p>
<img src="http://feeds.feedburner.com/~r/ruo91/~4/8iA8OIY6Oyg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.yongbok.net/blog/install-pecl-ssh2-extension-for-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.yongbok.net/blog/install-pecl-ssh2-extension-for-php/</feedburner:origLink></item>
		<item>
		<title>Debian – OpenSSH timeout session</title>
		<link>http://feedproxy.google.com/~r/ruo91/~3/2DEHviQeAq0/</link>
		<comments>http://www.yongbok.net/blog/debian-openssh-timeout-session/#comments</comments>
		<pubDate>Fri, 22 Mar 2013 07:48:53 +0000</pubDate>
		<dc:creator>ruo91</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Debian OpenSSH timeout session]]></category>
		<category><![CDATA[Debian PuTTY]]></category>
		<category><![CDATA[Debian ssh]]></category>
		<category><![CDATA[Debian ssh time out]]></category>
		<category><![CDATA[Debian TMOUT]]></category>

		<guid isPermaLink="false">http://www.yongbok.net/blog/?p=720</guid>
		<description><![CDATA[Debian에서 PuTTY로 SSH 로그인시 입력이 없을때 자동으로 PuTTY가 꺼질때가 있습니다. 구글 검색해보면 ssh_conf, sshd_conf 시간 조정하라고 나오는데.. 젠장.. 안됩니다. 그래서 뒤져보다가 나오는거 소용이 없길래 bash.bashrc에 TMOUT 변수를 원하는 초단위로 변경 해보니 잘되더군요. /etc/bash.bashrc 파일을 열어 맨 아래부분 TMOUT을 원하는 초단위로 변경 하시면 됩니다.&#160; (기본값은 아마 300초(?)) root@yongbok:~# nano /etc/bash.bashrc TMOUT=31536000 readonly TMOUT export TMOUT]]></description>
				<content:encoded><![CDATA[<div id="!Share" socials="Facebook,Twitter,Google,Digg,Tumblr,Linkedin,Blogger" shareID="6ad064f6c56b1a2516af0831fbd0fc46" layout="nice_left" color="#fefefe" width="50" position="center" icons="" showat="" textcolor="#000000" counter="yes" offleft="40" ></div><p>Debian에서 PuTTY로 SSH 로그인시 입력이 없을때 자동으로 PuTTY가 꺼질때가 있습니다.</p>
<p>구글 검색해보면 ssh_conf, sshd_conf 시간 조정하라고 나오는데.. 젠장.. 안됩니다.</p>
<p>그래서 뒤져보다가 나오는거 소용이 없길래 bash.bashrc에 TMOUT 변수를 원하는 초단위로 변경 해보니 잘되더군요.</p>
<p>/etc/bash.bashrc 파일을 열어 맨 아래부분 TMOUT을 원하는 초단위로 변경 하시면 됩니다.&nbsp; (기본값은 아마 300초(?))</p>
<blockquote><p>root@yongbok:~# nano /etc/bash.bashrc</p>
<p>TMOUT=31536000</p>
<p>readonly TMOUT</p>
<p>export TMOUT</p></blockquote>
<img src="http://feeds.feedburner.com/~r/ruo91/~4/2DEHviQeAq0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.yongbok.net/blog/debian-openssh-timeout-session/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.yongbok.net/blog/debian-openssh-timeout-session/</feedburner:origLink></item>
		<item>
		<title>Monitoring multiple server using Munin on Debian/Ubuntu</title>
		<link>http://feedproxy.google.com/~r/ruo91/~3/Y76CNH67D3k/</link>
		<comments>http://www.yongbok.net/blog/monitoring-multiple-server-using-munin-on-debianubuntu/#comments</comments>
		<pubDate>Mon, 18 Mar 2013 14:22:49 +0000</pubDate>
		<dc:creator>ruo91</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Monitoring multiple server using Munin on Debian/Ubuntu]]></category>
		<category><![CDATA[Munin]]></category>
		<category><![CDATA[munin multiple]]></category>
		<category><![CDATA[munin server]]></category>
		<category><![CDATA[Munin 모니터링]]></category>
		<category><![CDATA[Munin 설치]]></category>

		<guid isPermaLink="false">http://www.yongbok.net/blog/?p=697</guid>
		<description><![CDATA[Debian/Ubuntu Linux에서 Munin을 이용하여 서버와 클라이언트를 나눠 모니터링 하는 방법에 대해 알아 보겠습니다. (tested : Debian Squeeze) - Server 설정 * munin 설치 root@yongbok:~# apt-get install -y munin munin-node &#160; * munin.conf 설정 사용자 환경에 맞도록 설정 합니다. root@yongbok:~# nano /etc/munin/munin.conf dbdir /var/lib/munin htmldir /var/cache/munin/www logdir /var/log/munin rundir /var/run/munin includedir /etc/munin/munin-conf.d [yongbok;www] address 127.0.0.1 use_node_name [...]]]></description>
				<content:encoded><![CDATA[<div id="!Share" socials="Facebook,Twitter,Google,Digg,Tumblr,Linkedin,Blogger" shareID="6ad064f6c56b1a2516af0831fbd0fc46" layout="nice_left" color="#fefefe" width="50" position="center" icons="" showat="" textcolor="#000000" counter="yes" offleft="40" ></div><p>Debian/Ubuntu Linux에서 Munin을 이용하여 서버와 클라이언트를 나눠 모니터링 하는 방법에 대해 알아 보겠습니다.<br />
(tested : Debian Squeeze)</p>
<p><strong>- Server 설정</strong></p>
<p>* munin 설치</p>
<blockquote><p>root@yongbok:~# <strong>apt-get install -y munin munin-node</strong></p></blockquote>
<p>&nbsp;</p>
<p>* munin.conf 설정<br />
사용자 환경에 맞도록 설정 합니다.</p>
<blockquote><p>root@yongbok:~# <strong>nano /etc/munin/munin.conf</strong><br />
dbdir /var/lib/munin<br />
htmldir /var/cache/munin/www<br />
logdir /var/log/munin<br />
rundir /var/run/munin<br />
includedir /etc/munin/munin-conf.d</p>
<p>[yongbok;www]<br />
address 127.0.0.1<br />
use_node_name yes</p>
<p>[yongbok;mirror]<br />
address 192.168.0.2<br />
use_node_name yes</p></blockquote>
<p>&nbsp;</p>
<p>* munin-node.conf 설정</p>
<blockquote><p>root@yongbok:~# <strong>nano /etc/munin/munin-node.conf</strong><br />
host_name yongbok.net<br />
allow ^127\.0\.0\.1$<br />
allow ^192\.168\.0.\2$</p></blockquote>
<p>&nbsp;</p>
<p><strong>- Client 설정</strong></p>
<blockquote><p>root@yongbok:~# <strong>apt-get install -y munin-node</strong><br />
root@yongbok:~# <strong>nano /etc/munin/munin-node.conf</strong><br />
host_name mirror.yongbok.net<br />
allow ^127\.0\.0\.1$<br />
allow ^192\.168\.0\.1$</p></blockquote>
<p>&nbsp;</p>
<p><strong>- 공통</strong><br />
munin-node를 실행합니다.</p>
<blockquote><p>root@yongbok:~# <strong>/etc/init.d/munin-node start</strong><br />
Starting Munin-Node: done.</p></blockquote>
<p>&nbsp;</p>
<p>이제 매 5분마다 그래프가 그려집니다.<br />
정상적으로 데이터를 읽어오는지 확인 합니다.</p>
<p>&nbsp;</p>
<p>* Server logs</p>
<blockquote><p>root@yongbok:~# tail -F /var/log/munin/munin-update.log<br />
2013/03/18 23:10:01 Opened log file<br />
2013/03/18 23:10:01 [INFO]: Starting munin-update<br />
2013/03/18 23:10:05 [INFO] Reaping Munin::Master::UpdateWorker&lt;yongbok;mirror&gt;. Exit value/signal: 0/0<br />
2013/03/18 23:10:05 [INFO] Reaping Munin::Master::UpdateWorker&lt;yongbok;www&gt;. Exit value/signal: 0/0<br />
2013/03/18 23:10:05 [INFO]: Munin-update finished (3.45 sec)</p></blockquote>
<p>&nbsp;</p>
<p>* Client logs</p>
<blockquote><p>root@yongbok:~# tail -F /var/log/munin/munin-node.log<br />
2013/03/18-23:10:09 CONNECT TCP Peer: &#8220;192.168.0.1:56564&#8243; Local: &#8220;192.168.0.2:4949</p></blockquote>
<p>&nbsp;</p>
<p>Example graph<br />
<img class="aligncenter size-full wp-image-698" alt="if_eth0-day" src="http://www.yongbok.net/blog/wp-content/uploads/2013/03/if_eth0-day.png" width="497" height="280" /></p>
<img src="http://feeds.feedburner.com/~r/ruo91/~4/Y76CNH67D3k" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.yongbok.net/blog/monitoring-multiple-server-using-munin-on-debianubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.yongbok.net/blog/monitoring-multiple-server-using-munin-on-debianubuntu/</feedburner:origLink></item>
		<item>
		<title>How to install MariaDB Source on Linux</title>
		<link>http://feedproxy.google.com/~r/ruo91/~3/jlRA6g3BO6I/</link>
		<comments>http://www.yongbok.net/blog/how-to-install-mariadb-source-on-linux/#comments</comments>
		<pubDate>Thu, 14 Mar 2013 05:49:37 +0000</pubDate>
		<dc:creator>ruo91</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[mairadb 설치]]></category>
		<category><![CDATA[mariadb]]></category>
		<category><![CDATA[mariadb install]]></category>
		<category><![CDATA[mariadb source]]></category>
		<category><![CDATA[rdbms]]></category>

		<guid isPermaLink="false">http://www.yongbok.net/blog/?p=693</guid>
		<description><![CDATA[Linux에서 MariaDB를 소스로 설치하는 방법에 대해 알아봅니다. MariaDB-5.5.29 Stable 기준으로 작성되었으며 그외는 다소 차이가 있을수 있습니다. 우선 MariaDB가 무엇인지 궁금 하시는 분들을 위해 설명드리겠습니다. MariaDB는 오픈소스의 관계형 데이터베이스 관리 시스템(RDBMS)이고 MySQL과 동일한 소스 코드를 기반으로 있으며 GPL v2 라이선스를 따르고 있습니다. MariaDB가 생겨난 것이 MySQL의 창업자 중 한 명이자 핵심 개발자였던 마이클 와이드니어스는 MySQL Ab사가 SUN에 [...]]]></description>
				<content:encoded><![CDATA[<div id="!Share" socials="Facebook,Twitter,Google,Digg,Tumblr,Linkedin,Blogger" shareID="6ad064f6c56b1a2516af0831fbd0fc46" layout="nice_left" color="#fefefe" width="50" position="center" icons="" showat="" textcolor="#000000" counter="yes" offleft="40" ></div><p>Linux에서 MariaDB를 소스로 설치하는 방법에 대해 알아봅니다.<br />
MariaDB-5.5.29 Stable 기준으로 작성되었으며 그외는 다소 차이가 있을수 있습니다.</p>
<p>우선 MariaDB가 무엇인지 궁금 하시는 분들을 위해 설명드리겠습니다.</p>
<blockquote><p>MariaDB는 오픈소스의 관계형 데이터베이스 관리 시스템(RDBMS)이고 MySQL과 동일한 소스 코드를 기반으로 있으며 GPL v2 라이선스를 따르고 있습니다.</p>
<p>MariaDB가 생겨난 것이 MySQL의 창업자 중 한 명이자 핵심 개발자였던 마이클 와이드니어스는 MySQL Ab사가 SUN에 인수되면서 개발지침 등에 대한 의견 차이가 생기자, 2009년 동료 몇 명과 함께 SUN을 떠나 Monty Program Ab사를 설립하고 MariaDB 개발을 시작하게 됐다고 합니다.</p>
<p>– <a title="MariaDB" href="http://en.wikipedia.org/wiki/MariaDB" target="_blank">위키백과 참고</a> -</p></blockquote>
<p>&nbsp;</p>
<p><strong>1. CMAKE 설치</strong></p>
<p>구지 CMAKE까지 소스 컴파일 할필요는 없는지라 사용하시는 리눅스 패포판의 패키지 매니저로 설치하시거나 Binary로 설치하시는 방법을 추천드립니다.</p>
<p>- CentOS</p>
<blockquote><p>[root@yongbok ~]# yum install -y cmake</p></blockquote>
<p>&nbsp;</p>
<p>- Debian, Ubuntu</p>
<blockquote><p>[root@yongbok ~]# apt-get install -y cmake</p></blockquote>
<p>&nbsp;</p>
<p>Binary로 설치시 아래 주소에서 바이너리 파일을 다운로드 합니다.<br />
<a title="cmake download" href="http://www.cmake.org/cmake/resources/software.html" target="_blank">http://www.cmake.org/cmake/resources/software.html</a></p>
<blockquote><p>[root@yongbok ~]# cd /usr/local/src<br />
[root@yongbok ~]# wget http://www.cmake.org/files/v2.8/cmake-2.8.10.2-Linux-i386.tar.gz<br />
[root@yongbok ~]# tar xzvf cmake-2.8.10.2-Linux-i386.tar.gz<br />
[root@yongbok ~]# mv cmake-2.8.10.2-Linux-i386 /usr/local/cmake<br />
[root@yongbok ~]# ln -s /usr/local/cmake/bin/cmake /usr/local/bin/cmake</p></blockquote>
<p>&nbsp;</p>
<p><strong>2. MariaDB 설치</strong><br />
<a title="MariaDB download" href="https://downloads.mariadb.org/" target="_blank">https://downloads.mariadb.org/</a> 에서 stable을 다운로드 합니다.</p>
<blockquote><p>[root@yongbok ~]# cd /usr/local<br />
[root@yongbok ~]# wget http://mirror.yongbok.net/mariadb/mariadb-5.5.30/kvm-tarbake-jaunty-x86/mariadb-5.5.30.tar.gz<br />
[root@yongbok ~]# tar xzvf mariadb-5.5.30.tar.gz<br />
[root@yongbok ~]# cd mariadb-5.5.30</p></blockquote>
<p>&nbsp;</p>
<p>build 디렉토리를 생성한후 컴파일 합니다.</p>
<blockquote><p>[root@yongbok ~]# mkdir build<br />
[root@yongbok ~]# cd build<br />
[root@yongbok ~]# cmake .. \<br />
-DWITH_READLINE=1 \<br />
-DWITH_SSL=bundled \<br />
-DWITH_ZLIB=system \<br />
-DDEFAULT_CHARSET=utf8 \<br />
-DDEFAULT_COLLATION=utf8_general_ci \<br />
-DENABLED_LOCAL_INFILE=1 \<br />
-DWITH_EXTRA_CHARSETS=all \<br />
-DWITH_ARIA_STORAGE_ENGINE=1 \<br />
-DWITH_XTRADB_STORAGE_ENGINE=1 \<br />
-DWITH_ARCHIVE_STORAGE_ENGINE=1 \<br />
-DWITH_INNOBASE_STORAGE_ENGINE=1 \<br />
-DWITH_PARTITION_STORAGE_ENGINE=1 \<br />
-DWITH_BLACKHOLE_STORAGE_ENGINE=1 \<br />
-DWITH_FEDERATEDX_STORAGE_ENGINE=1 \<br />
-DWITH_PERFSCHEMA_STORAGE_ENGINE=1 \<br />
-DCMAKE_INSTALL_PREFIX=/user/local/mariadb \<br />
-DMYSQL_DATADIR=/usr/local/mariadb/data</p></blockquote>
<p>컴파일 및 설치합니다.</p>
<blockquote><p>[root@yongbok ~]# make ; make install</p></blockquote>
<p>&nbsp;</p>
<p><strong>3. 설정</strong><br />
- 사용자 및 그룹 생성</p>
<blockquote><p>[root@yongbok ~]# groupadd -g 27 -o -r mysql<br />
[root@yongbok ~]# useradd -M -g mysql -o -r -d /usr/local/mariadb/data -s /bin/false -c “MariaDB” -u 27 mysql</p></blockquote>
<p>&nbsp;</p>
<p>- 디렉토리 생성 및 권한 설정</p>
<blockquote><p>[root@yongbok ~]# mkdir -p /usr/local/mariadb/InnoDB/{redoLogs,undoLogs,ib_data}<br />
[root@yongbok ~]# chgrp -R mysql /usr/local/mariadb<br />
[root@yongbok ~]# chown -R mysql /usr/local/mariadb/data<br />
[root@yongbok ~]# mkdir /usr/local/mariadb/logs /usr/local/mariadb/tmp<br />
[root@yongbok ~]# chown mysql:mysql /usr/local/mariadb/{tmp,logs}</p></blockquote>
<p>&nbsp;</p>
<p>- MariaDB system table 설치</p>
<blockquote><p>[root@yongbok ~]# cd /user/local/mariadb/scripts<br />
[root@yongbok ~]# ./mysql_install_db –basedir=/usr/local/mariadb –datadir=/usr/local/mariadb/data<br />
[root@yongbok ~]# chown -R mysql:mysql /usr/local/mariadb/data</p></blockquote>
<p>&nbsp;</p>
<p>- mysqld startup script 설정</p>
<blockquote><p>[root@yongbok ~]# cd /usr/local/mariadb/support-files<br />
[root@yongbok ~]# cp mysql.server /etc/init.d/mysqld</p></blockquote>
<p>&nbsp;</p>
<p>* CentOS</p>
<blockquote><p>[root@yongbok ~]# chkconfig –add mysqld</p></blockquote>
<p>&nbsp;</p>
<p>* Debian, Ubuntu</p>
<blockquote><p>[root@yongbok ~]# update-rc.d mysqld defaults</p></blockquote>
<p>&nbsp;</p>
<p>- library 등록</p>
<blockquote><p>[root@yongbok ~]# echo “/usr/local/mariadb/lib” &gt; /etc/ld.so.conf.d/mysql.conf</p></blockquote>
<p>&nbsp;</p>
<p>* 64bit의 경우</p>
<blockquote><p>[root@yongbok ~]# cd /usr/local/mariadb<br />
[root@yongbok ~]# ln -s lib lib64</p></blockquote>
<p>&nbsp;</p>
<p>- my.cnf 생성</p>
<blockquote><p>[root@yongbok ~]# cd /usr/local/mariadb/support-files<br />
[root@yongbok ~]# cp my-huge.cnf /etc/my.cnf</p></blockquote>
<p>&nbsp;</p>
<p>- 주요 명령어 등록</p>
<blockquote><p>[root@yongbok ~]# ln -s /usr/local/mariadb/bin/mysql /usr/local/bin/mysql<br />
[root@yongbok ~]# ln -s /usr/local/mariadb/bin/mysqladmin /usr/local/bin/mysqladmin<br />
[root@yongbok ~]# ln -s /usr/local/mariadb/bin/mysqldump /usr/local/bin/mysqldump</p></blockquote>
<p>&nbsp;</p>
<p><strong>4. MariaDB 실행</strong></p>
<blockquote><p>[root@yongbok ~]# /etc/init.d/mysqld start<br />
Starting MySQL<br />
…</p></blockquote>
<p>&nbsp;</p>
<p>- Root password 설정</p>
<blockquote><p>[root@yongbok ~]# mysqladmin -u root password ‘new-password’</p></blockquote>
<p>&nbsp;</p>
<p>Thanks <img alt=":D" src="http://www.yongbok.net/blog/wp-includes/images/smilies/icon_biggrin.gif" /></p>
<img src="http://feeds.feedburner.com/~r/ruo91/~4/jlRA6g3BO6I" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.yongbok.net/blog/how-to-install-mariadb-source-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.yongbok.net/blog/how-to-install-mariadb-source-on-linux/</feedburner:origLink></item>
		<item>
		<title>How to hide the server name on nginx</title>
		<link>http://feedproxy.google.com/~r/ruo91/~3/voBhpUKOsZ0/</link>
		<comments>http://www.yongbok.net/blog/nginx-hide-server-name/#comments</comments>
		<pubDate>Tue, 22 Jan 2013 21:36:00 +0000</pubDate>
		<dc:creator>ruo91</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[nginx hide server name]]></category>

		<guid isPermaLink="false">http://www.yongbok.net/blog/?p=678</guid>
		<description><![CDATA[nginx 웹서버의 서버 이름을 다른 것으로 변경하는 방법입니다. (tested : nginx 1.2.6 stable) 1. src/core/nginx.h 수정 NGINX_VER 부분을 적절하게 수정합니다. #define NGINX_VER &#8220;nginx/&#8221; NGINX_VERSION &#160; ex) Unknown으로 설정한 경우 #define NGINX_VER &#8220;Unknown&#8221; &#160; 2. src/http/ngx_http_header_filter_module.c 수정 헤더에서 보여지는 부분입니다. 49 ~ 50 라인을 적절하게 수정합니다. static char ngx_http_server_string[] = &#8220;Server: nginx&#8221; CRLF; static char ngx_http_server_full_string[] [...]]]></description>
				<content:encoded><![CDATA[<div id="!Share" socials="Facebook,Twitter,Google,Digg,Tumblr,Linkedin,Blogger" shareID="6ad064f6c56b1a2516af0831fbd0fc46" layout="nice_left" color="#fefefe" width="50" position="center" icons="" showat="" textcolor="#000000" counter="yes" offleft="40" ></div><p>nginx 웹서버의 서버 이름을 다른 것으로 변경하는 방법입니다.<br />
(tested : nginx 1.2.6 stable)</p>
<p><strong>1. src/core/nginx.h 수정</strong><br />
NGINX_VER 부분을 적절하게 수정합니다.</p>
<blockquote><p>#define NGINX_VER &#8220;nginx/&#8221; NGINX_VERSION</p></blockquote>
<p>&nbsp;</p>
<p>ex) Unknown으로 설정한 경우</p>
<blockquote><p>#define NGINX_VER &#8220;Unknown&#8221;</p></blockquote>
<p>&nbsp;</p>
<p><strong>2. src/http/ngx_http_header_filter_module.c 수정</strong><br />
헤더에서 보여지는 부분입니다. 49 ~ 50 라인을 적절하게 수정합니다.</p>
<blockquote><p>static char ngx_http_server_string[] = &#8220;Server: nginx&#8221; CRLF;<br />
static char ngx_http_server_full_string[] = &#8220;Server: &#8221; NGINX_VER CRLF;</p></blockquote>
<p>&nbsp;</p>
<p>ex) Unknown으로 설정한 경우</p>
<blockquote><p>static char ngx_http_server_string[] = &#8220;Server: Unknown&#8221; CRLF;<br />
static char ngx_http_server_full_string[] = &#8220;Server: &#8221; CRLF;</p></blockquote>
<p>&nbsp;</p>
<p><strong>3. src/http/ngx_http_special_response.c 수정</strong><br />
http status code에 따라 나타나는 페이지입니다.</p>
<p>21 ~ 32 라인을 적절하게 수정합니다.<br />
static u_char ngx_http_error_full_tail[]의 NGINX_VER 부분과<br />
static u_char ngx_http_error_tail[]의 nginx 부분을 수정합니다.</p>
<img src="http://feeds.feedburner.com/~r/ruo91/~4/voBhpUKOsZ0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.yongbok.net/blog/nginx-hide-server-name/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.yongbok.net/blog/nginx-hide-server-name/</feedburner:origLink></item>
		<item>
		<title>FreeBSD – Change release name</title>
		<link>http://feedproxy.google.com/~r/ruo91/~3/nSz5UnrKveU/</link>
		<comments>http://www.yongbok.net/blog/freebsd-change-release-name/#comments</comments>
		<pubDate>Wed, 21 Nov 2012 07:24:09 +0000</pubDate>
		<dc:creator>ruo91</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[FreeBSD change release name]]></category>
		<category><![CDATA[FreeBSD release name]]></category>
		<category><![CDATA[FreeBSD uname]]></category>
		<category><![CDATA[newvers.sh]]></category>
		<category><![CDATA[uname]]></category>

		<guid isPermaLink="false">http://www.yongbok.net/blog/?p=664</guid>
		<description><![CDATA[FreeBSD의 release 이름을 변경 하는 방법입니다. 아래 쉘스크립트 파일에 TYPE, REVISION, BRANCH 3가지 변수 부분을 적절하게 변경 하시면 됩니다. [root@yongbok ~]# /usr/src/sys/conf/newvers.sh 그후에 커널을 rebuild 하시면 적용 됩니다. [root@yongbok ~]# cd /usr/src [root@yongbok ~]# make buildkernel KERNCONF=YONGBOK [root@yongbok ~]# make installkernel KERNCONF=YONGBOK 변경 전 [root@yongbok ~]# uname -rsi FreeBSD 9.1-PRERELEASE YONGBOK 변경 후 [root@yongbok ~]# [...]]]></description>
				<content:encoded><![CDATA[<div id="!Share" socials="Facebook,Twitter,Google,Digg,Tumblr,Linkedin,Blogger" shareID="6ad064f6c56b1a2516af0831fbd0fc46" layout="nice_left" color="#fefefe" width="50" position="center" icons="" showat="" textcolor="#000000" counter="yes" offleft="40" ></div><p>FreeBSD의 release 이름을 변경 하는 방법입니다.</p>
<p>아래 쉘스크립트 파일에 TYPE, REVISION, BRANCH 3가지 변수 부분을 적절하게 변경 하시면 됩니다.</p>
<blockquote><p>[root@yongbok ~]# /usr/src/sys/conf/newvers.sh</p></blockquote>
<p>그후에 커널을 rebuild 하시면 적용 됩니다.</p>
<blockquote><p>[root@yongbok ~]# cd /usr/src<br />
[root@yongbok ~]# make buildkernel KERNCONF=YONGBOK<br />
[root@yongbok ~]# make installkernel KERNCONF=YONGBOK</p></blockquote>
<p>변경 전</p>
<blockquote><p>[root@yongbok ~]# uname -rsi<br />
FreeBSD 9.1-PRERELEASE YONGBOK</p></blockquote>
<p>변경 후</p>
<blockquote><p>[root@yongbok ~]# uname -rsi<br />
KYB-BSD by-ruo91 YONGBOK</p></blockquote>
<p>Link<br />
<a href="http://forums.freebsd.org/showthread.php?t=6576#3" target="_blank">http://forums.freebsd.org/showthread.php?t=6576#3</a></p>
<img src="http://feeds.feedburner.com/~r/ruo91/~4/nSz5UnrKveU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.yongbok.net/blog/freebsd-change-release-name/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.yongbok.net/blog/freebsd-change-release-name/</feedburner:origLink></item>
		<item>
		<title>How to install nginx for windows</title>
		<link>http://feedproxy.google.com/~r/ruo91/~3/q9Lnf-Ek4u4/</link>
		<comments>http://www.yongbok.net/blog/how-to-install-nginx-for-windows/#comments</comments>
		<pubDate>Wed, 31 Oct 2012 15:41:10 +0000</pubDate>
		<dc:creator>ruo91</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[nginx 윈도우 서비스 등록]]></category>
		<category><![CDATA[windows nginx]]></category>
		<category><![CDATA[windows nginx services add]]></category>

		<guid isPermaLink="false">http://www.yongbok.net/blog/?p=641</guid>
		<description><![CDATA[MS Windows에서 Nginx를 설치하는 방법입니다. 1. Nginx 다운로드 Stable 버전을 다운로드 합니다. http://nginx.org/en/download.html 2. Nginx 압축풀기 적당한 곳에 압축을 풀어줍니다. 설치는 이것이 끝입니다. ex) C:\Program Files\nginx 3. 서비스 등록 이제 시스템이 재시작 되어도 자동으로 nginx가 실행 되도록 서비스에 등록 해줍니다. (Lloyd Kinsella(?)님에게 감사의 표시를 전합니다.) nginx-svc-bin.zip를 다운로드 합니다. Nginx가 설치된 곳에 파일을 위치 시켜줍니다. 그후 [...]]]></description>
				<content:encoded><![CDATA[<div id="!Share" socials="Facebook,Twitter,Google,Digg,Tumblr,Linkedin,Blogger" shareID="6ad064f6c56b1a2516af0831fbd0fc46" layout="nice_left" color="#fefefe" width="50" position="center" icons="" showat="" textcolor="#000000" counter="yes" offleft="40" ></div><p>MS Windows에서 Nginx를 설치하는 방법입니다.</p>
<p><strong>1. Nginx 다운로드</strong><br />
Stable 버전을 다운로드 합니다.<br />
<a title="nginx download page" href="http://nginx.org/en/download.html" target="_blank">http://nginx.org/en/download.html</a></p>
<p><strong>2. Nginx 압축풀기</strong><br />
적당한 곳에 압축을 풀어줍니다. 설치는 이것이 끝입니다.<br />
ex) C:\Program Files\nginx</p>
<p><strong>3. 서비스 등록</strong><br />
이제 시스템이 재시작 되어도 자동으로 nginx가 실행 되도록 서비스에 등록 해줍니다. (<a href="http://www.lloydkinsella.net/2011/11/14/nginx-service-for-windows/" target="_blank">Lloyd Kinsella</a>(?)님에게 감사의 표시를 전합니다.)<br />
<a href="http://mirror.yongbok.net/ruo91/nginx/windows/nginx-svc-bin.zip" target="_blank">nginx-svc-bin.zip</a>를 다운로드 합니다.<br />
Nginx가 설치된 곳에 파일을 위치 시켜줍니다.</p>
<p>그후 nginxsvc.exe.config를 편집기로 열어 nginxPath 부분을 Nginx가 위치한 곳으로 변경 합니다.<br />
&lt;?xml version=&#8221;1.0&#8243;?&gt;<br />
&lt;configuration&gt;<br />
&lt;appSettings&gt;<br />
&lt;add key=&#8221;nginxPath&#8221; value=&#8221;<strong>C:\Program Files\nginx</strong>&#8220;/&gt;<br />
&lt;add key=&#8221;gracefulQuit&#8221; value=&#8221;false&#8221;/&gt;<br />
&lt;add key=&#8221;forceStop&#8221; value=&#8221;true&#8221;/&gt;<br />
&lt;/appSettings&gt;<br />
&lt;/configuration&gt;</p>
<p>윈도우 키 + R을 눌러 실행창이 뜨면 cmd.exe를 합니다.<br />
명령프롬프트 창이 뜨면 nginx가 설치된 위치로 이동합니다.</p>
<blockquote><p>Microsoft Windows [Version 6.1.7600]<br />
Copyright (c) 2009 Microsoft Corporation. All rights reserved.<br />
C:\Users\ruo91&gt;<strong>cd c:\Program Files\nginx</strong></p></blockquote>
<p>&nbsp;</p>
<p>Nginx 서비스를 등록 합니다.</p>
<blockquote><p>c:\Program Files\nginx&gt;<strong>nginxsvc.exe /install /silent</strong></p></blockquote>
<p>&nbsp;</p>
<p>서비스가 정상 등록 되었는지 확인합니다.</p>
<blockquote><p>c:\Program Files\nginx&gt;<strong>sc query nginx</strong><br />
SERVICE_NAME: nginx<br />
종류               : 10  WIN32_OWN_PROCESS<br />
상태              : 1  STOPPED<br />
WIN32_EXIT_CODE    : 1077  (0&#215;435)<br />
SERVICE_EXIT_CODE  : 0  (0&#215;0)<br />
검사점         : 0&#215;0<br />
WAIT_HINT          : 0&#215;0</p></blockquote>
<p>&nbsp;</p>
<p>해당 서비스를 시작합니다.</p>
<blockquote><p>c:\Program Files\nginx&gt;<strong>sc start nginx</strong><br />
SERVICE_NAME: nginx<br />
종류               : 10  WIN32_OWN_PROCESS<br />
상태               : 2  START_PENDING<br />
(NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)<br />
WIN32_EXIT_CODE    : 0  (0&#215;0)<br />
SERVICE_EXIT_CODE  : 0  (0&#215;0)<br />
검사점             : 0&#215;0<br />
WAIT_HINT          : 0x7d0<br />
PID                : 3020<br />
플래그             :</p></blockquote>
<p>&nbsp;</p>
<p>nginx.exe 프로세스가 실행 되었는지 확인 하시면 됩니다.</p>
<blockquote><p>c:\Program Files\nginx&gt;<strong>tasklist /FI &#8220;IMAGENAME eq nginx*&#8221;</strong><br />
이미지 이름                    PID 세션 이름              세션#  메모리 사용<br />
========================= ======== ================ =========== ============<br />
nginxsvc.exe                  3020 Services                   0     17,968 K<br />
nginx.exe                     3116 Services                   0      4,728 K<br />
nginx.exe                     2552 Services                   0      5,068 K</p></blockquote>
<img src="http://feeds.feedburner.com/~r/ruo91/~4/q9Lnf-Ek4u4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.yongbok.net/blog/how-to-install-nginx-for-windows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.yongbok.net/blog/how-to-install-nginx-for-windows/</feedburner:origLink></item>
	</channel>
</rss>
