Server Planning
1. Install system componentsyum install gcc -y 2. Install fastdfs1. Create a storage directory for the image server mkdir -p /data/image 2. Download the FastDFS dependency package libfastcommon and install it wget https://codeload.github.com/happyfish100/libfastcommon/zip/master Unzip unzip master Install cd libfastcommon-master/ && ./make.sh && ./make.sh install 3. Download and install FastDFS Click to download Unzip: tar xf FastDFS_v5.08.tar.gz Install cd FastDFS && ./make.sh && ./make.sh install 3. Configure the image server file1. Configure the tracking server tracker cp /etc/fdfs/tracker.conf.sample /etc/fdfs/tracker.conf
2. Configure client.conf cp /etc/fdfs/client.conf.sample /etc/fdfs/client.conf
3. Test and start the tracker server If the startup is successful, new data and logs directories will be created automatically in the /data/file/fastdfs/tracker directory /etc/init.d/fdfs_trackerd start /etc/init.d/fdfs_trackerd stop 4. Configure storage server cp /etc/fdfs/storage.conf.sample /etc/fdfs/storage.conf
5. Start the tracker server /etc/init.d/fdfs_storaged start /etc/init.d/fdfs_storaged stop View Ports 6. File upload test /usr/bin/fdfs_upload_file /etc/fdfs/client.conf /root/docker.jpg SummarizeThis is the end of this article about building an image server with FastDFS under Linux. For more related Linux FastDFS content, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: A brief discussion on two methods to solve space-evenly compatibility issues
>>: Detailed explanation of the principles of Vue's responsive system
Platform deployment 1. Install JDK step1. Downloa...
Mysql supports 3 types of lock structures Table-l...
1. What is responsive design? Responsive design i...
This example requires downloading and installing ...
Table of contents 1. Ref and reactive 1. reactive...
As the computer is used, a lot of garbage will be...
Go is an open source programming language that ma...
Table of contents 1. Problem Description 2. Probl...
Preface Many friends who have just come into cont...
There are many Hadoop installation tutorials on L...
The notepad program is implemented using the thre...
Table of contents Preface 1. Technical Principle ...
Optgroup is used in the select tag to make the dro...
Pop-up news is common in domestic Internet servic...
Table of contents Identifier length limit Length ...