【数据存储】分布式文件系统SeaweedFS

本文详细介绍了SeaweedFS的安装过程、命令操作、集群启动以及filer的使用。通过在集群上启动seaweedFS,进行文件上传、删除、查询和下载操作,同时讨论了filer在元数据管理和文件访问中的作用。
摘要由CSDN通过智能技术生成

2021.05.25

初始seaweedFS

安装
1、先去GitHub下载所需版本

linux_amd64.tar.gz

2、然后放到服务器的文档中

/opt/software

3、解压安装

tar -zxvf ./linux_amd64.tar.gz -C /opt/install/seaweed

4、在seaweed安装包下安装seaweedfs文件夹及其下属两个文件夹

mkdir -p ./seaweedfs/data ./seaweedfs/volume

5、用以下命令查看master

 ./weed master -h
Example: weed master -port=9333
Default Usage:
  -cpuprofile string
    	cpu profile output file
  -defaultReplication string
    	Default replication type if not specified. (default "000")
  -disableHttp
    	disable http requests, only gRPC operations are allowed.
  -garbageThreshold float
    	threshold to vacuum and reclaim spaces (default 0.3)
  -ip string
    	master <ip>|<server> address, also used as identifier (default "172.19.0.16")
-ip.bind string
    	ip address to bind to
  -mdir string
    	data directory to store meta data (default "/tmp")
  -memprofile string
    	memory profile output file
  -metrics.address string
    	Prometheus gateway address <host>:<port>
  -metrics.intervalSeconds int
    	Prometheus push interval in seconds (default 15)
  -options string
    	a file of command line options, each line in optionName=optionValue format
  -peers string
    	all master nodes in comma separated ip:port list, example: 127.0.0.1:9093,127.0.0.1:9094,127.0.0.1:9095
  -port int
    	http listen port (default 9333)
  -resumeState
    	resume previous state on start master server
  -volumePreallocate
    	Preallocate disk space for volumes.
  -volumeSizeLimitMB uint
    	Master stops directing writes to oversized volumes. (default 30000)
  -whiteList string
    	comma separated Ip addresses having write permission. No limit if empty.
Description:
  start a master server to provide volume=>location mapping service and sequence number of file ids

	The configuration file "security.toml" is read from "."
  • 0
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值