Some precautions for docker to install fastdfs mirror
1. Prepare the docker environment Second, search fastdfs mirror 3. Pull the image docker pull delron/fastdfs The reason for choosing the delron/fastdfs mirror is that it includes nginx and does not need to install nginx forwarding by itself. You can also choose qbanxiaoli/fastdfs, which also includes nginx Fourth, start the tracker service docker run -d –network=host –name tracker -v /root/fastdfs/tracker:/var/fdfs delron/fastdfs tracker 5. Start the storage service docker run -d –name storage –restart=always –net host -v /root/fastdfs/storage:/var/fdfs -e TRACKER_SERVER=”IP:22122″ delron/fastdfs storage Note that if it is a cloud server, you need to change the IP to the external network ip 6. Points to note 1. If it is a cloud server, you need to open ports 22122, 23000, and 8888 in the security group entry direction of the cloud server background, and open the above three ports in the cloud server firewall configuration. 2. Test whether the build is successful docker exec -it storage /bin/bash echo “Hello FastDFS”>index.html fdfs_test /etc/fdfs/client.conf upload index.html If the deployment is successful, the following screenshot should be returned after executing the above command 3. Access the resources just tested and uploaded The default address is http://ip:8888/url, where ip is the external network ip, and url…