redis单机版安装

环境

环境 版本
linux Red Hat Enterprise Linux Server release 6.10 (Santiago)
redis 3.2.12

下载

redis官网网站去下载,具体下载地址

1
2
3
4
5
6
7
8
9
10
11
12
13
[root@kiko1 tools]# wget http://download.redis.io/releases/redis-3.2.12.tar.gz
[root@kiko1 tools]# tar -xvf redis-3.2.12.tar.gz
[root@kiko1 tools]# cd redis-3.2.12
[root@kiko1 redis-3.2.12]# make
[root@kiko1 redis-3.2.12]# cd src && make install
[root@kiko1 redis-3.2.12]# cd utils
[root@kiko1 utils]# ./install_server.sh

初始化设置

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Welcome to the redis service installer
This script will help you easily set up a running redis server
Please select the redis port for this instance: [6379]
Selecting default: 6379
Please select the redis config file name [/etc/redis/6379.conf]
Selected default - /etc/redis/6379.conf
Please select the redis log file name [/var/log/redis_6379.log]
Selected default - /var/log/redis_6379.log
Please select the data directory for this instance [/var/lib/redis/6379]
Selected default - /var/lib/redis/6379
Please select the redis executable path [/usr/local/bin/redis-server]
Selected config:
Port : 6379
Config file : /etc/redis/6379.conf
Log file : /var/log/redis_6379.log
Data dir : /var/lib/redis/6379
Executable : /usr/local/bin/redis-server
Cli Executable : /usr/local/bin/redis-cli
Is this ok? Then press ENTER to go on or Ctrl-C to abort.