赞
踩
192.168.56.121 | 192.168.56.122 | 192.168.56.123 |
---|---|---|
tracker | tracker | tracker |
storage(group1) | storage(group1) | storage(group2) |
nginx | nginx | nginx |
tracker_server=192.168.56.121:22122
tracker_server=192.168.56.122:22122
tracker_server=192.168.56.123:22122
# 192.168.56.123机器上的配置为group2
group_name=group1
# storage的端口号,同一个组的storage端口号必须相同
port=23000
/usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf restart
/usr/bin/fdfs_storaged /etc/fdfs/storage.conf restart
cat /home/fastdfs/logs/storaged.log
systemctl stop firewalld
/usr/bin/fdfs_monitor /etc/fds/storage.conf
tracker_server=192.168.56.121:22122
tracker_server=192.168.56.122:22122
tracker_server=192.168.56.123:22122
/usr/bin/fdfs_upload_file /etc/fdfs/client.conf /root/fastdfs/OOP.png
[root@loaclhost 00]# /usr/bin/fdfs_upload_file /etc/fdfs/client.conf /root/fastdfs/OOP.png
group1/M00/00/00/wKg4eV8wGSaAWoPBAAIxAbCC66s272.png
[root@loaclhost 00]# /usr/bin/fdfs_upload_file /etc/fdfs/client.conf /root/fastdfs/OOP.png
group2/M00/00/00/wKg4e18wGSmAFel1AAIxAbCC66s679.png
[root@loaclhost 00]# /usr/bin/fdfs_upload_file /etc/fdfs/client.conf /root/fastdfs/OOP.png
group1/M00/00/00/wKg4el8wGSqAY3JcAAIxAbCC66s773.png
[root@loaclhost 00]# /usr/bin/fdfs_upload_file /etc/fdfs/client.conf /root/fastdfs/OOP.png
group2/M00/00/00/wKg4e18wGSuALH7eAAIxAbCC66s763.png
tracker_server=192.168.56.121:22122
tracker_server=192.168.56.122:22122
tracker_server=192.168.56.123:22122
group_name=group1 #注意,在123机器上group_name=group2
http://192.168.56.121:8888/group1/M00/00/00/wKg4eV8vzriAaDnFAAIxAbCC66s344.png
http://192.168.56.122:8888/group1/M00/00/00/wKg4eV8vzriAaDnFAAIxAbCC66s344.png
http://192.168.56.123:8888/group1/M00/00/00/wKg4eV8vzriAaDnFAAIxAbCC66s344.png
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。