Configuring the Tracker Server
- Open the tracker.conf file.
1vim /etc/fdfs/tracker.confModify the 11th and 23rd lines as follows:
1 2
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.
1mkdir -p /home/dfs/tracker
- Start the tracker server and set it to start upon system startup.
- Start the tracker server.
1service fdfs_trackerd start
- Enable automatic startup.
1chkconfig 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:
1service fdfs_trackerd stop
- Start the tracker server.
Parent topic: Deploying FastDFS on a Single Node