改めて
yum install gcc
1 |
yum install tcl |
make distclean
# 以下が残る
1 |
<span class="s1">zmalloc.h:50:31: fatal error: jemalloc/jemalloc.h: No such file or directory</span> |
make
make install
http://redis.io/topics/quickstart
[root@ip-172-31-20-29 redis-3.0.7]# mkdir /etc/redis
[root@ip-172-31-20-29 redis-3.0.7]# mkdir /var/redis
[root@ip-172-31-20-29 redis-3.0.7]# mkdir /var/redis/6379
[root@ip-172-31-20-29 redis-3.0.7]# cp utils/redis_init_script /etc/init.d/redis_6379
[root@ip-172-31-20-29 redis-3.0.7]# cp redis.conf /etc/redis/6379.conf
[root@ip-172-31-20-29 redis-3.0.7]# vi /etc/redis/6379.conf
- Set daemonize to yes (by default it is set to no).
- Set the pidfile to
/var/run/redis_6379.pid
(modify the port if needed). - Change the port accordingly. In our example it is not needed as the default port is already 6379.
- Set your preferred loglevel.
- Set the logfile to
/var/log/redis_6379.log
- Set the dir to /var/redis/6379 (very important step!
[root@ip-172-31-20-29 redis-3.0.7]# /etc/init.d/redis_6379 start
★自動起動
# chkconfig: – 85 15
# description: redis-server
# processname: redis
chkconfig redis_6379 on