环境:Vmware Workstation 10,CentOS-7-x86_64-DVD-1511.iso,Xshell 4.0,ip1:192.168.216.134,ip2:192.168.216.135,ip1:192.168.216.136,ip4:192.168.216.137,ip5:192.168.216.138,ip6:192.168.216.139.

参照[这里写链接内容](http://blog.csdn.net/zhiguoliu11/article/details/72778852)在ip1至ip6上各安装一台fastdfs,配置文件稍后编辑。

ip1-ip6:

[[email protected] ~]# yum list perl

已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.btte.net
* extras: mirrors.neusoft.edu.cn
* updates: mirrors.neusoft.edu.cn
可安装的软件包
perl.x86_64 4:5.16.3-291.el7 @base

[[email protected] ~]# yum install perl

ip1和ip2配置tracker.conf文件

[[email protected] ~]# vim /etc/fdfs/tracker.conf

Linux_FastDFS 集群安装笔记

注意:下面命令中“–”是两个“-”,csdn显示有误。

[[email protected] ~]# firewall-cmd –zone=public –add-port=22122/tcp –permanent

success

[[email protected] ~]# firewall-cmd –reload

success

ip3和ip4配置storage.conf

[[email protected] ~]# vim /etc/fdfs/storage.conf

Linux_FastDFS 集群安装笔记
Linux_FastDFS 集群安装笔记
Linux_FastDFS 集群安装笔记
Linux_FastDFS 集群安装笔记

注意:下面命令中“–”是两个“-”,csdn显示有误。

[[email protected] ~]# firewall-cmd –zone=public –add-port=23000/tcp –permanent

success

[[email protected] ~]# firewall-cmd –reload

success

ip5和ip6配置storage.conf

[[email protected] ~]# vim /etc/fdfs/storage.conf

Linux_FastDFS 集群安装笔记
Linux_FastDFS 集群安装笔记
Linux_FastDFS 集群安装笔记
Linux_FastDFS 集群安装笔记

注意:下面命令中“–”是两个“-”,csdn显示有误。

[[email protected] ~]# firewall-cmd –zone=public –add-port=23000/tcp –permanent

success

[[email protected] ~]# firewall-cmd –reload

success

ip1和ip2启动tracker

[[email protected] ~]# /etc/init.d/fdfs_trackerd start

Starting fdfs_trackerd (via systemctl): [ 确定 ]

[[email protected] ~]# /etc/init.d/fdfs_trackerd status

● fdfs_trackerd.service - LSB: FastDFS tracker server
Loaded: loaded (/etc/rc.d/init.d/fdfs_trackerd)
Active: active (running) since 六 2017-05-27 15:32:31 CST; 5s ago
Docs: man:systemd-sysv-generator(8)
Process: 2558 ExecStart=/etc/rc.d/init.d/fdfs_trackerd start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/fdfs_trackerd.service
└─2561 /usr/bin/fdfs_trackerd /etc/fdfs/tracker.conf

5月 27 15:32:31 bogon systemd[1]: Starting LSB: FastDFS tracker server…
5月 27 15:32:31 bogon fdfs_trackerd[2558]: Starting FastDFS tracker server:
5月 27 15:32:31 bogon systemd[1]: Started LSB: FastDFS tracker server.

ip3-ip6启动storage

[[email protected] ~]# /etc/init.d/fdfs_storaged start

Starting fdfs_storaged (via systemctl): [ 确定 ]

[[email protected] ~]# /etc/init.d/fdfs_storaged status

● fdfs_storaged.service - LSB: FastDFS storage server
Loaded: loaded (/etc/rc.d/init.d/fdfs_storaged)
Active: active (running) since 六 2017-05-27 15:33:32 CST; 3s ago
Docs: man:systemd-sysv-generator(8)
Process: 2551 ExecStart=/etc/rc.d/init.d/fdfs_storaged start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/fdfs_storaged.service
└─2554 /usr/bin/fdfs_storaged /etc/fdfs/storage.conf

5月 27 15:33:32 localhost systemd[1]: Starting LSB: FastDFS storage server…
5月 27 15:33:32 localhost fdfs_storaged[2551]: Starting FastDFS storage server:
5月 27 15:33:32 localhost systemd[1]: Started LSB: FastDFS storage server.

查看启动日志

[[email protected] ~]# less /data/fdfs/tracker/logs/trackerd.log

Linux_FastDFS 集群安装笔记

Linux_FastDFS 集群安装笔记

[[email protected] ~]# less /data/fdfs/storage/logs/storaged.log

Linux_FastDFS 集群安装笔记

Linux_FastDFS 集群安装笔记

Linux_FastDFS 集群安装笔记

Linux_FastDFS 集群安装笔记

相关文章:

  • 2021-05-25
  • 2021-12-05
  • 2021-08-31
  • 2022-12-23
  • 2021-05-02
  • 2021-06-07
  • 2021-10-09
  • 2022-12-23
猜你喜欢
  • 2021-04-24
  • 2021-10-19
  • 2022-12-23
  • 2022-12-23
  • 2021-09-02
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案