Configuring the Tracker Server
- Open the tracker.conf file.
vim /etc/fdfs/tracker.conf
Modify the 11th and 23rd lines as follows:
port=22122 # Port of the tracker server (The default value is 22122. Generally, you do not need to change the value.) base_path=/home/dfs/tracker # Root directory for storing logs and data
- Create a base data directory for the tracker server.
mkdir -p /home/dfs/tracker
- Start the tracker server and set it to start upon system startup.
- Start the tracker server.
service fdfs_trackerd start
- Enable automatic startup.
chkconfig fdfs_trackerd on
- If the tracker server is started successfully for the first time, the data and logs directories are created in /home/dfs/tracker (the configured base_path).
- Stop the tracker server:
service fdfs_trackerd stop
- Start the tracker server.
Parent topic: Deploying FastDFS on a Single Node