5.1 Installation fastdfs dependencies
One: Download and install FDFS dependent: libfastcommon
Download: https: //codeload.github.com/happyfish100/libfastcommon/zip/master
1. Extract the compressed libfastcommon-master.zip
2. Go to the directory libfastcommon-master's
3. Perform ./make.sh
4. Perform sudo ./make.sh install
5.2 Installation fastdfs
Download and install fastDFS
Download: https: //codeload.github.com/happyfish100/fastdfs/zip/master
1. Unzip fastdfs-master.zip
2. Go to fastdfs-master directory
3. Executive line ./make.sh
4. Executive line sudo ./make.sh install
5.3 Configuring the tracking service is tracker
1. Sudo cp /etc/fdfs/tracker.conf.sample /etc/fdfs/tracker.conf
2. Create an entry in the / home / python / directory record fastdfs / tracker
mkdir –p /home/python/fastdfs/tracker
3. Edit /etc/fdfs/tracker.conf configuration file sudo vim /etc/fdfs/tracker.conf
Modify base_path = / home / python / fastdfs / tracker
5.4 Configuring Storage Service device storage
1. Sudo cp /etc/fdfs/storage.conf.sample /etc/fdfs/storage.conf
2. Create a storage directory in / home / python / fastdfs / directory
mkdir –p /home/python/fastdfs/storage
3. Edit /etc/fdfs/storage.conf configuration file sudo vim /etc/fdfs/storage.conf
Modify the content:
base_path=/home/python/fastdfs/storage
store_path0=/home/python/fastdfs/storage
tracker_server = ubuntu own virtual machine ip address: 22122
5.5 Start tracker and storage
sudo service fdfs_trackerd start
sudo service fdfs_storaged start
Until this point, the system error:
Failed to start fdfs_trackerd.service: Unit fdfs_trackerd.service not found
Two are the same, some people say I look online only newspaper storage, I have encountered the latter.
Solution: restart the virtual machine or linux system
5.6 test whether the installation is successful
1. Sudo cp /etc/fdfs/client.conf.sample /etc/fdfs/client.conf
2. Edit /etc/fdfs/client.conf configuration file sudo vim /etc/fdfs/client.conf
Modify the content:
base_path=/home/python/fastdfs/tracker
tracker_server = ubuntu own virtual machine ip address: 22122
3. Upload file test:
fdfs_upload_file /etc/fdfs/client.conf to upload drawing files simultaneously
If the return document id similar group1 / M00 / 00/00 / rBIK6VcaP0aARXXvAAHrUgHEviQ394.jpg of the file may be uploaded successfully