愤怒中的小草

博客园 首页 新随笔 联系 订阅 管理

2018年12月6日 #

摘要: 查看开放的端口 netstat -nupl (UDP类型的端口)netstat -ntpl (TCP类型的端口) a 表示所有 n表示不查询dns t表示tcp协议 u表示udp协议 p表示查询占用的程序 l表示查询正在监听的程序 阅读全文
posted @ 2018-12-06 13:40 愤怒中的小草 阅读(118) 评论(0) 推荐(0) 编辑

2018年12月5日 #

摘要: [root@insure src]# ./redis-cli -c -h 172.16.*.* -p 6370 输入密码: auth 密码 查看节点信息 172.16.*.*:6370> cluster nodes 查看节点详细信息 172.16.*.*:6373> info replication 阅读全文
posted @ 2018-12-05 15:52 愤怒中的小草 阅读(424) 评论(0) 推荐(0) 编辑

摘要: application.properties 集群配置 application.properties 单机版 阅读全文
posted @ 2018-12-05 14:32 愤怒中的小草 阅读(1636) 评论(0) 推荐(0) 编辑

2018年12月3日 #

摘要: 阿里云上面装redis集群基本被虐死,主要问题就是私有IP和公有IP。 下面分享成功搭建的步骤: 两台测试服务器,分别为:127.0.0.1,127.0.0.2.每分服务器有3个节点。 1.127.0.0.1 创建节点 在目录/opt/redis-4.0.2 mkdir cluster mkdir 阅读全文
posted @ 2018-12-03 19:51 愤怒中的小草 阅读(1529) 评论(0) 推荐(0) 编辑

2018年12月1日 #

摘要: 首先添加yum库 # cd /etc/yum.repos.d/ && vi docker.repo 使用命令 curl -fsSL https://get.docker.com/ | sh 进行下载 查看docker版本 docker version 查看是否有docker镜像 docker inf 阅读全文
posted @ 2018-12-01 11:16 愤怒中的小草 阅读(146) 评论(0) 推荐(0) 编辑

摘要: spring cloud ribbon是HTTP和TCP的客户端负载均衡工具,基于netflix ribbon实现,springcloud对其做了封装。 服务器负载均衡原理就是通过心跳检测来剔除故障的服务节点以保证服务清单中的节点都是正常的。 当客户端发消息到服务端,负载均衡(软件或者硬件)按某种算 阅读全文
posted @ 2018-12-01 10:09 愤怒中的小草 阅读(643) 评论(0) 推荐(0) 编辑

2018年11月30日 #

摘要: 1.配置MongoDB的yum源 # vi /etc/yum.repos.d/mongodb-org-4.0.repo [mongodb-org-4.0]name=MongoDB Repositorybaseurl=https://repo.mongodb.org/yum/redhat/7Serve 阅读全文
posted @ 2018-11-30 23:34 愤怒中的小草 阅读(136) 评论(0) 推荐(0) 编辑

摘要: 两台服务器 127.0.0.101 A 主服务器 127.0.0.108 B 从服务器 从服务器设置 1.修改redis.conf 依次修改daemonize no改为daemonize yes 默认后台运行#pidfile /var/run/redis_6379.pidpidfile /opt/r 阅读全文
posted @ 2018-11-30 15:56 愤怒中的小草 阅读(118) 评论(0) 推荐(0) 编辑

摘要: 查看redis版本 redis-server -v或者redis-cli -v 安装redis 硬件要求 查看版本 uname -a 内存32G 8核CPU 查看内存大小 cat /proc/meminfo | grep MemTotal 查看CPU核数 cat /proc/cpuinfo | gr 阅读全文
posted @ 2018-11-30 15:45 愤怒中的小草 阅读(147) 评论(0) 推荐(0) 编辑

2018年11月29日 #

摘要: 查询安装路径: whereis mysql连接mysql: mysql -u root -p第一步:创建用户CREATE USER 'claim_prod'@'%' IDENTIFIED BY 'Password123!'; flush privileges;select user,host fro 阅读全文
posted @ 2018-11-29 13:23 愤怒中的小草 阅读(161) 评论(0) 推荐(0) 编辑