使用Docker实现Nginx+FastDFS系统

docker run -d --restart=always --privileged=true --net=host --name=fastdfs -e IP=192.168.2.239 -e WEB_PORT=80 -v ${HOME}/fastdfs:/var/local/fdfs registry.cn-beijing.aliyuncs.com/tianzuo/fastdfs

IP可以填公网IP或者虚拟机IP,切记不可以是127.0.0.1

WEB_PORT用来指定Nginx的端口

经测试,该Docker自带指定文件名下载(使用get参数filename=xxx.xxx)

posted @ 2020-11-23 10:02  ericdee  阅读(52)  评论(0编辑  收藏  举报