![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
其他
轻痕微凉
初学计算机,如有错误,请积极指出,感激不尽!
展开
-
redis配置文件启动问题
使用配置文件启动时 redis-server /配置文件地址 启动发现没有任何反应 ps ajx | grep redis 没有发现相关于redis的进程 解决 : 需要普通用户启动 root用户启动会导致无反应 ...原创 2019-07-12 13:09:00 · 233 阅读 · 0 评论 -
redis 报错 ERROR/MainProcess] consumer: Cannot connect to redis:
用win10连接虚拟机redis的时候报错 一直提示ERROR/MainProcess] consumer: Cannot connect to redis: … 修改配置文件 protected-mode no 改为 yes 不能用守护进程运行redis bind 127.0.0.1 更改为 bind 0.0.0.0 开放6379端口 firewall-cmd --zone=publi...原创 2019-07-29 10:31:54 · 2587 阅读 · 0 评论 -
django使用 用户认证模块报错
django项目 认证 用到 user = authenticate(username=username, password=password) 测试时发现 输入正确密码user返回为None 错误密码 也返回None 到数据库中 把is_active 改成 1 就能返回正确的user对象 否则返回None 并且报错 AttributeError: ‘NoneType’ object has...原创 2019-07-29 15:19:04 · 361 阅读 · 0 评论