Redis is written in C free open-source, high-performance, distributed memory databases, NoSQL database based on memory to run and support persistence.
installation
1) downloaded from the official website http://download.redis.io/releases/ redis compressed packages, such as redis-5.0.3.tar.gz
2) Linux server upload directory opt, unzip the file package tar -zxvf redis-5.0.3.tar.gz, folder name redis-5.0.3
3) Cut the directory mv redis-5.0.3 / usr / local / redis into the folder directory, execute make command, continue to make make install after completion
4) into the src directory, start the service execution ./redis-server ../redis.conf
5) Log redis service,. / Redis-clic
Redis is no default login password and run in a console window, modify redis.conf file requirepass password, daemonize parameters as the background
The default parameters are not open requirepass
yes it is in background mode
Since the launch of the system
1) Copy the configuration file redis.conf / etc / redis /, renamed 6379.conf
2) edit the configuration file, running in the background daemonize is yes
3) Copy the files in the installation directory cp utils / redis_init_script /etc/init.d/redis
4) Previous redis edit documents, according to the actual directory, modify the file a few lines ago
Set file execute permissions chmod 777 /etc/init.d/redis
5) Set the boot: chkconfig redis on
设为开机关闭:chkconfig redis off
6)启动服务
service redis start
停止服务
service redis stop
其它
复制常用命令到/usr/local/bin,关闭服务 redis-cli shutdown