Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Installation and deployment method of FastDFS

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the relevant knowledge of "the method of installation and deployment of FastDFS". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Background

Centos7 operating system

Installation dependency

Clone the master branch of the libfastcommon source code (github address: https://github.com/happyfish200/libfastcommon)

Enter the libfastcommon directory and execute. / make.sh and. / make.sh install operations

Execute yum install-y libevent to install libevent

Install FastDFS

Clone the master branch of the FastDFS source code (github address: https://github.com/happyfish200/fastdfs)

Enter the FastDFS directory and execute. / make.sh and. / make.sh install operations

After installation, FastDFS will generate a configuration file template under the / etc/fdfs directory by default, named * .conf.sample, which we need to copy to .conf.

Configure the tracker service

Edit the tracker configuration file / etc/tracker.conf. Currently only focus on base_path, configured as accessible directories.

Start the tracker service: / usr/bin/fdfs_trackerd / etc/fdfs/tracker.conf

Restart the tracker service: / usr/bin/fdfs_trackerd / etc/fdfs/tracker.conf restart

Check whether there is a tracker process: ps aux | grep tracker

Storage (storage node) service deployment

Edit the storage configuration file / etc/storage.conf, currently focusing only on base_path,store_path0 and tracker_server. Where base_path and store_path0 are configured as accessible paths, and tracker_server is configured as {server address}: {port} of tracker

Start the storage service: / usr/bin/fdfs_storaged / etc/fdfs/storage.conf

Restart the storage service: / usr/bin/fdfs_storaged / etc/fdfs/storage.conf restart

Check whether there is a storage process: ps aux | grep storage

Test whether the deployment is successful

We can use our own client for testing.

Edit the client configuration file / etc/client.conf. Currently, only focus on the paths that base_path and tracker_server,base_path are configured to access. Tracker_server is configured as the {server address}: {port} of tracker.

Upload a file in the opt directory through shell in the terminal: / usr/bin/fdfs_test / etc/fdfs/client.conf upload / etc/fdfs/tracker.conf

As shown in the arrow below, the generated file address is: http://192.168.1.201/group1/M00/00/00/wKgByVgwzzeATfFgAAAcnSBbh3A71_big.conf

This is the end of the content of "how to install and deploy FastDFS". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report