
redis
ChanYeeLi
这个作者很懒,什么都没留下…
展开
-
redis 配置文件微解
# Redis configuration file example. #redis配置文件例子。 # # Note that in order to read the configuration file, Redis must be # started with the file path as first argument: #为了能够加载配置文件,需要在启动命令之后的第一个参数加上配置文件的原创 2017-11-24 16:14:14 · 344 阅读 · 0 评论 -
redis 常用命令、部署和特性
启动命令 ./redis-server –port 6380 & 启动多个redis实例: redis-server /usr/local/redis/redis6380.conf redis-server /usr/local/redis/redis6381.conf 客户端链接 ./redis-cli -p 3680 常用命令keys patternkeys * //表示匹配所原创 2017-12-31 12:15:45 · 452 阅读 · 0 评论 -
Redis (error) NOAUTH Authentication required
出现这个错误是因为设置了密码。 解决方案: 输入命令auth redis密码例如: auth redislichenyi原创 2017-12-31 13:03:54 · 612 阅读 · 0 评论 -
redis 持久化和主从配置
持久化 redis有两种持久化方式 1.rdb(默认的) 2.aof rdb实现机制: 当redis做持久化时,redis会fork一个子进程;子进程将数据写到临时的RDB文件中;当子进程完成后,将原来的RDB文件替换,这种方式的最大的好处就是可以copy-on-write.也就是当正在写入的时候做复制操作。但是也有一个缺点,会有一定的数据丢失。 rdb实现配置:原创 2018-01-04 13:04:41 · 383 阅读 · 0 评论