CentOS
From Chaehyun
(Difference between revisions)
(→easy_install 설치하기) |
(→easy_install 설치하기) |
||
(6 intermediate revisions not shown) | |||
Line 8: | Line 8: | ||
** wget http://peak.telecommunity.com/dist/ez_setup.py | ** wget http://peak.telecommunity.com/dist/ez_setup.py | ||
** sudo python ez_setup.py | ** sudo python ez_setup.py | ||
+ | * sudo easy_install mysql-python | ||
+ | * sudo easy_install beautifulsoup4 | ||
+ | * wget http://soupselect.googlecode.com/svn/trunk/soupselect.py | ||
- | == php5 설치하기 == | + | == php5 설치하기 (설치 안됨) == |
* wget http://dev.centos.org/centos/5/CentOS-Testing.repo | * wget http://dev.centos.org/centos/5/CentOS-Testing.repo | ||
* mv CentOS-Testing.repo /etc/yum.repos.d/ | * mv CentOS-Testing.repo /etc/yum.repos.d/ | ||
Line 15: | Line 18: | ||
* 이럴게 했는데 안될때 | * 이럴게 했는데 안될때 | ||
- | ** /etc/yum.repos.d/CentOS-Base.repo | + | ** vim /etc/yum.repos.d/CentOS-Base.repo |
+ | <pre> | ||
추가 | 추가 | ||
--------------------------------------------- | --------------------------------------------- | ||
Line 25: | Line 29: | ||
gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka | gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka | ||
----------------------------------------------------------- | ----------------------------------------------------------- | ||
+ | </pre> | ||
** yum update php | ** yum update php | ||
+ | |||
+ | == lsyncd를 이용하여 실시간 백업하기 == | ||
+ | * sudo yum install lsyncd | ||
+ | * sudo vim /etc/lsyncd.conf | ||
+ | <pre> | ||
+ | settings = { | ||
+ | statusFile="/tmp/lsyncd.stat", | ||
+ | statusInterval=1, | ||
+ | } | ||
+ | sync{ | ||
+ | default.rsync, | ||
+ | source="/mnt/submit", | ||
+ | target="codesprint.reople.com:/mnt/submit", | ||
+ | rsyncOps="-az", | ||
+ | } | ||
+ | </pre> | ||
+ | * lsyncd /etc/lsyncd.conf | ||
+ | ** http://centossrv.com/lsyncd.shtml |
Latest revision as of 08:03, 31 January 2013
Contents |
centOS 에서 python 2.6 설치하기
- sudo rpm -ivvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
- sudo yum install python26 python26-tools python26-devel.x86_64
easy_install 설치하기
- sudo rpm -ivh http://pypi.python.org/packages/any/s/setuptools/setuptools-0.6c11-1.src.rpm
- 안될 경우
- wget http://peak.telecommunity.com/dist/ez_setup.py
- sudo python ez_setup.py
- sudo easy_install mysql-python
- sudo easy_install beautifulsoup4
- wget http://soupselect.googlecode.com/svn/trunk/soupselect.py
php5 설치하기 (설치 안됨)
- wget http://dev.centos.org/centos/5/CentOS-Testing.repo
- mv CentOS-Testing.repo /etc/yum.repos.d/
- yum --enablerepo=c5-testing update php
- 이럴게 했는데 안될때
- vim /etc/yum.repos.d/CentOS-Base.repo
추가 --------------------------------------------- [utterramblings] name=Jason's Utter Ramblings Repo baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/ enabled=1 gpgcheck=1 gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka -----------------------------------------------------------
- yum update php
lsyncd를 이용하여 실시간 백업하기
- sudo yum install lsyncd
- sudo vim /etc/lsyncd.conf
settings = { statusFile="/tmp/lsyncd.stat", statusInterval=1, } sync{ default.rsync, source="/mnt/submit", target="codesprint.reople.com:/mnt/submit", rsyncOps="-az", }
- lsyncd /etc/lsyncd.conf