docker下安装fastDFS

docker下安装fastDFS

参考链接:
https://blog.csdn.net/qq_37759106/article/details/82981023

  1. 获取docker镜像:
    docker pull qbanxiaoli/fastdfs

  2. 运行fastDFS
    docker run -d --restart=always --privileged=true --net=host --name=fastdfs -e IP=122.27.212.69 -e WEB_PORT=80 -v ${HOME}/fastdfs:/var/local/fdfs qbanxiaoli/fastdfs

    IP 后面是你的服务器公网ip或者虚拟机的IP,-e WEB_PORT=80 指定nginx端口

测试fastdfs是否搭建成功:

docker exec -it fastdfs /bin/bash

echo “Hello FastDFS!”>index.html

fdfs_test /etc/fdfs/client.conf upload index.html

你可能感兴趣的:(java,docker)