美文网首页
redis_linux7

redis_linux7

作者: warmi_ | 来源:发表于2019-01-21 09:24 被阅读0次

https://redis.io/download 安装步骤
错误:-bash: make: command not found

yum install  make

错误:/bin/sh: cc: command not found

 yum install gcc-c++ 

其中一行错误:zmalloc.h:50:31: fatal error: jemalloc/jemalloc.h: No such file or directory

make distclean(清除上次编译失败残留的文件)
make && make install

后台启动并远程,改密码:
在redis的目录下:vi redis.conf
1,daemonize yes
2,bind 0.0.0.0
3,requirepass password
4,protected-mode no
保存退出
加上配置目录运行:src/redis-server redis.conf
ps -ef|grep redis(查看redis是否后台运行成功)

image.png
image.png
image.png

PS:远程还连不上的话,看看是不是关了6379端口o(╥﹏╥)o

#查看已放行端口
firewall-cmd --zone=public --list-ports
#放行6379
firewall-cmd --zone=public --add-port=6379/tcp --permanent
#重载配置
firewall-cmd --reload

相关文章

  • redis_linux7

    https://redis.io/download 安装步骤错误:-bash: make: command not...

网友评论

      本文标题:redis_linux7

      本文链接:https://www.haomeiwen.com/subject/dvpqjqtx.html