首页 分类 环境运维 环境运维 docker里面的redis不能连接的问题解决 2021-11-18 / 约 1 分钟阅读 / 九堡网 进入docker容器(docker exec -it xxx /bin/bash) vi /etc/redis.conf 找到protected-mode no 置为yes,即: protected-mode yes
环 环境运维 #2079 环境运维 2026-10-15 git add . 如果要去掉指定文件www/index.html,该用什么命令 已经执行了 git add .,想把某个文件撤出暂存区 bash git restore --staged www/index.html Git 2.23+ 的推荐写法。老版本没有 restore,用等价命令: bash git reset HEAD www/… 3 分钟阅读 阅读