Rate This Document
Findability
Accuracy
Completeness
Readability

Client Tests

  1. Modify the client.conf file.
    1
    vim /etc/fdfs/client.conf
    

    Modify lines 11 and 22 as follows:

    1
    2
    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.
    
  2. Perform the download test.
    1
    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.

  3. Create a client directory.
    1
    mkdir -p /home/dfs/client
    
  4. Perform the upload test.
    1
    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.