In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Download the docker image of the FastDFS file system
Docker search fastdfs
Docker pull delron/fastdfs
Docker images
Use docker image to build tracker container (tracking server, which plays the role of scheduling)
Docker run-d-- network=host-- name tracker-v / home/tracker:/var/fdfs delron/fastdfs tracker
Use docker images to build storage containers (storage servers that provide capacity and backup services)
Docker run-d-network=host-name storage-e TRACKER_SERVER=192.168.5.233:22122-v / home/storage:/var/fdfs-e GROUP_NAME=group1 delron/fastdfs storage
Fill in the ip address and port of your tracker service (default is 22122)
4. At this point, both services are started to configure the services.
Enter the storage container, configure the port accessed by http in the configuration file of storage, and configure the storage.conf in the / etc/fdfs directory
The default port is 8888, or you don't have to modify it. I changed it to 11111 here.
Change the default port of Nginx, or not. I changed it to 11111 here.
The default configuration is as follows:
You can also change it as follows:
Location / group1/M00 {
Alias / var/fdfs
}
6. At this time, the file system is built, and the web module is used to upload the file and upload the file to the FastDFS file system. Without detailed explanation here, you can ask Duniang. There is a corresponding expansion package in Python, which can be used directly. Here I put a photo in the directory of the file system and access it through the url address.
The storage structure of the FastDFS file system is shown here, and so many folders are created in data under the storage directory on the server to store files.
Place a photo (cumt.png) in the / var/fdfs/storage directory, enter the storage container, enter the / var/fdfs directory, and run the following command:
Open firewall port 11111
Firewall-cmd-zone=public-add-port=11111/tcp-permanent
Firewall-cmd-reload
Access http://192.168.5.233:11111/group1/M00/00/00/wKgF6Vz1XcuAZ_ghAAF7ERemXJM552.jpg through url
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.