Seaweedfs部署

软件下载地址

https://github.com/seaweedfs/seaweedfs/releases

创建工作目录

mkdir /wkspace/contribs/seaweedfs
//将下载的组件包放到此目录下

解压组件包

tar -xvf linux_amd64.tar.gz

seaweedfs手动启动

主、

nohup  /wkspace/contribs/seaweedfs/weed master -port=9333 -ip=172.10.50.238 -mdir=/wkspace/contribs/seaweedfs/data/master  > /wkspace/contribs/seaweedfs/logs/master.log 2>&1 &

备、

nohup  /wkspace/contribs/seaweedfs/weed volume -dataCenter dc1 -rack rack1  -max=2 -mserver=172.10.50.238:9333 -port=7077 -ip=172.10.50.238 -dir=/wkspace/contribs/seaweedfs/data/volume/v1 > /wkspace/contribs/seaweedfs/logs/volume_v1.log 2>&1 &
nohup  /wkspace/contribs/seaweedfs/weed volume -dataCenter dc1 -rack rack1  -max=2 -mserver=172.10.50.238:9333 -port=7078 -ip=172.10.50.238 -dir=/wkspace/contribs/seaweedfs/data/volume/v2 > /wkspace/contribs/seaweedfs/logs/volume_v2.log 2>&1 &

开启file

nohup /wkspace/contribs/seaweedfs/weed filer -master=172.10.50.238:9333 -port=8888 -ip=172.10.50.238 > /wkspace/contribs/seaweedfs/logs/filer.log 2>&1 &

挂在mount

nohup /wkspace/contribs/seaweedfs/weed mount -filer=172.10.50.238:8888 -dir=/wkspace/contribs/seaweedfs/mount -filer.path=/ > /wkspace/contribs/seaweedfs/logs/mount.log 2>&1 &

大体步骤是这样,seaweedfs起码是要一主两从的结构,这里我部署在一台服务器中改变了端口,实际在面对对存储要求很高的场景中,需要多机部署,但是实际上只需要更改volume中的masterIP的地址就可以了

你可能感兴趣的:(linux服务,服务器,linux,运维)