<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>GOODAY &gt; board &gt; note</title>
<link>http://rabbit129.cafe24.com/bbs/board.php?bo_table=note</link>
<description>테스트 버전 0.2 (2004-04-26)</description>
<language>ko</language>
<item>
<title>서버정보 안보이게 하기</title>
<link>http://rabbit129.cafe24.com/bbs/board.php?bo_table=note&amp;wr_id=220</link>
<description><![CDATA[<h2 style="border: 0px; font-family: " open="" sans",="" arial,="" helvetica,="" sans-serif;="" margin:="" 0px="" 10px;="" outline:="" 0px;="" padding:="" vertical-align:="" baseline;="" clear:="" n&#111;&#110;e;="" line-height:="" 1.2em;="" color:="" rgb(68,="" 68,="" 68);="" background-color:="" rgb(255,="" 255,="" 255);"="">Disable Apache Web Server Signature</h2><p style="border: 0px; font-family: Arial, Helvetica, sans-serif; font-size: 15.3px; margin: 0px 0px 0.9em; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(68, 68, 68); background-color: rgb(255, 255, 255);">Disabling Apache web server signature can be achieved by editing Apache config file.</p><p style="border: 0px; font-family: Arial, Helvetica, sans-serif; font-size: 15.3px; margin: 0px 0px 0.9em; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(68, 68, 68); background-color: rgb(255, 255, 255);">On Debian, Ubuntu or Linux Mint:</p><div class="console" style="border: 0px none; font-family: monospace; font-size: 13px; margin: 0px 0px 10px; outline: 0px; padding: 5px; vertical-align: baseline; color: rgb(255, 255, 255); background: rgb(0, 153, 204); overflow: auto; white-space: nowrap;">$ sudo vi /etc/apache2/apache2.conf</div><p style="border: 0px; font-family: Arial, Helvetica, sans-serif; font-size: 15.3px; margin: 0px 0px 0.9em; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(68, 68, 68); background-color: rgb(255, 255, 255);">On CentOS, Fedora, RHEL or Arch Linux:</p><div class="console" style="border: 0px none; font-family: monospace; font-size: 13px; margin: 0px 0px 10px; outline: 0px; padding: 5px; vertical-align: baseline; color: rgb(255, 255, 255); background: rgb(0, 153, 204); overflow: auto; white-space: nowrap;">$ sudo vi /etc/httpd/conf/httpd.conf</div><p style="border: 0px; font-family: Arial, Helvetica, sans-serif; font-size: 15.3px; margin: 0px 0px 0.9em; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(68, 68, 68); background-color: rgb(255, 255, 255);">Add the following two lines at the end of Apache config file.</p><div style="border: 0px; font-family: Arial, Helvetica, sans-serif; font-size: 15.3px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(68, 68, 68); background-color: rgb(255, 255, 255);"><div id="highlighter_962532" class="syntaxhighlighter  bash" style="border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; outline: 0px; padding: 0px; vertical-align: baseline; width: 731px; font-size: 1em !important; margin: 1em 0px !important; position: relative !important; overflow: auto hidden !important;"><table border="0" cellpadding="0" cellspacing="0" style="border-spacing: 0px; width: 731px; border: 0px !important; font-family: Monaco, Consolas, " bitstream="" vera="" sans="" m&#111;&#110;o",="" "courier="" new",="" courier,="" m&#111;&#110;ospace="" !important;="" font-size:="" 1em="" margin:="" 0px="" outline:="" padding:="" vertical-align:="" baseline="" border-radius:="" background:="" n&#111;&#110;e="" bottom:="" auto="" float:="" height:="" left:="" line-height:="" 1.1em="" overflow:="" visible="" position:="" static="" right:="" top:="" box-sizing:="" content-box="" direction:="" ltr="" box-shadow:="" table-layout:="" !important;"=""><tbody style="border: 0px !important; font-size: 1em !important; margin: 0px !important; outline: 0px !important; padding: 0px !important; vertical-align: baseline !important; border-radius: 0px !important; background: none !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; width: auto !important; box-sizing: content-box !important; direction: ltr !important; box-shadow: none !important;"><tr style="border: 0px !important; font-size: 1em !important; margin: 0px !important; outline: 0px !important; padding: 0px !important; vertical-align: baseline !important; border-radius: 0px !important; background: none !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; width: auto !important; box-sizing: content-box !important; direction: ltr !important; box-shadow: none !important;"><td class="gutter" style="border: 0px !important; font-size: 1em !important; margin: 0px !important; outline: 0px !important; padding: 0px !important; vertical-align: baseline !important; border-radius: 0px !important; background: none !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; width: auto !important; box-sizing: content-box !important; direction: ltr !important; box-shadow: none !important; color: rgb(175, 175, 175) !important;"><div class="line number1 index0 alt2" style="border-width: 0px 3px 0px 0px !important; border-top-style: initial !important; border-right-style: solid !important; border-bottom-style: initial !important; border-left-style: initial !important; border-top-color: initial !important; border-right-color: rgb(108, 226, 108) !important; border-bottom-color: initial !important; border-left-color: initial !important; border-image: initial !important; font-size: 1em !important; margin: 0px !important; outline: 0px !important; padding: 0px 0.5em 0px 1em !important; vertical-align: baseline !important; border-radius: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; overflow: visible !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; width: auto !important; box-sizing: content-box !important; direction: ltr !important; box-shadow: none !important; white-space: pre !important;">1</div><div class="line number2 index1 alt1" style="border-width: 0px 3px 0px 0px !important; border-top-style: initial !important; border-right-style: solid !important; border-bottom-style: initial !important; border-left-style: initial !important; border-top-color: initial !important; border-right-color: rgb(108, 226, 108) !important; border-bottom-color: initial !important; border-left-color: initial !important; border-image: initial !important; font-size: 1em !important; margin: 0px !important; outline: 0px !important; padding: 0px 0.5em 0px 1em !important; vertical-align: baseline !important; border-radius: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; overflow: visible !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; width: auto !important; box-sizing: content-box !important; direction: ltr !important; box-shadow: none !important; white-space: pre !important;">2</div></td><td class="code" style="width: 696px; border: 0px !important; font-size: 1em !important; margin: 0px !important; outline: 0px !important; padding: 0px !important; vertical-align: baseline !important; border-radius: 0px !important; background: none !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; box-sizing: content-box !important; direction: ltr !important; box-shadow: none !important;"><div class="container" style="border: 0px !important; font-size: 1em !important; margin: 0px !important; outline: 0px !important; padding: 0px !important; vertical-align: baseline !important; border-radius: 0px !important; background: none !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; overflow: visible !important; position: relative !important; right: auto !important; top: auto !important; width: auto !important; box-sizing: content-box !important; direction: ltr !important; box-shadow: none !important;"><div class="line number1 index0 alt2" style="border: 0px !important; font-size: 1em !important; margin: 0px !important; outline: 0px !important; padding: 0px 1em !important; vertical-align: baseline !important; border-radius: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; width: auto !important; box-sizing: content-box !important; direction: ltr !important; box-shadow: none !important; white-space: pre !important;"><code class="bash plain" style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; border: 0px !important; font-family: Monaco, Consolas, " bitstream="" vera="" sans="" m&#111;&#110;o",="" "courier="" new",="" courier,="" m&#111;&#110;ospace="" !important;="" font-size:="" 1em="" margin:="" 0px="" outline:="" padding:="" vertical-align:="" baseline="" line-height:="" 1.1em="" border-radius:="" background:="" n&#111;&#110;e="" bottom:="" auto="" float:="" height:="" left:="" overflow:="" visible="" position:="" static="" right:="" top:="" width:="" box-sizing:="" content-box="" direction:="" ltr="" box-shadow:="" display:="" inline="" !important;"="">ServerSignature Off</code></div><div class="line number2 index1 alt1" style="border: 0px !important; font-size: 1em !important; margin: 0px !important; outline: 0px !important; padding: 0px 1em !important; vertical-align: baseline !important; border-radius: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; width: auto !important; box-sizing: content-box !important; direction: ltr !important; box-shadow: none !important; white-space: pre !important;"><code class="bash plain" style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; border: 0px !important; font-family: Monaco, Consolas, " bitstream="" vera="" sans="" m&#111;&#110;o",="" "courier="" new",="" courier,="" m&#111;&#110;ospace="" !important;="" font-size:="" 1em="" margin:="" 0px="" outline:="" padding:="" vertical-align:="" baseline="" line-height:="" 1.1em="" border-radius:="" background:="" n&#111;&#110;e="" bottom:="" auto="" float:="" height:="" left:="" overflow:="" visible="" position:="" static="" right:="" top:="" width:="" box-sizing:="" content-box="" direction:="" ltr="" box-shadow:="" display:="" inline="" !important;"="">ServerTokens Prod</code></div></div></td></tr></tbody></table></div></div><p style="border: 0px; font-family: Arial, Helvetica, sans-serif; font-size: 15.3px; margin: 0px 0px 0.9em; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(68, 68, 68); background-color: rgb(255, 255, 255);">Then restart web server to activate the change:</p><div class="console" style="border: 0px none; font-family: monospace; font-size: 13px; margin: 0px 0px 10px; outline: 0px; padding: 5px; vertical-align: baseline; color: rgb(255, 255, 255); background: rgb(0, 153, 204); overflow: auto; white-space: nowrap;">$ sudo service apache2 restart (Debian, Ubuntu or Linux Mint)<br>$ sudo service httpd restart (CentOS/RHEL 6)<br>$ sudo systemctl restart httpd.service (Fedora, CentOS/RHEL 7, Arch Linux)</div><div style="border: 0px; font-family: Arial, Helvetica, sans-serif; font-size: 15.3px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(68, 68, 68); background-color: rgb(255, 255, 255);"></div><div>
<span style="color: rgb(0, 0, 200);"><br></span><span style="color: rgb(0, 0, 200);"><br></span><h2 style="border: 0px; font-family: &quot;Open Sans&quot;, Arial, Helvetica, sans-serif; margin: 0px 0px 10px; outline: 0px; padding: 0px; vertical-align: baseline; clear: none; line-height: 1.2em; color: rgb(68, 68, 68); background-color: rgb(255, 255, 255);">Hide PHP Version</h2></div><div><span style="color: rgb(0, 0, 200);"><br></span></div><div><p style="border: 0px; font-family: Arial, Helvetica, sans-serif; font-size: 15.3px; margin: 0px 0px 0.9em; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(68, 68, 68); background-color: rgb(255, 255, 255);">On Debian, Ubuntu, or Linux Mint:</p><div class="console" style="border: 0px none; font-family: monospace; font-size: 13px; margin: 0px 0px 10px; outline: 0px; padding: 5px; vertical-align: baseline; color: rgb(255, 255, 255); background: rgb(0, 153, 204); overflow: auto; white-space: nowrap;">$ sudo vi /etc/php5/apache2/php.ini</div><p style="border: 0px; font-family: Arial, Helvetica, sans-serif; font-size: 15.3px; margin: 0px 0px 0.9em; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(68, 68, 68); background-color: rgb(255, 255, 255);">On CentOS, Fedora, RHEL or Arch Linux:</p><div class="console" style="border: 0px none; font-family: monospace; font-size: 13px; margin: 0px 0px 10px; outline: 0px; padding: 5px; vertical-align: baseline; color: rgb(255, 255, 255); background: rgb(0, 153, 204); overflow: auto; white-space: nowrap;">$ sudo vi /etc/php.ini</div><div style="border: 0px; font-family: Arial, Helvetica, sans-serif; font-size: 15.3px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(68, 68, 68); background-color: rgb(255, 255, 255);"><div id="highlighter_240999" class="syntaxhighlighter  bash" style="border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; outline: 0px; padding: 0px; vertical-align: baseline; width: 731px; font-size: 1em !important; margin: 1em 0px !important; position: relative !important; overflow: auto hidden !important;"><table border="0" cellpadding="0" cellspacing="0" style="border-spacing: 0px; width: 731px; border: 0px !important; font-family: Monaco, Consolas, &quot;Bitstream Vera Sans Mono&quot;, &quot;Courier New&quot;, Courier, monospace !important; font-size: 1em !important; margin: 0px !important; outline: 0px !important; padding: 0px !important; vertical-align: baseline !important; border-radius: 0px !important; background: none !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; box-sizing: content-box !important; direction: ltr !important; box-shadow: none !important; table-layout: auto !important;"><tbody style="border: 0px !important; font-size: 1em !important; margin: 0px !important; outline: 0px !important; padding: 0px !important; vertical-align: baseline !important; border-radius: 0px !important; background: none !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; width: auto !important; box-sizing: content-box !important; direction: ltr !important; box-shadow: none !important;"><tr style="border: 0px !important; font-size: 1em !important; margin: 0px !important; outline: 0px !important; padding: 0px !important; vertical-align: baseline !important; border-radius: 0px !important; background: none !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; width: auto !important; box-sizing: content-box !important; direction: ltr !important; box-shadow: none !important;"><td class="gutter" style="border: 0px !important; font-size: 1em !important; margin: 0px !important; outline: 0px !important; padding: 0px !important; vertical-align: baseline !important; border-radius: 0px !important; background: none !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; width: auto !important; box-sizing: content-box !important; direction: ltr !important; box-shadow: none !important; color: rgb(175, 175, 175) !important;"><div class="line number1 index0 alt2" style="border-width: 0px 3px 0px 0px !important; border-top-style: initial !important; border-right-style: solid !important; border-bottom-style: initial !important; border-left-style: initial !important; border-top-color: initial !important; border-right-color: rgb(108, 226, 108) !important; border-bottom-color: initial !important; border-left-color: initial !important; border-image: initial !important; font-size: 1em !important; margin: 0px !important; outline: 0px !important; padding: 0px 0.5em 0px 1em !important; vertical-align: baseline !important; border-radius: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; overflow: visible !important; position: static !important; right: auto !important; text-align: right !important; top: auto !important; width: auto !important; box-sizing: content-box !important; direction: ltr !important; box-shadow: none !important; white-space: pre !important;">1</div></td><td class="code" style="width: 696px; border: 0px !important; font-size: 1em !important; margin: 0px !important; outline: 0px !important; padding: 0px !important; vertical-align: baseline !important; border-radius: 0px !important; background: none !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; box-sizing: content-box !important; direction: ltr !important; box-shadow: none !important;"><div class="container" style="border: 0px !important; font-size: 1em !important; margin: 0px !important; outline: 0px !important; padding: 0px !important; vertical-align: baseline !important; border-radius: 0px !important; background: none !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; overflow: visible !important; position: relative !important; right: auto !important; top: auto !important; width: auto !important; box-sizing: content-box !important; direction: ltr !important; box-shadow: none !important;"><div class="line number1 index0 alt2" style="border: 0px !important; font-size: 1em !important; margin: 0px !important; outline: 0px !important; padding: 0px 1em !important; vertical-align: baseline !important; border-radius: 0px !important; background-image: none !important; background-position: initial !important; background-size: initial !important; background-repeat: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; line-height: 1.1em !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; width: auto !important; box-sizing: content-box !important; direction: ltr !important; box-shadow: none !important; white-space: pre !important;"><code class="bash plain" style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; border: 0px !important; font-family: Monaco, Consolas, &quot;Bitstream Vera Sans Mono&quot;, &quot;Courier New&quot;, Courier, monospace !important; font-size: 1em !important; margin: 0px !important; outline: 0px !important; padding: 0px !important; vertical-align: baseline !important; line-height: 1.1em !important; border-radius: 0px !important; background: none !important; bottom: auto !important; float: none !important; height: auto !important; left: auto !important; overflow: visible !important; position: static !important; right: auto !important; top: auto !important; width: auto !important; box-sizing: content-box !important; direction: ltr !important; box-shadow: none !important; display: inline !important;">expose_php = Off</code></div></div></td></tr></tbody></table></div></div><span style="color: rgb(0, 0, 200);"><br></span><span style="color: rgb(0, 0, 200);"><br></span><span style="color: rgb(0, 0, 200);"><br></span></div>]]></description>
<dc:creator>기리</dc:creator>
<dc:date>Wed, 17 Jul 2019 23:23:38 +0900</dc:date>
</item>
<item>
<title>Redis and phpredis</title>
<link>http://rabbit129.cafe24.com/bbs/board.php?bo_table=note&amp;wr_id=217</link>
<description><![CDATA[<div>1. Redis 설치</div><div><span style="font-family: gulim; font-size: 12px;">* 설치</span></div><div style=""><span style="font-family: gulim; font-size: 12px;">apt-get update</span></div><div style=""><span style="font-family: gulim; font-size: 12px;">apt-get install redis-server</span></div><div style=""><span style="font-family: gulim; font-size: 12px;"><br></span></div><div style=""><span style="font-family: gulim; font-size: 12px;">* 서비스 시작</span></div><div style=""><span style="font-family: gulim; font-size: 12px;">/etc/init.d/redis-server start</span></div><div style=""><span style="font-family: gulim; font-size: 12px;"><br></span></div><div style=""><span style="font-family: gulim; font-size: 12px;">* 접속 확인</span></div><div style=""><span style="font-family: gulim; font-size: 12px;">redis-cli</span></div><div style=""><span style="font-family: gulim; font-size: 12px;"><br></span></div><div style=""><span style="font-family: gulim; font-size: 12px;"><br></span></div><div style=""><span style="font-family: gulim; font-size: 12px;">2. Redis 와 PHP 연동(phpredis)</span></div><div style=""><span style="font-family: gulim; font-size: 12px;">* 필요 라이브러리 설치</span></div><div style=""><span style="font-family: gulim; font-size: 12px;">apt-get install php5-dev</span></div><div style=""><span style="font-family: gulim; font-size: 12px;"><br></span></div><div style=""><span style="font-family: gulim; font-size: 12px;">* 설치</span></div><div style=""><span style="font-family: gulim; font-size: 12px;">git clone git://github.com/nicolasff/phpredis.git</span></div><div style=""><span style="font-family: gulim; font-size: 12px;">cd phpredis</span></div><div style=""><span style="font-family: gulim; font-size: 12px;">phpize</span></div><div style=""><span style="font-family: gulim; font-size: 12px;">./configure</span></div><div style=""><span style="font-family: gulim; font-size: 12px;">make</span></div><div style=""><span style="font-family: gulim; font-size: 12px;">sudo -s make install</span></div><div style=""><span style="font-family: gulim; font-size: 12px;"><br></span></div><div style=""><span style="font-family: gulim; font-size: 12px;">* 환경 설정</span></div><div style=""><span style="font-family: gulim; font-size: 12px;">extension=redis.so</span></div><div style=""><span style="font-family: gulim; font-size: 12px;"><br></span></div><div style=""><span style="font-family: gulim; font-size: 12px;">* apache restart</span></div><div style=""><span style="font-family: gulim; font-size: 12px;"><br></span></div><div style=""><span style="font-family: gulim; font-size: 12px;"><br></span></div><div style=""><span style="font-family: gulim; font-size: 12px;">3. 비밀번호 설정</span></div><div style=""><span style="font-family: gulim; font-size: 12px;">* redis-cli</span></div><div style=""><span style="font-family: gulim; font-size: 12px;">- 설정</span></div><div style=""><span style="font-family: gulim; font-size: 12px;">127.0.0.1:6379&gt;CONFIG set requirepass "password"</span></div><div style=""><span style="font-family: gulim; font-size: 12px;">- 확인</span></div><div style=""><span style="font-family: gulim; font-size: 12px;">127.0.0.1:6379&gt;CONFIG get requirepass</span></div><div style=""><span style="font-family: gulim; font-size: 12px;">127.0.0.1:6379&gt;AUTH "password"</span></div><div style=""><span style="font-family: gulim; font-size: 12px;"><br></span></div><div style=""><span style="font-family: gulim; font-size: 12px;"><br></span></div><div style=""><span style="font-family: gulim; font-size: 12px;">4. PHP 사용</span></div><div style=""><span style="font-family: gulim; font-size: 12px;">$redisObj = new Redis();</span></div><div style=""><span style="font-family: gulim; font-size: 12px;">$redisObj-&gt;connect('127.0.0.1','6379');</span></div><div style=""><span style="font-family: gulim; font-size: 12px;">$redisObj-&gt;auth('password');</span></div><div style=""><br></div>]]></description>
<dc:creator>기리</dc:creator>
<dc:date>Sat, 26 Jan 2019 17:15:29 +0900</dc:date>
</item>
<item>
<title>Coin 거래소</title>
<link>http://rabbit129.cafe24.com/bbs/board.php?bo_table=note&amp;wr_id=216</link>
<description><![CDATA[<p><a href="https://github.com/viabtc/viabtc_exchange_server" target="_blank">https://github.com/viabtc/viabtc_exchange_server</a></p><p><br></p><p><a href="https://velopert.com/3465" target="_blank">https://velopert.com/3465</a></p><p><br></p><p><a href="https://steemit.com/kr/@seongtae/with-silverstring-exchange" target="_blank">https://steemit.com/kr/@seongtae/with-silverstring-exchange</a></p><p><br></p><p><br></p>]]></description>
<dc:creator>기리</dc:creator>
<dc:date>Tue, 01 Jan 2019 01:02:37 +0900</dc:date>
</item>
<item>
<title>ReactJS</title>
<link>http://rabbit129.cafe24.com/bbs/board.php?bo_table=note&amp;wr_id=215</link>
<description><![CDATA[<p><a href="https://velopert.com/reactjs-tutorials" target="_blank">https://velopert.com/reactjs-tutorials</a></p><p><a href="https://www.youtube.com/watch?v=fT9iFFAt60E&amp;feature=youtu.be&amp;list=PL9FpF_z-xR_E4rxYMMZx5cOpwaiwCzWUH" target="_blank">https://www.youtube.com/watch?v=fT9iFFAt60E&amp;feature=youtu.be&amp;list=PL9FpF_z-xR_E4rxYMMZx5cOpwaiwCzWUH</a></p>]]></description>
<dc:creator>기리</dc:creator>
<dc:date>Tue, 01 Jan 2019 00:17:58 +0900</dc:date>
</item>
<item>
<title>출력되는 글자의 줄 수를 CSS를 사용하여 표시</title>
<link>http://rabbit129.cafe24.com/bbs/board.php?bo_table=note&amp;wr_id=213</link>
<description><![CDATA[<span style="font-family: gulim; font-size: 9pt;">[HTML]</span><div style="font-family: gulim; font-size: 9pt;"><br></div><div><div><span style="font-family: gulim; font-size: 12px;">&lt;div class="text ellipsis"&gt;</span></div><div style=""><span style="font-family: gulim; font-size: 12px;">&nbsp; &lt;span class="text-concat"&gt;</span></div><div style=""><span style="font-family: gulim; font-size: 12px;">Lorem ipsum dolor sit amet, nibh eleifend cu his, porro fugit mandamus no mea. Sit tale facete voluptatum ea, ad sumo altera &#115;&#99;ripta per, eius ullum feugait id duo. At nominavi pericula persecuti ius, sea at sonet tincidunt, cu posse facilisis eos. Aliquid philosophia contentiones id eos, per cu atqui option disputationi, no vis nobis vidisse. Eu has mentitum conclusionemque, primis deterruisset est in.</span></div><div style=""><span style="font-family: gulim; font-size: 12px;"><br></span></div><div style=""><span style="font-family: gulim; font-size: 12px;">Virtute feugait ei vim. Commune honestatis accommodare pri ex. Ut est civibus accusam, pro principes conceptam ei, et duo case veniam. Partiendo concludaturque at duo. Ei eirmod verear consequuntur pri. Esse malis facilisis ex vix, cu hinc suavitate &#115;&#99;riptorem pri.</span></div><div style=""><span style="font-family: gulim; font-size: 12px;">&nbsp; &lt;/span&gt;</span></div><div style=""><span style="font-family: gulim; font-size: 12px;">&lt;/div&gt;</span></div><div style=""><span style="font-family: gulim; font-size: 12px;"><br></span></div><div style=""><span style="font-family: gulim; font-size: 12px;">[CSS]</span></div><div style=""><div style=""><span style="font-family: gulim; font-size: 12px;">.text {</span></div><div style=""><span style="font-family: gulim; font-size: 12px;">&nbsp; position: relative;</span></div><div style=""><span style="font-family: gulim; font-size: 12px;">&nbsp; font-size: 14px;</span></div><div style=""><span style="font-family: gulim; font-size: 12px;">&nbsp; color: black;</span></div><div style=""><span style="font-family: gulim; font-size: 12px;">&nbsp; font-family: sans-serif;</span></div><div style=""><span style="font-family: gulim; font-size: 12px;">&nbsp; width: 200px; /* Could be anything you like. */</span></div><div style=""><span style="font-family: gulim; font-size: 12px;">}</span></div><div style=""><span style="font-family: gulim; font-size: 12px;"><br></span></div><div style=""><span style="font-family: gulim; font-size: 12px;">.text-concat {</span></div><div style=""><span style="font-family: gulim; font-size: 12px;">&nbsp; position: relative;</span></div><div style=""><span style="font-family: gulim; font-size: 12px;">&nbsp; display: inline-block;</span></div><div style=""><span style="font-family: gulim; font-size: 12px;">&nbsp; word-wrap: break-word;</span></div><div style=""><span style="font-family: gulim; font-size: 12px;">&nbsp; overflow: hidden;</span></div><div style=""><span style="font-family: gulim; font-size: 12px;">&nbsp; max-height: 3.6em; /* (Number of lines you want visible) * (line-height) */</span></div><div style=""><span style="font-family: gulim; font-size: 12px;">&nbsp; line-height: 1.2em;</span></div><div style=""><span style="font-family: gulim; font-size: 12px;">&nbsp; text-align:justify;</span></div><div style=""><span style="font-family: gulim; font-size: 12px;">}</span></div><div style=""><span style="font-family: gulim; font-size: 12px;"><br></span></div><div style=""><span style="font-family: gulim; font-size: 12px;">.text.ellipsis::after {</span></div><div style=""><span style="font-family: gulim; font-size: 12px;">&nbsp; content: "...";</span></div><div style=""><span style="font-family: gulim; font-size: 12px;">&nbsp; position: absolute;</span></div><div style=""><span style="font-family: gulim; font-size: 12px;">&nbsp; right: -12px;&nbsp;</span></div><div style=""><span style="font-family: gulim; font-size: 12px;">&nbsp; bottom: 5px;</span></div><div style=""><span style="font-family: gulim; font-size: 12px;">}</span></div></div></div>]]></description>
<dc:creator>기리</dc:creator>
<dc:date>Fri, 05 Oct 2018 11:39:46 +0900</dc:date>
</item>
<item>
<title>SSL 인증 의무화</title>
<link>http://rabbit129.cafe24.com/bbs/board.php?bo_table=note&amp;wr_id=211</link>
<description><![CDATA[<p>SSL 보안서버란 인터넷상에서 개인정보를 암호화하여 송수신하는<br>기능이 구축된 웹서버를 말하며, 특별한 하드웨어를 설치하는 것이 아니라<br>이미 사용하고 있는 웹서버에 인증서를 설치하여 암호통신이 가능하도록 한 것으로<br>미설치시 최대 1천만원 이하의 과태료가 부과될 수 있으니<br>개인정보를 취급하는 웹사이트를 운영하시는 고객분들께서는 설치 부탁드립니다.</p><ul><li>개인 도메인으로 변경하셨을 경우 (예 : mysite.co.kr)은 SSL 신청 후 적용하셔야 합니다.</li><li>개인정보를 취급하는 모든 웹사이트는 보안서버(SSL) 의무화 대상이며<br>최대 1천만원 이하의 과태료가 부과될 수 있습니다.</li><li>보안서버 미적용시 Google Chrome 및 안드로이드 앱에서<br>위치정보 기능을 사용할 수 없습니다.</li></ul><p><br></p><p><a href="https://www.gogetssl.com/" target="_blank">https://www.gogetssl.com/</a></p><p><a href="https://www.gogetssl.com/domain-validation/comodo-positive-ssl/" target="_blank">https://www.gogetssl.com/domain-validation/comodo-positive-ssl/</a></p><p><br></p><p>무료</p><p><a href="https://www.startssl.com/" target="_blank">https://www.startssl.com/</a></p><p><br></p><p>comodo 1년 19000원</p><p><a href="https://www.qtrustssl.com/?q=ezcert.net/st=domain" target="_blank">https://www.qtrustssl.com/?q=ezcert.net/st=domain</a></p><p><br></p>]]></description>
<dc:creator>최고관리자</dc:creator>
<dc:date>Sat, 15 Sep 2018 02:02:18 +0900</dc:date>
</item>
<item>
<title>HTTPS - SSL</title>
<link>http://rabbit129.cafe24.com/bbs/board.php?bo_table=note&amp;wr_id=210</link>
<description><![CDATA[<p>1. 설치 및 확인 </p><p>- openssl version</p><p>- Apache mod_ssl : 모듈 설치 안되어있다면 설치. yum install mod_ssl</p><p><br></p><p>2. SSL 인증서 발급</p><p>- comodo (securesign.kr)</p><p>- DNS 확인 절차 : CNAME 설정 ( xxx.domain. CNAME xxx.xxx.comodoca.com. )</p><p>- 인증서 다운로드</p><p>- 인증서 복사 </p><p>/etc/pki/tls/certs/&nbsp;&nbsp; : 인증서 파일</p><p>/etc/pki/tls/private/ : 키 파일</p><p><br></p><p>3. apache 설정</p><p>&nbsp;- http vhost 사용 시 : </p><p><span style='color: rgb(89, 88, 88); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Lato, "Nanum Gothic", "Malgun Gothic", Tahoma, sans-serif, Geneva; font-size: 13px; font-style: normal; font-weight: 400; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;'>&lt;</span><span style='color: rgb(38, 139, 210); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Lato, "Nanum Gothic", "Malgun Gothic", Tahoma, sans-serif, Geneva; font-size: 13px; font-style: normal; font-weight: 700; word-spacing: 0px; white-space: normal; box-sizing: border-box; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;'>VirtualHost</span><span style='color: rgb(89, 88, 88); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Lato, "Nanum Gothic", "Malgun Gothic", Tahoma, sans-serif, Geneva; font-size: 13px; font-style: normal; font-weight: 400; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;'><span>&nbsp;</span>*:80&gt;</span></p><p>Redirect / <a href="https://domain/" target="_blank">https://domain/</a>&nbsp; &lt;= 추가. http로 접속 시 https로 </p><p><span style='color: rgb(89, 88, 88); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Lato, "Nanum Gothic", "Malgun Gothic", Tahoma, sans-serif, Geneva; font-size: 13px; font-style: normal; font-weight: 400; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;'>&lt;/</span><span style='color: rgb(38, 139, 210); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Lato, "Nanum Gothic", "Malgun Gothic", Tahoma, sans-serif, Geneva; font-size: 13px; font-style: normal; font-weight: 700; word-spacing: 0px; white-space: normal; box-sizing: border-box; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;'>VirtualHost</span><span style='color: rgb(89, 88, 88); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Lato, "Nanum Gothic", "Malgun Gothic", Tahoma, sans-serif, Geneva; font-size: 13px; font-style: normal; font-weight: 400; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;'>&gt;</span></p><p><br></p><p>&nbsp;- /etc/httpd/conf.d/ssl.conf </p><p><span style='color: rgb(89, 88, 88); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Lato, "Nanum Gothic", "Malgun Gothic", Tahoma, sans-serif, Geneva; font-size: 13px; font-style: normal; font-weight: 400; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;'>&lt;</span><span style='color: rgb(38, 139, 210); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Lato, "Nanum Gothic", "Malgun Gothic", Tahoma, sans-serif, Geneva; font-size: 13px; font-style: normal; font-weight: 700; word-spacing: 0px; white-space: normal; box-sizing: border-box; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;'>VirtualHost</span><span style='color: rgb(89, 88, 88); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Lato, "Nanum Gothic", "Malgun Gothic", Tahoma, sans-serif, Geneva; font-size: 13px; font-style: normal; font-weight: 400; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;'><span>&nbsp;</span>*:443&gt;</span></p><div style='color: rgb(89, 88, 88); text-transform: none; text-indent: 0px; letter-spacing: normal; padding-left: 20px; font-family: Lato, "Nanum Gothic", "Malgun Gothic", Tahoma, sans-serif, Geneva; font-size: 13px; font-style: normal; font-weight: 400; word-spacing: 0px; white-space: normal; box-sizing: border-box; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;'>ServerName "발급 FQDN 매칭 필요"<span>&nbsp;</span><br style='font-family: Lato, "Nanum Gothic", "Malgun Gothic", Tahoma, sans-serif, Geneva; box-sizing: border-box;'>SSLEngine<span>&nbsp;</span><code style='padding: 2px 4px; border-radius: 4px; color: rgb(199, 37, 78); font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 11.7px; box-sizing: border-box; background-color: rgb(249, 242, 244);'>on</code><br style='font-family: Lato, "Nanum Gothic", "Malgun Gothic", Tahoma, sans-serif, Geneva; box-sizing: border-box;'>SSLCertificateKeyFile /etc/pki/tls/private/<code style='padding: 2px 4px; border-radius: 4px; color: rgb(199, 37, 78); font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 11.7px; box-sizing: border-box; background-color: rgb(249, 242, 244);'>개인키</code><span>&nbsp;</span>ex. domain_xxxxx.key.pem<br style='font-family: Lato, "Nanum Gothic", "Malgun Gothic", Tahoma, sans-serif, Geneva; box-sizing: border-box;'>SSLCertificateFile /etc/pki/tls/certs/<code style='padding: 2px 4px; border-radius: 4px; color: rgb(199, 37, 78); font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 11.7px; box-sizing: border-box; background-color: rgb(249, 242, 244);'>서버인증서</code><span>&nbsp;</span>ex. domain_xxxxx.crt.pem<br style='font-family: Lato, "Nanum Gothic", "Malgun Gothic", Tahoma, sans-serif, Geneva; box-sizing: border-box;'>SSLCertificateChainFile /인증서파일경로/<code style='padding: 2px 4px; border-radius: 4px; color: rgb(199, 37, 78); font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 11.7px; box-sizing: border-box; background-color: rgb(249, 242, 244);'>체인인증서</code>ex. chain-bundle.pem<br style='font-family: Lato, "Nanum Gothic", "Malgun Gothic", Tahoma, sans-serif, Geneva; box-sizing: border-box;'>SSLCACertificateFile /인증서파일경로/<code style='padding: 2px 4px; border-radius: 4px; color: rgb(199, 37, 78); font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 11.7px; box-sizing: border-box; background-color: rgb(249, 242, 244);'>루트인증서</code><span>&nbsp;</span>ex. AddTrustExternalCARoot.crt</div><p><span style='color: rgb(89, 88, 88); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Lato, "Nanum Gothic", "Malgun Gothic", Tahoma, sans-serif, Geneva; font-size: 13px; font-style: normal; font-weight: 400; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;'>&lt;/</span><span style='color: rgb(38, 139, 210); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Lato, "Nanum Gothic", "Malgun Gothic", Tahoma, sans-serif, Geneva; font-size: 13px; font-style: normal; font-weight: 700; word-spacing: 0px; white-space: normal; box-sizing: border-box; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;'>VirtualHost</span><span style='color: rgb(89, 88, 88); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Lato, "Nanum Gothic", "Malgun Gothic", Tahoma, sans-serif, Geneva; font-size: 13px; font-style: normal; font-weight: 400; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;'>&gt;</span></p><p><span style='color: rgb(89, 88, 88); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Lato, "Nanum Gothic", "Malgun Gothic", Tahoma, sans-serif, Geneva; font-size: 13px; font-style: normal; font-weight: 400; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;'><br></span></p><p><span style='color: rgb(89, 88, 88); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Lato, "Nanum Gothic", "Malgun Gothic", Tahoma, sans-serif, Geneva; font-size: 13px; font-style: normal; font-weight: 400; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;'>4. 방화벽</span></p><p><span style='color: rgb(89, 88, 88); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Lato, "Nanum Gothic", "Malgun Gothic", Tahoma, sans-serif, Geneva; font-size: 13px; font-style: normal; font-weight: 400; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;'>&nbsp;- /etc/sysconfig/iptables</span></p><p><span style='color: rgb(89, 88, 88); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Lato, "Nanum Gothic", "Malgun Gothic", Tahoma, sans-serif, Geneva; font-size: 13px; font-style: normal; font-weight: 400; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;'>&nbsp; 추가 : -A INPUT -m state --state NEW -m tcp -p tcp --dport 443 -j ACCEPT<br></span></p><p><span style='color: rgb(89, 88, 88); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Lato, "Nanum Gothic", "Malgun Gothic", Tahoma, sans-serif, Geneva; font-size: 13px; font-style: normal; font-weight: 400; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;'>&nbsp;- /etc/init.d/iptables restart</span></p><p><span style='color: rgb(89, 88, 88); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Lato, "Nanum Gothic", "Malgun Gothic", Tahoma, sans-serif, Geneva; font-size: 13px; font-style: normal; font-weight: 400; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;'><br></span></p><p><span style='color: rgb(89, 88, 88); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Lato, "Nanum Gothic", "Malgun Gothic", Tahoma, sans-serif, Geneva; font-size: 13px; font-style: normal; font-weight: 400; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;'>5. 재시작</span></p><p><span style='color: rgb(89, 88, 88); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Lato, "Nanum Gothic", "Malgun Gothic", Tahoma, sans-serif, Geneva; font-size: 13px; font-style: normal; font-weight: 400; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;'>service httpd restart</span></p><p><span style='color: rgb(89, 88, 88); text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: Lato, "Nanum Gothic", "Malgun Gothic", Tahoma, sans-serif, Geneva; font-size: 13px; font-style: normal; font-weight: 400; word-spacing: 0px; float: none; display: inline !important; white-space: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;'><br></span></p>]]></description>
<dc:creator>최고관리자</dc:creator>
<dc:date>Fri, 14 Sep 2018 14:36:45 +0900</dc:date>
</item>
<item>
<title>mod_ssl 로 보안 강화하기</title>
<link>http://rabbit129.cafe24.com/bbs/board.php?bo_table=note&amp;wr_id=209</link>
<description><![CDATA[<h1 class="with-breadcrumbs" id="title-text" style='margin: 0px; padding: 0px; border: currentColor; border-image: none; color: rgb(25, 46, 89); text-transform: none; line-height: 1.25; text-indent: 0px; letter-spacing: normal; clear: both; font-family: Roboto, "Apple SD Gothic Neo", "Nanum Barun Gothic"; font-size: 32px; font-style: normal; font-weight: 400; text-decoration: none; word-spacing: 0px; white-space: normal; orphans: 2; widows: 2; background-color: rgb(255, 255, 255); font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px;'><a class="current" style='border: currentColor; border-image: none; color: rgb(25, 46, 89); font-family: Roboto, "Apple SD Gothic Neo", "Nanum Barun Gothic"; font-size: 32px; font-weight: 400; text-decoration: none;' href="https://www.lesstif.com/pages/viewpage.action?pageId=18219486" target="_blank">mod_ssl 로 보안 강화하기</a></h1>]]></description>
<dc:creator>최고관리자</dc:creator>
<dc:date>Fri, 14 Sep 2018 11:06:29 +0900</dc:date>
</item>
<item>
<title>AWS 아마존 웹 서비스</title>
<link>http://rabbit129.cafe24.com/bbs/board.php?bo_table=note&amp;wr_id=205</link>
<description><![CDATA[<div>Linux 가상 머신 시작 <br><div><a href="https://aws.amazon.com/ko/getting-started/tutorials/launch-a-virtual-machine/" target="_blank">https://aws.amazon.com/ko/getting-started/tutorials/launch-a-virtual-machine/</a></div><div><br><br></div><div>
</div><div>도메인 이름 등록<br></div><div><a href="https://aws.amazon.com/ko/getting-started/tutorials/get-a-domain/" target="_blank">https://aws.amazon.com/ko/getting-started/tutorials/get-a-domain/</a></div></div>]]></description>
<dc:creator>최고관리자</dc:creator>
<dc:date>Mon, 10 Sep 2018 10:45:54 +0900</dc:date>
</item>
<item>
<title>서버 시작 시 IP 메일 보내기</title>
<link>http://rabbit129.cafe24.com/bbs/board.php?bo_table=note&amp;wr_id=204</link>
<description><![CDATA[<p><strong>STEP 1</strong></p><p>파일&nbsp;생성 :&nbsp;startup_mailer.py</p><p>아래 내용 추가</p><p>import subprocess<br>import smtplib<br>import socket<br>import os<br>from email.mime.text import MIMEText<br>import datetime</p><p># Change to your own account information<br>to = <a href="mailto:'rabbit8196@naver.com'" target="_blank">'보내 메일 주소'</a><br>gmail_user =&nbsp; <a href="mailto:아이디@gmail.com'" target="_blank">'구글 아이디@gmail.com'</a><br>gmail_password =&nbsp; '구글 비밀번호'<br>smtpserver = smtplib.SMTP('smtp.gmail.com', 587)<br>smtpserver.ehlo()<br>smtpserver.starttls()<br>smtpserver.ehlo<br>smtpserver.login(gmail_user, gmail_password)<br>today = datetime.date.today()</p><p># Very Linux Specific<br>arg= 'ip route list'<br>p=subprocess.Popen(arg,shell=True,stdout=subprocess.PIPE)<br>data = p.communicate()<br>split_data = data[0].split()<br>ipaddr = split_data[split_data.index('src')+1]</p><p># Get the current CPU speed<br>f = os.popen('/opt/vc/bin/vcgencmd get_config arm_freq')<br>cpu = f.read()<br>mail_body = "CPU speed: " + cpu + "IP address: %s" % ipaddr<br>msg = MIMEText(mail_body)<br>msg['Subject'] = "RasPI @ "+ipaddr+" started up on %s" % today.strftime('%b %d %Y')<br>msg['From'] = gmail_user<br>msg['To'] = to<br>smtpserver.sendmail(gmail_user, [to], msg.as_string())<br>smtpserver.quit()</p><p><br></p><p><strong>STEP 2</strong></p><p><strong># vi /etc/rc.local 에서 바로 실행하기</strong></p><p>아래 코드 삽입</p><p># Print the IP address<br>_IP=$(hostname -I) || true<br>if ["$_IP" ]; then<br>&nbsp;printf "My IP address is %s\n" "“$_IP"<br>&nbsp;python /home/pi/code/startup_mailer.py<br>fi</p><p>python /home/pi/code/startup_mailer.py<br></p>]]></description>
<dc:creator>최고관리자</dc:creator>
<dc:date>Tue, 17 Jul 2018 16:29:12 +0900</dc:date>
</item>
<item>
<title>CentOS 7 minimal network 설정</title>
<link>http://rabbit129.cafe24.com/bbs/board.php?bo_table=note&amp;wr_id=203</link>
<description><![CDATA[<p>CentOS 7 minimal 설치 후 네트워크 설정</p><p><br></p><p>1. CentOS 설치기 자동으로 잡힌 랜카드를 확인한다.</p><p><br></p><p>#nmcli d</p><p><br></p><p><br></p><p style="text-align: center; clear: none; float: none;"><span class="imageblock" style="width: 572px; height: auto; display: inline-block; max-width: 100%;"><img width="572" height="86" style="height: auto; max-width: 100%;" src="http://cfile27.uf.tistory.com/image/210D323555952559104898" filename="스크린샷 2015-07-02 오후 8.48.59.png" filemime="image/jpeg"></span></p><p><br></p><p><br></p><p>enp4s0 으로 된 것이 랜카드이다.&nbsp;</p><p><br></p><p><br></p><p>2. 랜카드를 설정한다.</p><p><br></p><p>#nmtui</p><p><br></p><p><br></p><p style="text-align: center; clear: none; float: none;"><span class="imageblock" style="width: 577px; height: auto; display: inline-block; max-width: 100%;"><img width="577" height="450" style="height: auto; max-width: 100%;" src="http://cfile9.uf.tistory.com/image/2609F04D559525EB3C3BD2" filename="스크린샷 2015-07-02 오후 8.51.45.png" filemime="image/jpeg"></span></p><p style="text-align: center; clear: none; float: none;"><br><span id="callbacknestellordnettistorycom472910" style="width: 1px; height: 1px; float: right;"></span></p><p style="text-align: center; clear: none; float: none;"><br></p><p style="text-align: center; clear: none; float: none;"><br></p><p style="text-align: left; clear: none; float: none;"><br></p><p style="text-align: center; clear: none; float: none;"><span class="imageblock" style="width: 577px; height: auto; display: inline-block; max-width: 100%;"><img width="577" height="450" style="height: auto; max-width: 100%;" src="http://cfile4.uf.tistory.com/image/2116354C55952631323643" filename="스크린샷 2015-07-02 오후 8.52.53.png" filemime="image/jpeg"></span></p><p style="text-align: left; clear: none; float: none;">편집으로 들어간다.</p><p style="text-align: left; clear: none; float: none;"><br></p><p style="text-align: left; clear: none; float: none;"><br></p><p style="text-align: left; clear: none; float: none;"><br></p><p style="text-align: center; clear: none; float: none;"><br></p><p style="text-align: center; clear: none; float: none;"><span class="imageblock" style="width: 584px; height: auto; display: inline-block; max-width: 100%;"><img width="584" height="506" style="height: auto; max-width: 100%;" src="http://cfile24.uf.tistory.com/image/243E3444559526D33642AE" filename="스크린샷 2015-07-02 오후 8.55.45.png" filemime="image/jpeg"></span></p><p style="text-align: center; clear: none; float: none;"><br></p><p style="text-align: left; clear: none; float: none;">위와 같이 설정한다.</p><p style="text-align: left; clear: none; float: none;">자동으로 연결에 스페이스바를 눌러 체크한다</p><p style="text-align: left; clear: none; float: none;">마지막 OK를 눌러 빠져나온다.<br></p><p style="text-align: left; clear: none; float: none;"><br></p><p style="text-align: left; clear: none; float: none;"><br></p><p style="text-align: left; clear: none; float: none;"><br></p><p style="text-align: left; clear: none; float: none;">3. 네트워크를 재시작한다.</p><p style="text-align: left; clear: none; float: none;"><br></p><p style="text-align: left; clear: none; float: none;">#systemctl restart network</p><p style="text-align: left; clear: none; float: none;"><br></p><p style="text-align: left; clear: none; float: none;"><br></p><p style="text-align: left; clear: none; float: none;">4. IP를 확인해 본다.</p><p style="text-align: left; clear: none; float: none;"><br></p><p style="text-align: left; clear: none; float: none;">#ip addr</p><p style="text-align: left; clear: none; float: none;"><br></p><p style="text-align: left; clear: none; float: none;"><br></p><p style="text-align: center; clear: none; float: none;"><span class="imageblock" style="width: 584px; height: auto; display: inline-block; max-width: 100%;"><img width="584" height="310" style="height: auto; max-width: 100%;" src="http://cfile24.uf.tistory.com/image/230B9A3D5595279A3F07A5" filename="스크린샷 2015-07-02 오후 8.57.50.png" filemime="image/jpeg"></span></p><p style="text-align: left; clear: none; float: none;"><br></p><p style="text-align: left; clear: none; float: none;"><br></p><p style="text-align: left; clear: none; float: none;">5. 끝.</p>]]></description>
<dc:creator>기리</dc:creator>
<dc:date>Thu, 22 Dec 2016 09:49:30 +0900</dc:date>
</item>
<item>
<title>브라우저 설정 언어 확인</title>
<link>http://rabbit129.cafe24.com/bbs/board.php?bo_table=note&amp;wr_id=202</link>
<description><![CDATA[userLang = navigator.language || navigator.userLanguage;<br>alert ("브라우저 설정 언어 : " + userLang);<br>]]></description>
<dc:creator>기리</dc:creator>
<dc:date>Mon, 21 Nov 2016 10:53:49 +0900</dc:date>
</item>
<item>
<title>database 생성</title>
<link>http://rabbit129.cafe24.com/bbs/board.php?bo_table=note&amp;wr_id=201</link>
<description><![CDATA[<span style="font-family: Tahoma; font-size: 11pt;">msyql &gt; create database DB명<span style="color: rgb(255, 0, 127);">;</span> &nbsp;&nbsp; <span style="color: rgb(47, 157, 39);">// 데이터베이스 생성</span><br></span><div><span style="font-family: Tahoma; font-size: 11pt;"><span style="color: rgb(47, 157, 39);"><br></span></span></div><div><p style="clear: none; float: none;"><span style="color: rgb(0, 0, 128);"><span style="font-family: Tahoma; font-size: 11pt;"><span style="color: rgb(0, 0, 0);">msyql &gt; create schema <span style="color: rgb(255, 0, 127);">DB명</span> default character set utf8; <span style="color: rgb(47, 157, 39);">-- 둘중에 하나를 입력하면 DB 생성됨</span><br></span></span></span></p><p style="clear: none; float: none;"><span style="color: rgb(0, 0, 128);"><span style="font-family: Tahoma; font-size: 11pt;"><span style="color: rgb(0, 0, 0);">mysql &gt; create database </span></span></span><span style="color: rgb(0, 0, 128);"><span style="font-family: Tahoma; font-size: 11pt;"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(255, 0, 127);">DB명</span> default character set utf8;</span></span></span></p><p style="clear: none; float: none;"><span style="color: rgb(0, 0, 128);"><span style="font-family: Tahoma; font-size: 11pt;"><span style="color: rgb(0, 0, 0);">mysql &gt; </span></span></span><span style="color: rgb(0, 0, 128);"><span style="font-family: Tahoma; font-size: 11pt;"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 128);"><span style="font-size: 11pt;"><span style="color: rgb(0, 0, 0);">create database</span></span></span> </span></span></span><span style="color: rgb(0, 0, 128);"><span style="font-family: Tahoma; font-size: 11pt;"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(255, 0, 127);">DB명</span>&nbsp;</span></span></span><span style="color: rgb(0, 0, 128);"><span style="font-family: Tahoma; font-size: 11pt;"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 128);"><span style="font-size: 11pt;"><span style="color: rgb(0, 0, 0);"><span style="color: rgb(0, 0, 128);"><span style="font-size: 11pt;"><span style="color: rgb(0, 0, 0);">default character set</span></span></span></span></span></span> utf8 COLLATE utf8_general_ci;<br></span></span></span></p><p style="clear: none; float: none;"><span style="color: rgb(0, 0, 128);"><span style="color: rgb(0, 0, 0); font-family: Tahoma; font-size: 11pt;">// <span style="color: rgb(47, 157, 39);">default character set을 지정하지 않으면 한글이 깨져서 나오므로 주의해야 한다.</span></span><br></span></p><p style="clear: none; float: none;"><span style="color: rgb(0, 0, 128);"><span style="color: rgb(0, 0, 0); font-family: Tahoma; font-size: 11pt;"><span style="color: rgb(47, 157, 39);"><br></span></span></span></p><p><span style="font-family: Tahoma; font-size: 11pt;">// default character set 변경<br></span></p><p><span style="font-family: Tahoma; font-size: 11pt;">msyql &gt; </span><span style="font-family: Tahoma;">ALTER DATABASE web DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;</span></p><p><span style="font-family: Tahoma; font-size: 11pt;">msyql &gt; drop database DB명</span><span style="font-family: Tahoma; font-size: 11pt;"><span style="color: rgb(255, 0, 127);">;</span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="color: rgb(47, 157, 39);">// 데이터베이스 삭제</span></span><span style="font-family: Tahoma;"></span></p><p><span style="font-family: Tahoma; font-size: 11pt;"><span style="color: rgb(47, 157, 39);"><br></span></span></p><p><span style="font-family: Tahoma; font-size: 11pt;"><span style="color: rgb(47, 157, 39);"><br></span></span></p></div>]]></description>
<dc:creator>최고관리자</dc:creator>
<dc:date>Fri, 20 May 2016 11:41:43 +0900</dc:date>
</item>
<item>
<title>계정 관리(추가, 수정, 삭제)</title>
<link>http://rabbit129.cafe24.com/bbs/board.php?bo_table=note&amp;wr_id=199</link>
<description><![CDATA[<p>[사용자, 그룹 관리와 관련된 파일들]</p><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"></div><ul><li><span style="line-height: 1.6;">/etc/passwd : 사용자 계정 정보 파일.</span></li><li><span style="line-height: 1.6;">/etc/shadow : 암호화된 사용자 비밀번호 저장파일.</span></li><li><span style="line-height: 1.6;">/etc/group : 사용자 그룹 정보 저장파일.</span></li><li><span style="line-height: 1.6;">/etc/skel : 사용자 등록시 홈디렉토리에 복사되는 원본파일이 저장된 디렉토리</span></li><li><span style="line-height: 1.6;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(사용자 추가시 홈 디렉토리에 복사됨).</span></li><li><span style="line-height: 1.6;">/etc/default/useradd : 새 사용자 등록시 기본 설정정보 파일(홈 디렉토리 기본 위치, 기본 쉘 종류, 기본 그룹 등).</span></li><li><span style="line-height: 1.6;">/etc/login/defs : 기타 사용자 생성 옵션들이 정의된 파일.</span></li></ul><p><br>&nbsp;</p><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;">※ /etc/passwd 의 파일 저장 형식<br>- 사용자계정:암호:UID:GID:사용자이름:홈디렉토리위치:사용쉘</div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"><br></div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"># cat /etc/passwd<br>root:x:0:0:root:/root:/bin/bash<br>bin:x:1:1:bin:/bin:/sbin/nologin</div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;">※ /etc/shadow 의 파일 저장 형식<br>- 사용자계정:암호:암호 파일 최종 수정일:암호 변경 최소일:암호 변경 최대일:암호 만료 경고기간:암호 파기기간:계정만료기간:예약필드</div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"><br></div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"># cat /etc/shadow<br>root:$1$qsotdQm.$uic0TlSBIBqC6VX9WUCl9.:14651:0:99999:7:::<br>bin:*:14581:0:99999:7:::</div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"><br></div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"></div><div class="바탕글" style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;">[사용자 계정 관리 명령어]</div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"><br></div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;">■ 사용자 정보 조회</div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"><br></div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;">▷ 명령어 : id</div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"><br></div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;">▷ 사용형식 : id [옵션] 사용자계정</div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"><br></div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;">-g : 기본 그룹의 GID 출력<br>-G : 모든 그룹의 GID 출력<br>-u : 사용자의 uid 출력<br>-n : 위 옵션과 함께 사용, 숫자대신 이름 출력()</div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"><br></div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;">▷&nbsp;사용예</div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"># id -Gn user1</div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"><br></div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"><br></div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;">■ 현재 로긴하고 있는 사용자 목록 조회 : users</div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"><br></div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"># users<br>root</div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"><br></div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;">■ 사용자 계정 추가</div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"><br></div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;">adduser 로그인 계정</div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"><br><span id="callbacknestwelchsytistorycom2444631" style="width: 1px; height: 1px; float: right;"></span></div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"><span style="text-decoration: line-through;">▷ 명령어 : useradd</span></div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"><span style="text-decoration: line-through;"><br>▷ 사용형식 : useradd [옵션] 로그인 계정</span></div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"><span style="text-decoration: line-through;">&nbsp;-c comment : 사용자 이름 또는 정보<br>&nbsp;-d home_directory : 사용자 계정 홈 디렉토리<br>&nbsp;-e expire_date : 사용자 계정 유효 기간<br>&nbsp;-f inactive_time : 비활성 기간<br>&nbsp;-g initial_group : 기본 그룹<br>&nbsp;-G groups : 기본그룹외에 추가로 소속될 그룹<br>&nbsp;-s shell : 기본 로그인 셀<br>&nbsp;-u uid : 사용자 계정 uid</span></div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"><span style="text-decoration: line-through;">&nbsp;-k skel SKEL_DIR : skel 디렉토리를 기본을 사용하지 않고 특정 디렉토리로 지정<br>&nbsp;-m create-home : 새 사용자를 위한 홈디렉토리 생성</span></div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"><span style="text-decoration: line-through;"><br></span></div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"><span style="text-decoration: line-through;">▷ 사용예 (사용자 계정 : user1)</span></div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"><span style="text-decoration: line-through;"># useradd -m -k /etc/common user1&nbsp;&nbsp;&nbsp;&nbsp;&lt;--- /etc/skel 이 아닌 /etc/common 디렉토리의 환경 설정 파일을 이용하여 계정 생성.</span></div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"><span style="text-decoration: line-through;">#&nbsp;useradd -g admin -G&nbsp;group1 -s /bin/bash user1&nbsp; &lt;&lt;--- 기본 그룹 : admin, 추가로 소속될 그룹 : group1 , 기본 쉘: /bin/bash.</span></div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"><span style="text-decoration: line-through;"><br></span></div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"><span style="text-decoration: line-through;">※ useradd 명령어를 통해서 사용자를 추가하게 되면 아래와 같은 작업들이 진행됩니다.<br>a) "/etc/passwd" 파일에 사용자 정보 설정<br>b) "/etc/group" 파일에 그룹정보 설정<br>c) "/home/사용자명/" 위치에 홈 디렉토리가 생성<br>d) "/var/spool/mail/" 디렉토리에 사용자명의 메일 파일 생성</span></div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"><br>■ 사용자 계정 변경</div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"><span style="line-height: 1.6;">▷ 명령어 : usermod</span></div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;">▷ 사용형식 : usermod [옵션] 로그인 계정</div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;">&nbsp;-c comment : 사용자 이름 또는 정보<br>&nbsp;-d home_directory : 사용자 계정 홈 디렉토리<br>&nbsp;-e expire_date : 사용자 계정 유효 기간<br>&nbsp;-f inactive_time : 비활성 기간<br>&nbsp;-g initial_group : 기본 그룹<br>&nbsp;-G grous : 추가 그룹 변경<br>&nbsp;-s shell : 기본 로그인 셀<br>&nbsp;-u uid : 사용자 계정 uid</div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;">&nbsp;-m move-home : 홈디렉토리 변경시, 새 홈딩렉토리로 파일 이동(-d 옵션하고만 사용할 수 있음)</div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;">-l : 사용자명 변경<br>-L : 사용자의 패스워드에 Lock을 걸어 로그인 제한</div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"><br></div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;">▷ 사용예</div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"># usermod –d /home/user1 user1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;--- user1 계정의 홈디렉토리를 /home/user1 으로 설정<br># usermod –e 2010-04-05 user1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;--- user1 계정의 만기일을&nbsp;2010-04-05 일로 설정<br># usermod –f 3 user1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;--- user1 계정의 비봘성 기간을 3일로 설정<br># usermod –g group1 user1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;--- user1 계정의 기본 그룹을&nbsp;group1 으로 설정</div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"># usermod -u 508 user1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;--- user1 계정의 UID를 508로 설정</div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"># usermod -s /bin/csh user1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &lt;--- user1 계정의 기본 쉘을 c쉘로 설정</div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;">※ 모든 일반 사용자들에 대해 일시적인 서버접속 금지(telent 만 해당, ssh 는 제외)하기 위해서는 /etc/nologin 파일을 생성해 두면 됩니다..</div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"><br>■ 사용자 계정 삭제</div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"><br></div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;">▷ 명령어 : userdel</div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"><br></div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;">▷ 사용형식 : userdel [옵션] 계정</div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;">&nbsp;-r&nbsp; : 해당 계정자의 홈디렉토리까지 모두 삭제</div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"><br></div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;">▷ 사용예</div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"># userdel -r user1</div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"><br>■ 사용자의 비밀번호 설정</div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"><br></div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;">▷ 명령어 : passwd</div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"><br></div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;">▷ 사용형식 : passwd 사용자계정</div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"><br></div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;">▷ 사용예<br># passwd&nbsp; user1</div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;">Changing password for user user1.<br>New UNIX password:</div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"><br></div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"><span style="font-family: 바탕;">☞</span>&nbsp;[그룹 관리 명령어들]</div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"><br></div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;">■ 사용자가 속해있는 모든 그룹정보 조회</div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;">- 그룹들의 정보는 /etc/group 파일에 존재.</div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;">#cat –n /etc/group</div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"><br></div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;">▷ 명령어 : groups</div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"><br></div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;">▷ 사용형식 : groups 사용자계정</div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"><br></div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;">▷ 사용예<br># groups&nbsp; user1</div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;">user1&nbsp;: admin group1</div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"><br></div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;">■ 사용자 그룹 추가</div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"><br></div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;">▷ 명령어 : groupadd</div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"><br></div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;">▷ 사용형식 : groupadd [옵션]&nbsp; 그룹명&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;">&nbsp;-g&nbsp;: 그룹의 GID(Group ID)&nbsp;설정<br>&nbsp;-o&nbsp; : GID 499이하 값으로 지정<br>&nbsp;-f&nbsp; : 강제로 그룹 생성<br>&nbsp;</div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;">▷ 사용예<br># groupadd -g 1000&nbsp; group1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;--- GID가 1000으로 지정하여 group1의 그룹을&nbsp;추가</div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"><br></div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;">■ 사용자 그룹 변경</div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"><br></div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;">▷ 명령어 : groupmod</div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"><br></div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;">▷ 사용형식 : groupmod [옵션]&nbsp; 그룹명&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;">&nbsp;-g&nbsp;: 그룹의 GID 변경<br>&nbsp;-o&nbsp; : GID 499이하 값으로&nbsp;변경<br>&nbsp;-n&nbsp; : 그룹명 변경<br>&nbsp;</div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;">▷ 사용예<br># groupmod -g 800&nbsp; group1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;--- 그룹명 group1 의&nbsp;GID를 800&nbsp;변경</div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"># groupmod –n newgroup1 group1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;--- 그룹명 group1 의&nbsp;그룹명을 newgroup1 으로&nbsp;변경</div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"><br></div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"><br></div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;">■ 사용자 그룹 삭제</div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"><br></div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;">▷ 명령어 : groupdel</div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"><br></div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;">▷ 사용형식 : groupdel 그룹명&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;"><br></div><div style="padding: 0px; line-height: 1.6; font-family: 굴림, gulim, verdana, sans-serif;">▷ 사용예<br># groupdel group1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;--- 그룹명 group1 삭제</div><div style="clear: both;"></div><div class="post-footer"><div class="post-footer-line post-footer-line-1"><span class="post-labels"><p>&nbsp;</p><p>참고 )</p><p>▶ 일반사용자 슈퍼권한 할당 방법</p><p>1). root 권한으로 /etc/sudoers 파일을 열어본다.</p><p>아래는 design 이라는 일반계정을 root 권한으로 부여해 줘보자.</p><p>16 # User privilege specification<br>17 root&nbsp;&nbsp;&nbsp; ALL=(ALL) ALL&nbsp;&nbsp;&nbsp;&nbsp;# root 사용자에 대한 모든 권한<br>18 design&nbsp; ALL=/sbin/shutdown,&nbsp;&nbsp;&nbsp;&nbsp; /file_design/design&nbsp;# whell 그룹에 대한 루트 권한<br>19 %test&nbsp;&nbsp; ALL=(ALL) ALL&nbsp;&nbsp;&nbsp;&nbsp;# 일반 사용자에 대한 특정권한<br>위와 같이 </p><p>2). sudo 명령어 <br>형식 : $ sudo 명령어 <br>$ sudo shutdown -r now<br>password :</p><p>▶ X-win 에서 사용자 계정 관리<br>1). system-config-users 실행<br>- Alt+F2 키를 눌러 실행 창에서 system-config-users 명령 입력</p><p><br>▶ 그룹 관리<br>1). 그룹생성<br>usage: groupadd [-g gid [-o]] [-r] [-f] group<br>[옵션]<br>-g : 그룹의 고유 ID<br>-o : 그룹의 고유 ID를 500이하의 값으로 지정하는 경우 사용<br>-r : 그룹의 ID를 500 이하의 값으로 자동 지정<br>-f : 강제로 그룹을 추가하는 옵션</p><p>ex) <br># groupadd test<br># groupadd -g 801 test2</p><p>2). 그룹 속성 변경<br>사용법: groupmod [-g gid(그룹 아이디) [-o]] [-n 이름] 그룹명<br>[옵션]<br>-g : 그룹의 고유 ID<br>-o : 그룹의 고유 ID를 500이하의 값으로 지정하는 경우 사용<br>-n : 변경될 그룹명</p><p>ex) <br># groupmod -n test imsi<br># groupmod -g 802 test</p><p>3). 그룹 삭제<br>ex)<br># groupdel test</p><p>▶ 로그인 관리<br>[1]<br>1). 특정계정 로그인 허용 및 불허 정책(실행 레벨 2, 3번에서 사용)<br>/etc.pam.d/login 파일의 맨 윗줄 수정(추가)<br>auth&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; required /lib/security/pam_listfile.so item=user sense=allow file=/etc/loginuser &#111;&#110;err=succeed</p><p>2). /etc/loginuser 파일 생성 및 로그인 가능 계정 추가<br>이 파일안에 로그인 가능한 계정만 추가<br># 반대인 경우 1). 번에서 sense=deny file 부분을 nologinuser로 한다음 2).번에서 nologinuser를 생성</p><p>-&gt;혹 사용자는 로그인 불허하는 방법으로 제일 쉬운 방법을 /etc/passwd 에서 그 계정에 해당하는 쉘종류를 /bin/bash 에서 /bin/false로 변경하는 거라고 한다.<br>-&gt; 또한 잠깐동안 못쓰게 할려면 /etc/passwd 에서 그 계정의 두 번째 컬럼 부분의 x에 해당하는 부분은 * 로 잠깐 바꾸는 법이다.</p><p>- PAM에 의한 계정의 로그인 허용과 불허 방법은 콘솔, 텔넷, FTP, SSH에서 모두 적용 가능.<br>- X-win로 접속할 때는 적용 되지 않는다.</p><p>[2]<br>su - 명령 사용자 제한<br>1). /etc/pam.d/su 파일 수정<br>auth suuficent /lib/security/pam_rootok.so<br>auth requried&nbsp; /lib/security/pam_wheel.so use_uid<br>이 두부분을 주석 제거 한다.</p><p>2). /etc/group 의 wheel그룹에 su 명령 사용가능한 계정추가<br>ex) wheel:x:10:root,계정명 이런식으로 수정한다.</p><p>% 추가로 로그 기록을 위한 debug옵션 추가를 한다.<br>auth required /lib/security/pam_wheel.so debug use_uid<br>%verify 하는 법<br>tail /var/log/messages</p><p>&nbsp;</p><p>▶ 사용자 계정 바꾸기<br># su - <br>-&gt; root의 열쇠글 입력<br># su test<br>-&gt; test의 열쇠글 입력</p><p>"-" 이부분이 들어가게 되면 시스템 정보도 함께 갖고 오게됨,</p><p>▶ 계정 사용자 정보 변경<br># su - (su 뒤에 - 또는 -l 붙이지 않으면 완전한 root권한을 얻지 못한다.)<br>-&gt; 슈퍼유저(root)의 열쇠글 입력<br># usermod -s /bin/tcsh test<br># cat /etc/passwd | grep test</p><p>usage: usermod&nbsp; [-u uid [-o]] [-g group] [[-a] -G group,...]<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [-d 홈 디렉토리 [-m]] [-s 쉘] [-c 적요사항] [-l 새_이름]<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [-f 비활성화] [-e 만기] [-p 패스워드] -L|-U] 이름</p><p>-c : 내용<br>-d : 홈디렉토리<br>-e : 만료일<br>-G : 그룹<br>-s : 기본 쉘<br>-u : UID<br>-l : 사용자 계정명 변경</p><p><br>▶ 계정 열쇠글 지정 및 변경<br>1) /etc/passwd 파일을 직접 열어서 열쇠글 변경(비추천)<br>2) 시스템 관리자에 의한 사용자 계정 열쇠글 변경<br>ex)<br># useradd test<br># passwd test<br>- test 사용자 비밀번호를 두 번 입력<br>3) 사용자가 직접 열쇠글 변경<br>$ passwd <br>- 자신의 현재 비밀번호를 입력한 후, 다시 자신의 비밀번호를 두 번 입력한다.</p><p>4) Shadow 열쇠글 시스템<br># cat /etc/passwd | grep root<br># pwunconv&nbsp;&nbsp; # 열쇠글 필드에 x대신 열쇠글이 나타나도록 설정.<br># cat /etc/passwd | grep root<br># pwconv&nbsp;&nbsp;&nbsp;&nbsp; # Shadow 열쇠글 시스템 적용.<br># cat /etc/passwd | grep root<br># pwunconv 상태에선 사용자 비밀번호 변경이 불가함.</p><p>5) /etc/shadow<br>1계정명:2열쇠글:3최정변경일:4변경취소일수:5변경유예기간:6변경경고일수:7사용불가날짜:8만료일:9예약</p><p>6) chage 를 이용한 계정 열쇠글 관리<br>사용법: chage [-l] [-m 최소일수] [-M 최대일수] [-W 경고일수]<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [-I 무효일수] [-E 만료일수] [-d 새 패스워드 변경일] 사용자명</p><p># chage -M 15 -E 2009/03/25 test<br># chage -l test</p></span></div></div>]]></description>
<dc:creator>최고관리자</dc:creator>
<dc:date>Thu, 19 May 2016 11:25:51 +0900</dc:date>
</item>
<item>
<title>리눅스 APM 정의 및 설치(ubuntu, redhat)</title>
<link>http://rabbit129.cafe24.com/bbs/board.php?bo_table=note&amp;wr_id=198</link>
<description><![CDATA[<p>#ubuntu</p><p>#redhat</p><p>&nbsp;</p><p>APM의 간단한 설명과 우분투에서 AMP 설치에&nbsp;관하여 간단하게 다룬다. (redhat의 경우 서버용 Linux이기에 기본적으로&nbsp;apm이 설치되어 있으며&nbsp;활성화만 시켜주면 된다.&nbsp;반면, ubuntu의 경우 개인사용자에 최적화 되어있기에 따로 설치를&nbsp;해야한다.)</p><p>&nbsp;</p><p>● APM 란?</p><p style="margin-left: 40px;">- Apache(웹서버) + PHP(언어) + MySQL(Database) = APM 이라고 말할 수 있다. </p><p style="margin-left: 40px;">&nbsp;</p><p></p><p>● Apache 란?</p><p style="margin-left: 40px;">- 정식명칭 : Apache HTTP sever</p><p style="margin-left: 40px;">- 관련 홈페이지 : <a class="con_link" href="http://www.apache.org/" target="_blank">www.apache.org</a></p><p style="margin-left: 40px;">- GUN GPL 라이센스를 통해 무료로 배포되는 소프트웨어이다.</p><p style="margin-left: 40px;">- 현재 50%이상의 웹서버 소프트웨어 시장 점유율을 확보하고있다.</p><p style="margin-left: 80px;">- 안정적으로 작동한다.</p><p style="margin-left: 80px;">- 아파치 서버 프로그램 등의 관련 컴포넌트들의 소스코드가 무료로 제공된다.</p><p style="margin-left: 80px;">- 유연성이 좋고 이식성이 띄어나 여러 응용분야에서 적용된다.</p><p style="margin-left: 80px;">&nbsp;</p><p>● PHP 란?</p><p style="margin-left: 40px;">- 웹 프로그래밍을 위한 스크립트 언어</p><p style="margin-left: 40px;">- 1994년 일반적으로 다른 언어와 혼합 사용되며 시작되었다.</p><p style="margin-left: 40px;">- PHP(70%) + HTML(25%) + Java&#115;&#99;ript(5%)</p><p style="margin-left: 40px;">- PHP 특징</p><p style="margin-left: 80px;">- 처리속도가 빠르다.</p><p style="margin-left: 80px;">- 공개 S/W</p><p style="margin-left: 80px;">- 운영체제의 지원폭이 크다.</p><p style="margin-left: 80px;">- 많은 데이터베이스와의 연동 지원</p><p style="margin-left: 80px;">&nbsp;</p><p>● SQL 란?</p><p style="margin-left: 40px;">- DB에서 사용되는 표준 구조적 쿼리언어(Structured Query Language : SQL)</p><p style="margin-left: 40px;">- 데이터 추출과 출력, 데이터베이스 구조 정의 등의 데이터베이스 관리를 위한 언어</p><p>&nbsp;</p><p>● MySQL 란?</p><p style="margin-left: 40px;">- SQL을 지원하는 공개 데이터베이스 소프트웨어</p><p style="margin-left: 40px;">- 처리속도가 빠름</p><p>&nbsp;</p><p>● ubuntu APM Install</p><p style="margin-left: 40px;">- 아래 명령어를 순 ! 서 ! 대 ! 로 입력하자.</p><p style="margin-left: 80px;">- MySQL Install</p><p style="margin-left: 80px;">apt-get install mysql-server (설치 중 root passward 설정을 위한 입력을 요구하니 주의하자.)</p><p style="margin-left: 80px;">apt-get install mysql- client</p><p style="margin-left: 80px;">&nbsp;</p><p style="margin-left: 80px;">- PHP Install</p><p style="margin-left: 80px;">apt-get install php5-common</p><p style="margin-left: 80px;">apt-get install php5</p><p style="margin-left: 80px;">apt-get install libapache2-mod-php5</p><p style="margin-left: 80px;">apt-get install php5-mysql</p><p style="margin-left: 80px;">&nbsp;</p><p style="margin-left: 80px;">- Apache</p><p style="margin-left: 80px;">apt-get install apache2</p><p style="margin-left: 80px;">apt-get install libapache2-mod-auth-mysql</p><p>&nbsp;</p><p>● ubuntu APM 동작확인 및 설정확인</p><p>&nbsp;</p><p>1. APM 동작확인</p><p>/etc/init.d/apache2 [start|stop|restart|status] apache2</p><p>/etc/init.d/mysql [start|stop|restart|status] mysql</p><p><img width="731" height="278" class="_photoImage" id="20120105_39/jutlsgood_1325765414853PlN3C_JPEG/1_00000.jpg" style="border-color: rgb(0, 0, 0); cursor: pointer; rwidth: 731px; rheight: 278px;" alt="" src="http://postfiles8.naver.net/20120105_39/jutlsgood_1325765414853PlN3C_JPEG/1_00000.jpg?type=w2"></p><p>&nbsp;</p><p>2. APM 설정확인</p><p style="margin-left: 40px;">Apache&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : /etc/apache2/apache2.conf<br>Apache root&nbsp; : /etc/apache2/sites-available/default<br>Mysql&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;: /etc/mysql/my.cnf<br>Php&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;: /etc/php5/apache2/php.ini</p><p>&nbsp;</p><p>3. 아래와 같이 실행하면 웹이 개설됨을 확인할 수 있다.(ifconfig를 이용하여 ip주소를 확인 할 수있다.)</p><p><img width="698" height="72" class="_photoImage" id="20120105_288/jutlsgood_1325771730792odRwd_JPEG/1_00001.jpg" style="cursor: pointer; rwidth: 698px; rheight: 72px;" alt="" src="http://postfiles1.naver.net/20120105_288/jutlsgood_1325771730792odRwd_JPEG/1_00001.jpg?type=w2"><br style="clear: both;"><br style="clear: both;"><img width="692" height="416" class="_photoImage" id="20120105_156/jutlsgood_1325771731183OPYHL_JPEG/1_00002.jpg" style="cursor: pointer; rwidth: 692px; rheight: 416px;" alt="" src="http://postfiles13.naver.net/20120105_156/jutlsgood_1325771731183OPYHL_JPEG/1_00002.jpg?type=w2"><br style="clear: both;"><br style="clear: both;"><img width="690" height="487" class="_photoImage" id="20120105_285/jutlsgood_13257717315406Pw39_JPEG/1_00003.jpg" style="cursor: pointer; rwidth: 690px; rheight: 487px;" alt="" src="http://postfiles14.naver.net/20120105_285/jutlsgood_13257717315406Pw39_JPEG/1_00003.jpg?type=w2"> </p><p>&nbsp;</p><p>&nbsp;</p><p>● redhat APM 설치여부 확인</p><p>&nbsp;</p><p>1. AMP 설치여부 확인</p><p style="margin-left: 40px;">rpm -qa | grep httpd</p><p style="margin-left: 40px;">rpm -qa | grep php</p><p style="margin-left: 40px;">rpm -qa | grep mysql</p><p><img width="704" height="407" class="_photoImage" id="20120105_99/jutlsgood_1325765204340EPmAu_JPEG/1.jpg" style="border-color: rgb(0, 0, 0); cursor: pointer; rwidth: 704px; rheight: 407px;" alt="" src="http://postfiles4.naver.net/20120105_99/jutlsgood_1325765204340EPmAu_JPEG/1.jpg?type=w2"></p><p>&nbsp;</p><p>2. 패키지 검색(redhat9.0에는 yum이 미포함 되어있다. 그냥 넘어가도 상관없으니 걱정 마시길...)</p><p style="margin-left: 40px;">yum search httpd</p><p style="margin-left: 40px;">yum search php</p><p style="margin-left: 40px;">yum search mysql</p><p style="margin-left: 40px;">yum search mysql-server</p><p style="margin-left: 40px;">&nbsp;</p><p style="margin-left: 40px;">확인 후 패키지가 존재하지 않는다면</p><p style="margin-left: 40px;">yum install httpd php mysql mysql-server 을 이용하여 설치해 주도록 하자.&nbsp;</p><p>&nbsp;</p><p>&nbsp;</p><p>●&nbsp;redhat APM 동작확인 및 설정확인</p><p>&nbsp;</p><p>1. 웹서버</p><p>- 데몬시작</p><p>/etc/rc.d/init.d/httpd start&nbsp; 또는&nbsp; service httpd start</p><p>&nbsp;</p><p>- 설정변경 후 데몬 다시시작</p><p>/etc/rc.d/init.d/httpd restart&nbsp; 또는 service httpd restart</p><p><img width="673" height="82" class="_photoImage" id="20120105_147/jutlsgood_1325769479300aq4UR_JPEG/2.jpg" style="border-color: rgb(0, 0, 0); cursor: pointer; rwidth: 673px; rheight: 82px;" alt="" src="http://postfiles4.naver.net/20120105_147/jutlsgood_1325769479300aq4UR_JPEG/2.jpg?type=w2"></p><p>&nbsp;</p><p>- 데몬동작 확인&nbsp;</p><p>ps -ef | grep httpd</p><p>&nbsp;</p><p>- 리눅스 부팅 후 자동으로 시작하기 활성화</p><p>/sbin/chkconfig httpd on</p><p>&nbsp;</p><p>- 활성화 여부 확인</p><p>/sbin/chkconfig --list | grep httpd</p><p><img width="639" height="329" class="_photoImage" id="20120105_227/jutlsgood_132576947969462nVy_JPEG/2_00000.jpg" style="border-color: rgb(0, 0, 0); cursor: pointer; rwidth: 639px; rheight: 329px;" alt="" src="http://postfiles4.naver.net/20120105_227/jutlsgood_132576947969462nVy_JPEG/2_00000.jpg?type=w2"></p><p>&nbsp;</p><p>2. MySQL</p><p>- 데몬 시작</p><p>/etc/rc.d/init.d/mysqld start&nbsp; 또는&nbsp; service mysqld start</p><p>&nbsp;</p><p>- 데몬동작 확인</p><p>ps -ef | grep mysqld</p><p>&nbsp;</p><p>- MySQL root passward 지정</p><p>mysqladmin -u root password 'password'</p><p>&nbsp;</p><p>- 리눅스 부팅 후 자동으로 시작하기 활성화</p><p>/sbin/chkconfig mysqld on</p><p>&nbsp;</p><p>- 활성화 여부 확인</p><p>/sbin/chkconfig --list | grep mysqld</p><p><img width="732" height="253" class="_photoImage" id="20120105_157/jutlsgood_13257702383749A7Ye_JPEG/2_00001.jpg" style="cursor: pointer; rwidth: 732px; rheight: 253px;" alt="" src="http://postfiles14.naver.net/20120105_157/jutlsgood_13257702383749A7Ye_JPEG/2_00001.jpg?type=w2"> </p><p>&nbsp;</p><p>3. PHP</p><p>&nbsp;</p><p>- 웹서버가 PHP 문서를 서비스하기 위해 설정파일 수정</p><p>vi /etc/httpd/conf/httpd.conf</p><p><img width="643" height="62" class="_photoImage" id="20120105_100/jutlsgood_1325771344178WW39E_JPEG/2_00002.jpg" style="clear: none; cursor: pointer;" alt="" src="http://postfiles5.naver.net/20120105_100/jutlsgood_1325771344178WW39E_JPEG/2_00002.jpg?type=w2"></p><p>&nbsp;</p><p>(수정내용&nbsp;<u>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</u> 참고)</p><p>DirectoryIndex <u>index.php</u> <u>index.htm</u> index.html index.html.var&nbsp;&nbsp; (Line 408)</p><p><img width="727" height="408" class="_photoImage" id="20120105_156/jutlsgood_1325771344533e3ouw_JPEG/2_00003.jpg" style="border-color: rgb(0, 0, 0); cursor: pointer; rwidth: 727px; rheight: 408px;" alt="" src="http://postfiles13.naver.net/20120105_156/jutlsgood_1325771344533e3ouw_JPEG/2_00003.jpg?type=w2"></p><p>&nbsp;</p><p>AddType application/x-tar .tgz</p><p><u>AddType application/x-httpd-php .php .phtml .php3</u></p><p><u>AddType application/x-httpd-php-source .phps</u></p><p>(Line 824) </p><p><img width="727" height="408" class="_photoImage" id="20120105_40/jutlsgood_1325771344905xUSwI_JPEG/2_00004.jpg" style="border-color: rgb(0, 0, 0); cursor: pointer; rwidth: 727px; rheight: 408px;" alt="" src="http://postfiles9.naver.net/20120105_40/jutlsgood_1325771344905xUSwI_JPEG/2_00004.jpg?type=w2"></p><p>&nbsp;</p><p>- 설정 변경 후 데몬 다시시작</p><p>/etc/rc.d/init.d/httpd restart</p><p><img width="677" height="79" class="_photoImage" id="20120105_38/jutlsgood_13257713453643oyMs_JPEG/2_00005.jpg" style="border-color: rgb(0, 0, 0); cursor: pointer; rwidth: 677px; rheight: 79px;" alt="" src="http://postfiles7.naver.net/20120105_38/jutlsgood_13257713453643oyMs_JPEG/2_00005.jpg?type=w2"></p><p>&nbsp;</p><p>&nbsp;</p><p>4. ifconfig를 이용하여 ip주소를 확인한 뒤 인터넷에서 접속하면 아래처럼 웹이 개설되었음을 확인할 수 있다.</p><p><img width="697" height="613" class="_photoImage" id="20120105_236/jutlsgood_1325771589108OC9pI_JPEG/3.jpg" style="border-color: rgb(0, 0, 0); cursor: pointer; rwidth: 697px; rheight: 613px;" alt="" src="http://postfiles13.naver.net/20120105_236/jutlsgood_1325771589108OC9pI_JPEG/3.jpg?type=w2"></p><p>&nbsp;<div class="autosourcing-stub-extra"><p style="margin: 11px 0px 7px; padding: 0px; font-family: Dotum; font-size: 12px; font-style: normal; font-weight: normal;"><strong style="padding: 0px 7px 0px 0px;">[출처]</strong> <a href="http://blog.naver.com/jutlsgood/90133000463" target="_blank">[Linux] 리눅스 APM 정의 및 설치(ubuntu, redhat) - 웹 개설</a><span style="padding: 0px 7px 0px 5px;">|</span><strong style="padding: 0px 7px 0px 0px;">작성자</strong> <a href="http://blog.naver.com/jutlsgood" target="_blank">파란날개</a></p></div>]]></description>
<dc:creator>기리</dc:creator>
<dc:date>Tue, 15 Mar 2016 17:42:50 +0900</dc:date>
</item>
</channel>
</rss>
