Start/Stop service

Feedback


Start FastDFS and FastDHT services

  1. Start FastDFS tracker server

Enter the directory of /usr/local/bin. Start tracker server, and execute the following orders:

cd /usr/local/bin

fdfs_trackerd /opt/FastDFS/conf/tracker.conf

Notes: the operation system is 64 bit system. Please copy the /usr/lib/libevent-2.0.so.5 file to the directory of /usr/lib64 (there is no need in 32 bit system). Then start  tracker server. The copying orders are as follows:

cd /usr/lib

cp libevent-2.0.so.5 ../lib64

  1. Start FastDFS storage server

Enter the directory of /usr/local/bin. Start storage server, and execute the following orders:

cd /usr/local/bin

fdfs_storaged /opt/FastDFS/conf/storage.conf

  1. Start FastDHT

Enter the directory of /usr/local/bin. Start FastDHT server, and execute the following orders:

cd /usr/local/bin

fdhtd  /opt/FastDHT/conf/fdhtd.conf

Notes: the operation system is 64 bit system. Please copy the /usr/lib/libdb-5.3.so file to the directory of /usr/lib64 (there is no need in 32 bit system). Then start  FastDHT server. The copying orders are as follows:

cd /usr/lib

cp libdb-5.3.so ../lib64

Stop FastDFS and FastDHT services

If you need to stop FastDFS and FastDHT services, please use stop.sh to stop. Don't Kill the application. Incorrect close service may cause problems in service.

cd /usr/local/bin

./stop.sh /opt/FastDFS/conf/tracker.conf

./stop.sh /opt/FastDFS/conf/storage.conf

./stop.sh /opt/FastDHT/conf/fdhtd.conf

How to verify services

  1. View logs

You can view the logs to check whether the FastDFS and FastDHT services are normal. The logs are in base_path directory in tracker.conf, storage.conf and fdhtd.conf files.

  1. Run the test application

You can upload a file through running the built-in client teat application by FastDFS. Check whether the services are normal.

/usr/local/bin/fdfs_test /opt/FastDFS/conf/storage.conf upload /usr/include/stdlib.h

  1. Run the monitoring application

/usr/local/bin/fdfs_monitor /opt/FastDFS/conf/storage.conf