1, redis upload and download the installation package to linux server directory: / usr / local / redis.
2, extract: tar -zxvf redis-5.0.7.tar.gz
3, compiler installation: make && make install (if the system is not installed dependencies, you need to install redis dependencies: yum install gcc-c ++)
4, modify the kernel configuration file redis.conf:
4.1, the form table daemon start after redis: daemonize yes
4.2, configuration redis workspace: dir / usr / local / redis / Working
4.3, modify redis binding information: the bind 0.0.0.0
4.4, modify redis Password: requirepass 1234567
5, modify redis startup script: There is a utils directory under redis unzipped directory, the directory has a redis_init_script execute the script, copy it to the /etc/init.d below
5.1, modify the startup script in a few constants, consistent with the configuration file
5.2, the start command: ./ redis_init_script start
5.3, close the command: ./ redis_init_script stop
6, will be added to boot from the start script: chkconfig redis_init_script on