redis
DQchat
java虽好,请不要贪杯
展开
-
redis 常见问题
1. 使redis以守护进程启动设置 , 修改 redis.conf daemonize no 你改成 yes 2. 使redis可以远程访问 ,绑定IP地址,看业务开放,修改redis.conf bind 0.0.0.0 3. 使redis可以远程登录,关闭保护模式,修改redis.conf protected-mode no ...原创 2018-08-09 10:09:43 · 136 阅读 · 0 评论 -
spring boot 集成redis 解决value的编码问题
1. pom中添加依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependency> 2. appli...原创 2018-08-14 17:38:20 · 1085 阅读 · 0 评论 -
springboot 缓存 Cacheable 集成redis
1. 开启缓存注解 @EnableCaching @Configuration public class RedisConfig { @SuppressWarnings({ "rawtypes", "unchecked" }) @Bean public RedisTemplate redisTemplate(RedisConnectionFactory connectionFactory...原创 2018-08-14 18:03:45 · 3859 阅读 · 2 评论 -
centos 7 redis安装
1. 到redis 下载 redis , 地址:http://download.redis.io/releases/redis-4.0.6.tar.gz 2. 创建一个redis目录,把redis把redis安装包 放到此目录下 3. 解压 redis [root@localhost redis]# tar -xvf redis-4.0.11.tar.gz 4. 安装gcc依赖,gcc...原创 2018-08-07 19:41:54 · 200 阅读 · 0 评论