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
Table of contents 1. Spark vs. Hadoop 1.1 Disadva...
Table of contents in conclusion Practice Analysis...
<body> <div id="root"> <...
Today, let’s get straight to the point and talk a...
This article shares the specific code of JavaScri...
Preface: Fully encapsulating a functional module ...
Although head and DTD will not be displayed on th...
Mainly use the preserve-3d and perspective proper...
This article briefly introduces the relationship ...
K8s k8s is a cluster. There are multiple Namespac...
Table of contents Object.prototype.valueOf() Obje...
Effect display: Environment preparation controlle...
This article records the detailed tutorial for in...
In many cases, you need to process the background...
Problem background: There is a requirement to tak...