php:phpredisadmin配置登录验证
一,编辑配置文件
[root@blog phpredisadmin]# vi includes/config.inc.php
找到如下段落:
// Uncomment to enable HTTP authentication
/*'login' => array(
// Username => Password
// Multiple combinations can be used
'admin' => array(
'password' => 'adminpassword',
),
'guest' => array(
'password' => '',
'servers' => array(1) // Optional list of servers this user can access.
)
),*/
取消注释,设置对应的用户名和密码,
把guest取消掉即可,
刷新页面可以看到效果