您好,欢迎来到暴趣科技网。
搜索
您的当前位置:首页设置远程连接及密码

设置远程连接及密码

来源:暴趣科技网

1、找到redis.conf文件的位置,使用命令:find / -name redis.conf

2、vim redis.conf  设置密码,在#requirepass foobared去掉#号变requirepass foobared;foobared是密码;

3、文件修改后启动:./redis-server /usr/local/services/redis/redis-4.0.6/redis.conf

4、相关问题

root@iZ25gdzs0p8Z:~# /etc/init.d/redis_6379 stop
Stopping ...
(error) NOAUTH Authentication required.
Waiting for Redis to shutdown ...
Waiting for Redis to shutdown ...
^C
root@iZ25gdzs0p8Z:~# redis-cli -a rds423fsadD shutdown
root@iZ25gdzs0p8Z:~# 

出现(error) NOAUTH Authentication required.错误,停止时要加登陆时密码。

 

 

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- baoquwan.com 版权所有 湘ICP备2024080961号-7

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务