First step: Install the plugin:
Yum-y Install CPP binutils glibc glibc-kernheaders glibc-common glibc-devel gcc make gcc-c++ libstdc++-devel tcl
Second step: Create the directory, upload the resource package decompression
Mkdir-p/usr/local/src/rediscd/usr/local/src/rediswget http://download.redis.io/releases/redis-2.8.17.tar.gz or RZ Upload TAR-XVF redis-2.8.17.tar.gz
Step three: Enter the directory, install
CD Redis-2.8.17makemake Install
Fourth Step: Modify the configuration file
CP redis.conf/etc/vi/etc/redis.conf# modified as follows, default is Nodaemonize Yes
Fifth step: Start Redis
Redis-server/etc/redis.conf
Sixth step: Test
Redis-cli
Input: Ping
Appears: Pong
Indicates the installation is complete!
Seventh Step: Open Redis Port number: 6379, let IT support remote access.
/sbin/iptables-i input-p TCP--dport 6379-j accept/sbin/iptables-i input-p tcp--dport 6379-j ACCEPT/ETC/RC.D/INIT.D /iptables Save
Get! Done!
This article is from the "Simple Life" blog, so be sure to keep this source http://simplelife.blog.51cto.com/9954761/1740137
Installing Redis under Linux