1.从GitHub下载编译好的SeaweedFS

地址:https://github.com/chrislusf/seaweedfs/releases

选择linux_amd64.tar.gz的压缩包

CentOS 7安装SeaweedFS

 

2.通过xftp上传到CentOS

我这边放在了/home/SeaweedFS/SeaweedFS_App目录

CentOS 7安装SeaweedFS

 

3.解压linux_amd64.tar.gz

tar -xzvf linux_amd64.tar.gz

CentOS 7安装SeaweedFS

 

4.启动SeaweedFS

4.1 启动master

./weed master

生产环境使用进程守护+写权限IP白名单

nohup ./weed master whiteList=127.0.0.1,192.168.56.101

 

CentOS 7安装SeaweedFS

 

4.2 添加多个volume存储节点目录 

首先在CentOS上建立Volume存储节点的文件夹,我这边测试创建了两个节点

CentOS 7安装SeaweedFS

 

./weed volume -dir="/home/SeaweedFS/FileVolume1" -max=1000  -mserver="localhost:9333" -port=10001
./weed volume -dir="/home/SeaweedFS/FileVolume2" -max=1000  -mserver="localhost:9333" -port=10002

 因为我这边测试的是直接用Xshell启动的,所以需要另开一个终端shell选项卡(后面可以安装为Linux服务)

生产环境使用进程守护+写权限IP白名单

nohup ./weed volume -dir="/home/SeaweedFS/FileVolume1" -max=1000  -mserver="localhost:9333" -port=10001 whiteList=127.0.0.1,192.168.56.101

 

nohup ./weed volume -dir="/home/SeaweedFS/FileVolume2" -max=1000  -mserver="localhost:9333" -port=10002 whiteList=127.0.0.1,192.168.56.101

 

 

4.3 启动第一个节点

CentOS 7安装SeaweedFS

 

4.4启动第二个节点

需要再开一个Shell终端选项卡

CentOS 7安装SeaweedFS

 

浏览器打开本地IP+9333端口,本地就直接打开localhost:9333,Topology下面就有了刚加的两个数据节点

CentOS 7安装SeaweedFS

 

相关资料

分布式文件系统对比:https://www.cnblogs.com/depyuka/p/6411048.html

SeaweedFS按照配置:https://www.cnblogs.com/bfmq/p/10998818.html

.net core下使用SeaweedFS:

https://www.cnblogs.com/NCoreCoder/p/10254503.html

https://www.cnblogs.com/NCoreCoder/p/10266360.html

使用seaweedfs搭建一个图片服务器:

https://www.jianshu.com/p/5e8dfb98fd86

https://www.jianshu.com/p/e0faa1d23ceb

seaweedfs文件存储服务器搭建:

https://www.jianshu.com/p/2ff61b56f37b

 

相关文章:

  • 2021-10-31
  • 2021-06-07
  • 2021-09-08
  • 2022-02-18
  • 2022-01-06
  • 2021-11-08
  • 2021-12-04
猜你喜欢
  • 2021-07-30
  • 2021-08-10
  • 2021-07-21
  • 2022-02-08
  • 2021-08-26
  • 2021-12-27
  • 2022-01-25
相关资源
相似解决方案