"Nginx"의 두 판 사이의 차이

오픈소스 비즈니스 컨설팅
둘러보기로 가기 검색하러 가기
잔글
잔글
11번째 줄: 11번째 줄:
  
 
== CentOS 6.5에서 설치 ==
 
== CentOS 6.5에서 설치 ==
 +
 +
 +
 +
'''<span style="color:#0000FF;"><span style="font-size:larger;">Nginx&nbsp;저장소&nbsp;생성</span></span>'''
  
 
vi&nbsp;/etc/yum.repos.d/nginx.repo
 
vi&nbsp;/etc/yum.repos.d/nginx.repo
 +
 +
{| class="crayon-table" style="margin-left: 0px; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 14px; line-height: 15px; vertical-align: baseline; text-align: center; color: rgb(102, 102, 102); margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; padding: 0px !important; border: none !important; border-collapse: collapse !important; border-spacing: 0px !important; width: auto !important; background-image: none !important; background-attachment: initial !important; background-color: rgb(253, 253, 253); background-size: initial !important; background-origin: initial !important; background-clip: initial !important; background-position: initial !important; background-repeat: initial !important;"
 +
|- class="crayon-row alt" style="font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px !important; padding: 0px !important; border: none !important; vertical-align: top !important; background: rgb(241, 241, 241);"
 +
| class="crayon-nums" data-settings="show" style="border: 0px; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px !important; padding: 0px !important; vertical-align: top !important; color: rgb(84, 153, 222) !important; background: rgb(223, 239, 255) !important;" | <div class="crayon-nums-content" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; vertical-align: baseline; text-align: left; white-space: nowrap; font-size: 12px !important; background: 0px 50%;"><div class="crayon-num" data-line="crayon-5419e087c5856957844557-1" style="margin: 0px; padding: 0px 5px; border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-variant: inherit; font-weight: inherit !important; line-height: inherit !important; vertical-align: baseline; text-align: center; height: inherit; background: 0px 50%;"><br/></div><div class="crayon-num" data-line="crayon-5419e087c5856957844557-1" style="margin: 0px; padding: 0px 5px; border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-variant: inherit; font-weight: inherit !important; line-height: inherit !important; vertical-align: baseline; text-align: center; height: inherit; background: 0px 50%;"><br/></div><div class="crayon-num" data-line="crayon-5419e087c5856957844557-1" style="margin: 0px; padding: 0px 5px; border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-variant: inherit; font-weight: inherit !important; line-height: inherit !important; vertical-align: baseline; text-align: center; height: inherit; background: 0px 50%;"><br/></div><div class="crayon-num" data-line="crayon-5419e087c5856957844557-1" style="margin: 0px; padding: 0px 5px; border: 0px; font-family: inherit; font-size: inherit !important; font-style: inherit; font-variant: inherit; font-weight: inherit !important; line-height: inherit !important; vertical-align: baseline; text-align: center; height: inherit; background: 0px 50%;"><br/></div></div>
 +
| class="crayon-code" style="border: 0px; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; width: 545px; margin: 0px !important; padding: 0px !important; vertical-align: top !important; background: 0px 50%;" | <div class="crayon-pre" style="margin: 0px; padding: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; vertical-align: baseline; text-align: left; color: rgb(0, 0, 0); white-space: pre; overflow: visible; border: none !important; font-size: 12px !important; background: none !important;"><div class="crayon-line" id="crayon-5419e087c5856957844557-1" style="margin: 0px; padding: 0px 5px; border: 0px; font-family: inherit; font-style: inherit; font-variant: inherit; vertical-align: baseline; height: inherit; font-size: inherit !important; font-weight: inherit !important; line-height: inherit !important; background: 0px 50%;">[nginx]<br/>name=nginx repo<br/>baseurl=[http://nginx.org/packages/centos/$releasever/$basearch/ http://nginx.org/packages/centos/$releasever/$basearch/]<br/>gpgcheck=0<br/>enabled=1<br/></div></div>
 +
|}
 +
 +
 +
 +
<span style="color:#0000FF;"><span style="font-size:larger;">'''Nginx 설치'''</span></span>
 +
<div>
 +
{| class="crayon-table" style="margin-left: 0px; font-family: Monaco, MonacoRegular, 'Courier New', monospace; font-size: 14px; line-height: 15px; vertical-align: baseline; text-align: center; color: rgb(102, 102, 102); border: none !important; margin-top: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; padding: 0px !important; border-collapse: collapse !important; border-spacing: 0px !important; width: auto !important; background-image: none !important; background-attachment: initial !important; background-color: rgb(253, 253, 253); background-size: initial !important; background-origin: initial !important; background-clip: initial !important; background-position: initial !important; background-repeat: initial !important;"
 +
|- class="crayon-row alt" style="font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px !important; padding: 0px !important; border: none !important; vertical-align: top !important; background: rgb(241, 241, 241);"
 +
| class="crayon-nums" data-settings="show" style="border: 0px; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px !important; padding: 0px !important; vertical-align: top !important; color: rgb(84, 153, 222) !important; background: rgb(223, 239, 255) !important;" | <div class="crayon-nums-content" style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; vertical-align: baseline; text-align: left; white-space: nowrap; font-size: 12px !important; background: 0px 50%;"><div class="crayon-num" data-line="crayon-5419e087c5856957844557-1" style="margin: 0px; padding: 0px 5px; border: 0px; font-family: inherit; font-style: inherit; font-variant: inherit; vertical-align: baseline; text-align: center; height: inherit; font-size: inherit !important; font-weight: inherit !important; line-height: inherit !important; background: 0px 50%;"><br/></div></div>
 +
| class="crayon-code" style="border: 0px; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; width: 545px; margin: 0px !important; padding: 0px !important; vertical-align: top !important; background: 0px 50%;" | <div class="crayon-pre" style="margin: 0px; padding: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; vertical-align: baseline; text-align: left; color: rgb(0, 0, 0); white-space: pre; overflow: visible; border: none !important; font-size: 12px !important; background: none !important;"><div class="crayon-line" style="margin: 0px; padding: 0px 5px; border: 0px; font-family: inherit; font-style: inherit; font-variant: inherit; vertical-align: baseline; height: inherit; font-size: inherit !important; font-weight: inherit !important; line-height: inherit !important; background: 0px 50%;">yum install nginx<br/></div><div class="crayon-line" style="margin: 0px; padding: 0px 5px; border: 0px; font-family: inherit; font-style: inherit; font-variant: inherit; vertical-align: baseline; height: inherit; font-size: inherit !important; font-weight: inherit !important; line-height: inherit !important; background: 0px 50%;"><br/></div><div class="crayon-line" style="margin: 0px; padding: 0px 5px; border: 0px; font-family: inherit; font-style: inherit; font-variant: inherit; vertical-align: baseline; height: inherit; font-size: inherit !important; font-weight: inherit !important; line-height: inherit !important; background: 0px 50%;">mkdir -p /etc/nginx/sites-enabled</div><div class="crayon-line" style="margin: 0px; padding: 0px 5px; border: 0px; font-family: inherit; font-style: inherit; font-variant: inherit; vertical-align: baseline; height: inherit; font-size: inherit !important; font-weight: inherit !important; line-height: inherit !important; background: 0px 50%;"><br/></div><div class="crayon-line" style="margin: 0px; padding: 0px 5px; border: 0px; font-family: inherit; font-style: inherit; font-variant: inherit; vertical-align: baseline; height: inherit; font-size: inherit !important; font-weight: inherit !important; line-height: inherit !important; background: 0px 50%;">service nginx start</div></div>
 +
|}
 +
</div>
 +
 +
 +
 +
 +
ppp
  
 
==참고 문헌==
 
==참고 문헌==

2014년 9월 18일 (목) 14:10 판

비동기 이벤트 기반의 Web Server인 nginx를 정리 합니다.

nginx 개요

CentOS 6.5에서 설치

Nginx 저장소 생성

vi /etc/yum.repos.d/nginx.repo





[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
gpgcheck=0
enabled=1


Nginx 설치


yum install nginx

mkdir -p /etc/nginx/sites-enabled

service nginx start



ppp

참고 문헌