1,下载安装 Download, extract and compile Redis with: $ wget http://download.redis.io/releases/redis-3.2.8.tar.gz $ tar xzf redis-3.2.8.tar.gz $ cd redis-3.2.8 $ make 1 2 3 4 5 PS:以前在bin目录下,现在变成了src目录, The binaries that are now compiled are available in t
上午同事爆出这样的问题,使用正确的用户名和错误的密码连接了postgresql数据库,竟然连上了.这不是故意这样神操作,不小心密码写错了,咋一看这样怎么能行,随便输入一个密码都能登陆上.自己测试也是同样的结果.仔细核实代码的确是创建用户名带密码了: CREATE USER iu WITH PASSWORD 'password'; 查了postgresql配置文件才发现,认证方式的确是没有使用密码,原始配置如下: 此配置文件路径为:/var/lib/postgresql/data/pg_hba.c
需求说明: 今天配置了一台redis服务器,想要也和其他的数据库一样配置用户名/密码的方式进行登录. 查找了一下,没看到配置用户名的地方,就是有认证密码,所以就做了测试,在此进行记录. 操作过程: 1.开启redis的密码认证,打开redis.conf,找到以下的内容 [aiprd@redhat6 redis-4.0.2]$ grep "requirepass" redis.conf # If the master is password protected (using the &q