Linux下redis的安装
程序员文章站
2022-07-14 15:40:34
...
1.下载好安装包,并解压
[[email protected] /]# cd /usr/local/
[[email protected] local]# wget http://download.redis.io/releases/redis-3.2.0.tar.gz
[[email protected] local]# tar -zxvf redis-3.2.0.tar.gz
2.进行编译
[[email protected]ocalhost local]# cd redis-3.2.0/
[[email protected] redis-3.2.0]# make prefix=/usr/local/redis-3.2.0/bin install
3.修改redis.conf配置文件
[[email protected] redis-3.2.0]# vim redis.conf
# Examples:
#
# bind 192.168.1.100 10.0.0.1
# bind 127.0.0.1 ::1
...
protected-mode no
...
requirepass 123456
4.启动redis服务器
[[email protected] redis-3.2.0]# cd src/
[[email protected] src]# ./redis-server ../redis.conf