How to statically compile redis 3.0.2 on CentOS 5 (RHEL 5)
wget http://download.redis.io/releases/redis-3.0.2.tar.gz
wget http://prdownloads.sourceforge.net/tcl/tcl8.5.18-src.tar.gz
Install tcl8.5
tar xfz tcl8.5.18-src.tar.gz
cd tcl8.5.18/unix
./configure
make
make test
make install
Compile redis
Statically linked binaries
make CFLAGS="-static" EXEEXT="-static" LDFLAGS="-I/usr/local/include/"
Dynamically linked binaries
make LDFLAGS="-I/usr/local/include/"
How to manually install redis
cd src/ cp redis-{server,cli} /usr/local/bin/ chown root: /usr/local/bin/redis-{server,cli} chmod 755 /usr/local/bin/redis-{server,cli} mkdir /{var,etc}/redis /var/redis/6379 chmod 775 /{var,etc}/redis cp redis.conf /etc/redis/6379.conf sed -i 's/daemonize no/daemonize yes/' /etc/redis/6379.conf sed -i 's,pidfile /var/run/redis.pid,pidfile /var/run/redis_6379.pid,' /etc/redis/6379.conf sed -i 's/^# bind 127.0.0.1/bind 127.0.0.1/' /etc/redis/6379.conf sed -i 's,logfile "",logfile "/var/log/redis_6379.log",' /etc/redis/6379.conf sed -i 's,dir ./,dir /var/redis/6379,' /etc/redis/6379.conf
'리눅스 문서' 카테고리의 다른 글
CentOS 5.x Error: Cannot find a valid baseurl for repo: extras (4) | 2017.10.26 |
---|---|
redis 데이터 새서버로 이전하기 (4) | 2016.12.01 |
MongDB mongod.log WARNING: soft rlimits too low (4) | 2016.08.01 |
freeradius+openvpn+mysql 연동 하는방법 (4) | 2016.07.12 |
하둡2.5와 hive설치 및 예제 (4) | 2016.05.02 |