$ wget http://download.redis.io/releases/redis-3.2.0.tar.gz
$ tar xzf redis-3.2.0.tar.gz
$ cd redis-3.2.0
$ make

 

cp redis.conf /etc/

cp redis-benchmark redis-cli redis-server /usr/bin/

 

修改redis.conf的bind

增加密码配置requirepass,这个根据需要配置,不用密码也可以。

 

修改防火墙配置文件
vi /etc/sysconfig/iptables
加入端口配置
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 6379 -j ACCEPT
重新加载规则
service iptables restart

 

启动:

redis-service /etc/redis.conf

 

 

问题:

1. zmalloc.h:50:31: fatal error: jemalloc/jemalloc.h: No such file or directory

    install gcc 或者 make时使用 make MALLOC=libc 命令

相关文章:

  • 2021-06-04
  • 2021-09-27
  • 2021-12-30
  • 2021-11-12
  • 2021-07-13
  • 2021-04-09
  • 2022-01-26
  • 2022-12-23
猜你喜欢
  • 2021-12-08
  • 2022-01-16
  • 2021-10-21
  • 2021-03-31
  • 2022-12-23
  • 2021-12-26
相关资源
相似解决方案