Start/Stop service |
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
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
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
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
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.
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
Run the monitoring application
/usr/local/bin/fdfs_monitor /opt/FastDFS/conf/storage.conf