加入收藏 | 设为首页 | 会员中心 | 我要投稿 济南站长网 (https://www.0531zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 服务器 > 搭建环境 > Linux > 正文

CentOS7.2 安装redis 3.0.6集群

发布时间:2021-01-16 11:15:01 所属栏目:Linux 来源:网络整理
导读:副标题#e# 1.环境确认 a.系统版本查看[hadoop@p168 ~]$ cat /etc/redhat-releaseCentOS Linux release 7.2.1511 (Core)?b.安装依赖[hadoop@p168 ~]$?sudo yum?-y?install?tcl?ruby tree??2.安装redis 3.0.6[hadoop@p168 ~]#cd?/usr/local/[hadoop@p168 ~]#w

若要确认输入yes

[?~]#?ps?-ef?|?grep?redis root?????26530?13340??0?12:07?pts/1????00:00:03?./7000/redis-server?*:7000?[cluster] root?????26914?26538??0?12:07?pts/3????00:00:03?./7001/redis-server?*:7001?[cluster] root?????27430?13649??0?12:10?pts/2????00:00:03?./7002/redis-server?*:7002?[cluster] root?????27441?26922??0?12:10?pts/4????00:00:03?./7003/redis-server?*:7003?[cluster] root?????27732?27448??0?12:10?pts/5????00:00:03?./7004/redis-server?*:7004?[cluster] root?????28029?27740??0?12:11?pts/6????00:00:02?./7005/redis-server?*:7005?[cluster] root?????28572??5882??0?12:23?pts/0????00:00:00?redis-cli?-c?-p?7000 root?????30085?28867??0?12:35?pts/7????00:00:00?grep?--color=auto?redis ? [?~]#?netstat?-tnlp?|?grep?redis tcp????????0??????0?0.0.0.0:17000???????????0.0.0.0:*???????????????LISTEN??????26530/./7000/redis-? tcp????????0??????0?0.0.0.0:17001???????????0.0.0.0:*???????????????LISTEN??????26914/./7001/redis-? tcp????????0??????0?0.0.0.0:17002???????????0.0.0.0:*???????????????LISTEN??????27430/./7002/redis-? tcp????????0??????0?0.0.0.0:17003???????????0.0.0.0:*???????????????LISTEN??????27441/./7003/redis-? tcp????????0??????0?0.0.0.0:17004???????????0.0.0.0:*???????????????LISTEN??????27732/./7004/redis-? tcp????????0??????0?0.0.0.0:17005???????????0.0.0.0:*???????????????LISTEN??????28029/./7005/redis-? tcp????????0??????0?0.0.0.0:7000????????????0.0.0.0:*???????????????LISTEN??????26530/./7000/redis-? tcp????????0??????0?0.0.0.0:7001????????????0.0.0.0:*???????????????LISTEN??????26914/./7001/redis-? tcp????????0??????0?0.0.0.0:7002????????????0.0.0.0:*???????????????LISTEN??????27430/./7002/redis-? tcp????????0??????0?0.0.0.0:7003????????????0.0.0.0:*???????????????LISTEN??????27441/./7003/redis-? tcp????????0??????0?0.0.0.0:7004????????????0.0.0.0:*???????????????LISTEN??????27732/./7004/redis-? tcp????????0??????0?0.0.0.0:7005????????????0.0.0.0:*???????????????LISTEN??????28029/./7005/redis-? tcp6???????0??????0?:::17000????????????????:::*????????????????????LISTEN??????26530/./7000/redis-? tcp6???????0??????0?:::17001????????????????:::*????????????????????LISTEN??????26914/./7001/redis-? tcp6???????0??????0?:::17002????????????????:::*????????????????????LISTEN??????27430/./7002/redis-? tcp6???????0??????0?:::17003????????????????:::*????????????????????LISTEN??????27441/./7003/redis-? tcp6???????0??????0?:::17004????????????????:::*????????????????????LISTEN??????27732/./7004/redis-? tcp6???????0??????0?:::17005????????????????:::*????????????????????LISTEN??????28029/./7005/redis-? tcp6???????0??????0?:::7000?????????????????:::*????????????????????LISTEN??????26530/./7000/redis-? tcp6???????0??????0?:::7001?????????????????:::*????????????????????LISTEN??????26914/./7001/redis-? tcp6???????0??????0?:::7002?????????????????:::*????????????????????LISTEN??????27430/./7002/redis-? tcp6???????0??????0?:::7003?????????????????:::*????????????????????LISTEN??????27441/./7003/redis-? tcp6???????0??????0?:::7004?????????????????:::*????????????????????LISTEN??????27732/./7004/redis-? tcp6???????0??????0?:::7005?????????????????:::*????????????????????LISTEN??????28029/./7005/redis-? ? 9.打开防火墙端口 [?~]#?firewall-cmd?--zone=public?--add-port=7000-7005/tcp?--permanent success

(编辑:济南站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

热点阅读