Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:22122 0.0.0.0:* LISTEN 9843/fdfs_trackerd tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 1040/mysqld tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 791/sshd tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 920/cupsd tcp 0 0 0.0.0.0:8888 0.0.0.0:* LISTEN 9942/fdfs_storaged tcp 0 0 0.0.0.0:23000 0.0.0.0:* LISTEN 9942/fdfs_storaged tcp 0 0 0.0.0.0:8090 0.0.0.0:* LISTEN
下面是配置storage相关信息
root@ :/home/FastDFS/FastDFS/conf/# vim storage.conf # the name of the group this storage server belongs to group_name=dcifile1 client_bind=true # the storage server port port=23000 # the base path to store data and log files
base_path=/home/FastDFS/FastDFS/storage_info # store_path#, based 0, if store_path0 not exists, it's value is base_path # the paths must be exist
store_path0=/home/FastDFS/FastDFS/storage_data #store_path1=/home/yuqing/fastdfs2 # tracker_server can ocur more than once, and tracker_server format is # "host:port", host can be hostname or ip address tracker_server=10.5.110.234:22122 # the port of the web server on this storage server http.server_port=8888 http.trunk_size=256KB # if need find content type from file extension name http.need_find_content_type=true #use "#include" directive to include HTTP other settings #include http.conf root@ :/home/FastDFS/FastDFS/# mkdir storage_info root@ :/home/FastDFS/FastDFS/# mkdir storage_data root@ :/home/FastDFS/FastDFS/# mkdir client_info root@ :/home/FastDFS/FastDFS/conf/# cd /usr/local/bin/ root@ :/usr/local/bin/# fdfs_storaged /home/FastDFS/FastDFS/conf/storage.conf root@ :/home/FastDFS/FastDFS/conf/# vim client.conf # the base path to store log files base_path=/home/FastDFS/FastDFS/client_info # tracker_server can ocur more than once, and tracker_server format is # "host:port", host can be hostname or ip address tracker_server=10.5.110.234:22122 #standard log level as syslog, case insensitive, value list: ### emerg for emergency ### alert ### crit for critical ### error ### warn for warning ### notice ## info ### debug log_level=info #HTTP settings http.tracker_server_port=8090 #use "#include" directive to include HTTP other settiongs #include http.conf root@ :/usr/local/bin/# fdfs_test /home/FastDFS/FastDFS/conf/client.conf upload a.txt source ip address: 10.5.110.234 file timestamp=2012-03-11 11:29:59 file size=22 file crc32=2041760096 file url: :8090/dcifile1/M00/00/00/CgVu6k9cHDf4SXnIAAAAFnmyyWA295_big.txt