CentOS Install Redis

已安装GCC
REDIS下载地址

1
2
3
4
5
6
7
8
wget http://download.redis.io/releases/redis-3.2.3.tar.gz
tar xzf redis-3.2.3.tar.gz
cd redis-3.2.3
<make (致命错误:jemalloc/jemalloc.h:没有那个文件或目录)>
make MALLOC=libc
firewall-cmd --zone=public --add-port=6379/tcp --permanent
systemctl stop firewalld
systemctl start firewalld

redis.conf 末尾增加bing 0.0.0.0

1
2
redis-server
redis-cli -h xxx.xxx.xxx.xxx