체로키(Cherokee) 는 Nginx, Lighttpd 와 같이 가볍고 빠른 웹서버입니다.
아래는 체로키가 지원하는 기술입니다.

FastCGI, SCGI, PHP, CGI, SSI, TLS and SSL encrypted connections, Virtual hosts, Authentication, on the fly encoding, Load Balancing, Apache compatible log files, Data Base Balancer, downtime-free updates and upgrades, Reverse HTTP Proxy, and much more.

필자는 소스로 설치를 진행하였으며 Default 설정으로 설명 드립니다. (더 자세한 기술 설명은 나중에 Cherokee 카테고리로.. 포스팅될듯..?)

Cherokee 공식 홈페이지에서 제일 빠른 나라로 다운로드 받습니다.

http://www.cherokee-project.com/downloads.html

[root@yongbok ~]# cd /usr/local/src
[root@yongbok ~]# wget http://mirror.yongbok.net/cherokee/LATEST_is_1.0.14/cherokee-1.0.14.tar.gz
[root@yongbok ~]# tar xzvf cherokee-1.0.14.tar.gz
[root@yongbok ~]# cd cherokee-1.0.14

[root@yongbok ~]# ./configure –prefix=/usr/local/cherokee –sysconfdir=/usr/local/cherokee/etc –localstatedir=/usr/local/cherokee/var

============================
Install prefix        /usr/local/cherokee
CFLAGS                -g -O2
trace                 no
backtracing           no
sendfile()            yes
IPv6 support          yes
Polling method 1      epoll
Polling method 2      poll
Polling method 3      select
Threading support     yes
OpenSSL support       no
PCRE library          built-in
Compatible PAM        no
Python                yes
LDAP                  no
MySQL                 no
GeoIP                 no
FFMpeg                no
crypt support         multithread

Installation dir /usr/local/cherokee/bin
============================

+——————————————————————+
| License:                                                         |
| This software is subject to the GPL License, available in this   |
| distribution in the file COPYING. Please, remember that any copy |
| distribution or modification of the software is subject to it.   |
+——————————————————————+

Thank you for using Cherokee.

[root@yongbok ~]# make ; make install

체로키는 일반 웹서버와 다르게 파이썬으로 만들어진 cherokee-admin 이라는 것으로 admin 페이지에서 cherokee.conf 설정 파일을 쉽게 수정 할수 있습니다.
cherokee-admin 를 실행하기 전에 알아두셔야 할점이.. cherokee-admin을 그냥 실행할 경우 http://127.0.0.1:9090/ 으로 접속 하라고 URL을 던저 주는데요. 이 URL로 접근하는 경우가 로컬에서 직접 웹브라우저로 접속하면 열리지만 외부에서 접속하고자 할때에는 서버 아이피를 binding 해줘야 외부에서 접속이 가능하게 됩니다. 뭐.. 잡소리가 길어졌군요..ㅋ

[root@yongbok ~]# /usr/local/cherokee/sbin/cherokee-admin -b 192.168.0.4 -p 9090 &

 

cherokee-admin 을 실행시 나오는 비밀번호는 OTP 방식으로 cherokee-admin를 실행할때 마다 다르게 발급 해줍니다.

[root@yongbok ~]# /usr/local/cherokee/sbin/cherokee-admin -b 192.168.0.4 -p 9090
[19/12/2010 16:32:22.203] (error) rrd_tools.c:120 – Could not find the rrdtool binary.
Cherokee Web Server 1.0.14 (Dec 19 2010): Listening on port ALL:9090, TLS
disabled, IPv6 enabled, using epoll, 4096 fds system limit, max. 2041
connections, caching I/O, 5 threads, 408 connections per thread, standard
scheduling policy

Login:
User:              admin
One-time Password: W2YAVpJogtOrLIRH

Web Interface:
URL:               http://localhost:9090/

 

URL로 웹브라우저로 접속하면 인증창이 뜨니 발급받은 아이디와 비밀번호를 입력하고 접속합니다.

흐흐.. 체로키 관리자 페이지가 뜹니다. 신기한게..프로세서와 메모리 bar가 와따리가따리..
기본적으로 설정해야 할 곳들은 General, vServers, Advanced 입니다.

General 메뉴는 별거 없습니다. IPv6 지원 설정이랑 Server Tokens(웹서버 정보 뜨는거)랑

체로키가 작동 될 사용자와 그룹 및 chroot 만 해줘도 별상관은 없어요..

vServers 는 가상호스트 설정 부분인데.. 대충 넘어 갑니다.

에러로그 설정 부분입니다. 요긴 아파치 형식의 로그를 가능하도록 설정 할수도 있습니다. 뭐.. 여기도 대충 넘어가죠

advanced 화면이며 keep alive 설정과 Polling Method 설정입니다. Polling Method는 epoll, poll, select 가 있는데 epoll을 많이 사용하니.. 수동으로 epoll 선택하시던가.. 아님 자동으로 설정 해놓고 넘어가심이..

이제 다시 홈으로 넘어가서 녹색 버튼 Start Server 를 눌러 체로키를 실행합니다.

실제로 접속해보면 짜잔.. 뜹니다.

 

참고
basics_installation_unix

http://www.cherokee-project.com/doc/basics_installation_unix.html

config_quickstar

http://www.cherokee-project.com/doc/config_quickstart.html