摘要: 1、开放端口 firewall-cmd --zone=public --add-port=5672/tcp --permanent # 开放5672端口 firewall-cmd --zone=public --remove-port=5672/tcp --permanent #关闭5672端口 f 阅读全文
posted @ 2020-05-15 16:30 alenblue\own 阅读(1670) 评论(0) 推荐(0) 编辑
摘要: 1. 执行下面的命令,将导致ifconfig出现ens33,但没有ip地址 ifconfig ens33 up 2. 执行下面的命令 systemctl stop NetworkManager ifup ens33 3. 重启网络 systemctl restart network.service 阅读全文
posted @ 2020-05-15 16:13 alenblue\own 阅读(1198) 评论(0) 推荐(0) 编辑
摘要: 一: 添加依赖 <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependency> 阅读全文
posted @ 2020-05-15 15:04 alenblue\own 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 1, 查看centos版本 [root@localhost bin]# cat /etc/redhat-release CentOS Linux release 7.7.1908 (Core) 2, redis版本 [root@localhost bin]# redis-server -v Redi 阅读全文
posted @ 2020-05-15 11:59 alenblue\own 阅读(635) 评论(0) 推荐(0) 编辑
摘要: Centos7.6安装redis6.0.1 redis最新版下载地址 安装redis 报错1:/bin/sh: cc: command not found 报错2:server.c:xxxx:xx: error: ‘xxxxxxxx’ has no member named ‘xxxxx’ 其他命令 阅读全文
posted @ 2020-05-15 11:16 alenblue\own 阅读(2859) 评论(0) 推荐(1) 编辑
摘要: # 查看所有的key 127.0.0.1:6379> keys * # 判断一个key是否存在 exists name # 将当前key移动到其他库 move name 1 # expire 给这个key设置过期时间 127.0.0.1:6379> set key value OK 127.0.0. 阅读全文
posted @ 2020-05-15 10:53 alenblue\own 阅读(150) 评论(0) 推荐(0) 编辑
摘要: [root@XXXbin]# redis-benchmark -h localhost -p 6379 -c 100 -n 100000 PING_INLINE 100000 requests completed in 1.25 seconds 100 parallel clients 3 byte 阅读全文
posted @ 2020-05-15 10:22 alenblue\own 阅读(253) 评论(0) 推荐(0) 编辑