一.
getting connection [-] Error: connect to 172.17.0.1:23000. timed out
如图:
用MAC配置docker下的fastdfs的时候,绝对不要使用network=host模式,不要问我为什么,坑都快让我踩穿啦!
下面的容器内地址也就是我上面的 172.17.0.1
依次运行:
sudo ifconfig lo0 alias 容器内地址
sudo ifconfig lo0 alias 我的ip地址
详细参考:
https://github.com/tobato/fastdfs_client/wiki/%E4%BD%BF%E7%94%A8docker%E6%90%AD%E5%BB%BA%E6%B5%8B%E8%AF%95%E7%8E%AF%E5%A2%83%E9%97%AE%E9%A2%98
参考自其他博主:
https://blog.csdn.net/weixin_40318474/article/details/119821178
二.
FastDfs上传图片时报错configparser.NoOptionError: No option ‘connect_timeout’ in section: ‘config’
解决办法:
创建客户端的时候使用绝对路径:如图
三.
忘记是什么错了,没有截图下来~~
将tracker容器中的 /etc/fdfs/storage.config中的tracker_server 改为本机ip
进入容器
sudo docker exec -it tracker /bin/bash
vi /etc/fdfs/storage.config
找到下图位置修改tracker_server为本机ip,