In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article is to share with you about how to build a picture server in FastDFS under linux. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Server planning server name IP address and port remarks fastdfs-tracker*:22122 tracking server / scheduling server fastdfs-storage*:23000 storage server 1, install system components yum install gcc-y 2, install fastdfs
1. Create a storage directory for the image server
Mkdir-p / data/image
2. Download and install the FastDFS dependency package libfastcommon
Wget https://codeload.github.com/happyfish200/libfastcommon/zip/master
Decompression
Unzip master
Installation
Cd libfastcommon-master/ &. / make.sh &. / make.sh install
3. Download and install FastDFS
Click download
Decompress:
Tar xf FastDFS_v5.08.tar.gz
Installation
Cd FastDFS &. / make.sh &. / make.sh install III. Configure picture server files
1. Configure the tracking server tracker
Cp / etc/fdfs/tracker.conf.sample / etc/fdfs/tracker.conf
Vim / etc/fdfs/tracker.conf modifies base_path to the service directory created above
2. Configure client.conf
Cp / etc/fdfs/client.conf.sample / etc/fdfs/client.conf
Vim / etc/fdfs/client.conf modifies base_path to the service directory created above, and tracker_server service IP to be native
3. Test and start tracker server
A successful startup will automatically create new data and logs directories in the / data/file/fastdfs/tracker directory
/ etc/init.d/fdfs_trackerd start/etc/init.d/fdfs_trackerd stop
4. Configure the storage server (storage server)
Cp / etc/fdfs/storage.conf.sample / etc/fdfs/storage.conf
Vim / etc/fdfs/storage.conf modifies base_path to the service directory created above, tracker_server service IP is native, and base_path is the service directory created above
5. Start tracker server
/ etc/init.d/fdfs_storaged start/etc/init.d/fdfs_storaged stop
View Port
6. File upload test
/ usr/bin/fdfs_upload_file / etc/fdfs/client.conf / root/docker.jpg
Thank you for reading! This is the end of the article on "how to build a picture server in FastDFS under linux". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!
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.