CentOS
델리마운트 위키
The Community ENTerprise Operating System
목차 |
패키지 설치
Yum
Yellowdog Updater, Modified. 데비안 계열의 리눅스를 사용해보면, apt-get의 편리함에 익숙해지게 됩니다. Yum은 rpm 기반 시스템의 apt-get 정도로 이해하면 될 듯 합니다.
Apache
yum install httpd
설정은 다음의 규칙을 사용하겠습니다.
- 기본 설정 파일
/etc/httpd/conf/httpd.conf
- 로드할 모듈
/etc/httpd/conf.d/*.conf
- VirtualHosts (우분투의 관례)
/etc/httpd/sites-available/* (가능한 설정들) /etc/httpd/sites-enabled/XXX-* (적용한 설정들, XXX는 000, 001, 002 와 같은 넘버링으로 로드 순서에 상관이 있음.)
PostgreSQL
yum install postgresql yum install postgresql-server /sbin/chkconfig postgresql on /sbin/service postgresql start
Ruby
yum install ruby yum install rdoc yum install irb yum install ruby-devel
Rails
gem install rails gem install rails -v 1.2.4
Passenger
gem install passenger passenger-install-apache2-module
CentOS 5 x64 사용중 Apache 2를 찾지 못하는 문제 발생시
yum install apr-util-devel.x86_64 yum install expat-devel.x86_64 yum install apr-devel.x86_64 passenger-install-apache2-module
APXS2 문제 발생시
whereis apxs export APXS2=/path/to/apxs passenger-install-apache2-module
- Install — Phusion Passenger™ (a.k.a. mod_rails - mod_rack)
- CentOS 5 64bit install notes (apxs errors, apache2 not found) - Phusion Passenger Discussions
- Issue 3 - phusion-passenger - Commandline option should be provided to set apxs2's and apr-config's path (was: APXS variable needs to be set, not APXS2 (Mac OSX))
Postgres Driver
yum install ruby-devel yum install postgresql-devel gem install postgres
수동
Gem
- Ruby를 설치합니다.
- RubyForge: RubyGems: 프로젝트 정보 에서 최신 버전의 rubygems를 다운로드 받습니다.
- 압축을 해제합니다.
- 압축이 해제된 디렉터리로 이동한 후 설치합니다.
ruby setup.rb
UnRAR
- WinRAR and RAR archiver addons 에서 자신의 배포판에 맞는 UnRAR을 다운로드 받습니다.
- 압축을 해제합니다.
- UnRAR for x64 Linux 기준으로 단일 실행파일입니다.
- 실행파일을 /usr/local/bin/에 복사합니다.
- 권한과 소유자를 변경하고, 심볼링 링크를 겁니다.
cd /usr/local/bin/ chmod 755 unrar-linux-x64 chown root:root unrar-linux-x64 cd /usr/bin/ ln -s ../local/bin/unrar-linux-x64 unrar
