Install redis in Linux and redis in linux
Environment: centos7 reference: http://blog.csdn.net/lk10207160511/article/details/50364088:Install redis:Open terminal input su switch to root user input password input cd enter root directory install gcc already installed can skip installation command yum install gcc download redis: wget http://labfile.oss.aliyuncs.com/files0422/redis-2.8.9.tar.gz unzip redis: tar xvfz redis-2.8.9.tar.gz into redis directory: cd redis-2.8.9 install redis execute: make install may have error: jemalloc/jemalloc. h: No file or directory error solved: make MALLOC = libc execute re-Execute Installation Steps reference: http://www.zhixing123.cn/ubuntu/50669.html test redis installation is successful make test may have error: You need tcl 8. 5 or newer in order to run the Redis test solution: solution 1: wget http://downloads.sourceforge.net/tcl/tcl8.6.1-src.tar.gzsudo tar xzvf tcl8.6.1-src.tar.gz-C/usr/local/cd/usr/local/tcl8.6.1/unix/sudo. /configuresudo makesudo make install solution 2: or use the: yum install tcl command to install. After searching, you find that you do not need to install it. Run it directly in the src directory. /redis-server can be tested reference: http://www.codeceo.com/article/centos-redis-setup.html in Redis after installation is complete, pay attention to some important files, ls command can be used to query See. Server: src/redis-server, client: src/redis-cls, default configuration file: redis. conf lscd srcls and then place the executable file in the $ PATH environment directory, you do not need to enter the complete path cp redis-server/usr/local/bin/cp redis-cli/usr/local/bin/for later program execution/Start Redis-serverRedis-serverView redisPs-ef | grep redisRun the startup command to check the status of the Redis ServerNetstat-nlt | grep 6379Start Redis-clientSu (enter the root password to enter the root directory) cd redis-cli to change the startup mode, refer to the original article