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 "."