Client Tests
- Modify the client.conf file.
vim /etc/fdfs/client.conf
Modify lines 11 and 22 as follows:
base_path=/home/dfs/client tracker_server=192.168.1.1:22122 # IP address and port of the tracker server. Change the IP address based on actual conditions.
- Perform the download test.
fdfs_download_file /etc/fdfs/client.conf /usr/local/src/a.txt
If the file ID is returned (group1/M00/00/00/xx.tar.gz, for example), the download is successful.
- Create a client directory.
mkdir -p /home/dfs/client
- Perform the upload test.
fdfs_upload_file /etc/fdfs/client.conf /usr/local/src/a.txt
If the file ID is returned (group1/M00/00/00/0ho3vmEjeD2AasSLAAAAAAAAAAA483.txt, for example), the upload is successful.
Parent topic: Deploying FastDFS on a Single Node