1、安全性 设置客户端连接后进行任何其他指定前需要使用的密码。 警告: 因为redis速度相当快,所以在一台比较好的服务器下,一个外部的用户可以在一秒钟进行150k次的密码尝试,这意味着需要指定非常非常强大的密码来防止暴力破解。 首先在配置文件redis.conf里设置密码,如图所示 这就设置好密码 ...
分类:
其他好文 时间:
2016-05-21 13:02:52
阅读次数:
175
今天配置redis主从复制时出现master_link_status:down提示。 首先打开slave的redis.conf配置文件,确定slaveof 和masterauth 两个选项配置是否正确。 然后再把后台进程的选项关闭:daemonize no(应该大多数同学为了方便把它设为yes了) ...
分类:
其他好文 时间:
2016-05-18 17:43:16
阅读次数:
975
Redis默认配置是不需要密码认证的,也就是说只要连接的Redis服务器的host和port正确,就可以连接使用。这在安全性上会有一定的问题,所以需要启用Redis的认证密码,增加Redis服务器的安全性。 1. 修改配置文件 Redis的配置文件默认在/etc/redis.conf,找到如下行: ...
分类:
其他好文 时间:
2016-05-16 10:56:20
阅读次数:
143
今天使用jedis客户端api连接远程连接redis的时候,一直报错,如下: 原来是redis默认只能localhost登录,所以需要开启远程登录。解决方法如下: 在redis的配置文件redis.conf中,找到#bind localhost注释掉。 注释掉本机,局域网内的所有计算机都能访问。 b ...
分类:
其他好文 时间:
2016-05-16 10:44:45
阅读次数:
409
1 redis简单的配置文件
[root@192.168.56.159 7007]cat redis.conf
daemonize yes
pidfile /var/run/redis7007.pid
port 7007
tcp-backlog 511
timeout 0
tcp-keepalive 0
loglevel notice
logfile "/tmp/redis7007.log"...
分类:
其他好文 时间:
2016-05-12 21:34:26
阅读次数:
178
# Redis配置文件样例
# Note on units: when memory size is needed, it is possible to specifiy
# it in the usual form of 1k 5GB 4M and so forth:
#
# 1k => 1000 bytes
# 1kb => 1024 bytes
# 1m => 1000000 bytes...
分类:
其他好文 时间:
2016-05-12 15:50:49
阅读次数:
211
下载 可以下载解压安装的 地址:https://github.com/dmajkic/redis/downloads 修改 redis.conf 取消注释 requirepass foobared运行 redis-server运行 redis-cli 授权 auth foobared 下载 nuge ...
分类:
数据库 时间:
2016-05-12 06:51:38
阅读次数:
236
redis.conf配置文件参数详解#Redisconfigurationfileexample.
##########################################GENERAL########################################
daemonizeyes#是否开启在后台运行redis,默认为no,不开启
pidfile/var/run/redis/redis.pid#redis在后台运行时,默认p..
分类:
其他好文 时间:
2016-05-07 01:20:46
阅读次数:
229
#!/bin/sh
#author:taokey
#date:2016-05-06
#chkconfig:3458515
#description:Redisisapersistentkey-valuedatabase
#processname:redis-server
#config:/etc/redis/6379.conf
#config:/var/redis
#pidfile:/var/redis/run/redis_6379.pid
#Sourcenetworkingconfiguration.
./..
分类:
数据库 时间:
2016-05-07 01:20:39
阅读次数:
203
#!/bin/sh
#author:taokey
#date:2016-05-06
#chkconfig:3458515
#description:Redisisapersistentkey-valuedatabase
#processname:redis-server
#config:/etc/redis/6379.conf
#config:/var/redis
#pidfile:/var/redis/run/redis_6379.pid
#Sourcenetworkingconfiguration.
./..
分类:
数据库 时间:
2016-05-07 01:19:48
阅读次数:
184