#Install debian apt -y install build-essential autoconf automake gdb git libffi-dev zlib1g-dev libssl-dev unzip apt -y install golang cd /usr/src git clone https://github.com/chrislusf/seaweedfs.git cd seaweedfs make install #[get a cup of coffee] #The above command will install the SeaweedFS binary inside ~/go/bin/ directory. Now, copy the installed binary to the /usr/loca/bin directory with the following command: # cp ~/go/bin/weed /usr/local/bin/ #Next, verify the installed version of SeaweedFS with the following command: weed version #You should see something along the line of #version 30GB 3.36 linux amd64 ###################### create a master cat < /etc/systemd/system/seaweedmaster.service [Unit] Description=SeaweedFS Master After=network.target [Service] Type=simple User=root Group=root ExecStart=/usr/local/bin/weed master WorkingDirectory=/usr/local/bin/ SyslogIdentifier=seaweedfs-master [Install] WantedBy=multi-user.target EOF ###################### #Save and close the file then reload the systemd daemon with the following command: systemctl daemon-reload #Next, start the SeaweedFS service and enable it to start at system reboot with the following command: systemctl start seaweedmaster systemctl enable seaweedmaster #You can verify the status of SeaweedFS master with the following command: systemctl status seaweedmaster #You should get the following output: ● seaweedmaster.service - SeaweedFS Master Loaded: loaded (/etc/systemd/system/seaweedmaster.service; enabled; preset: enabled) Active: active (running) since Sun 2022-12-11 21:06:01 PST; 46s ago Main PID: 9965 (weed) Tasks: 8 (limit: 2359) Memory: 15.4M CPU: 39ms CGroup: /system.slice/seaweedmaster.service └─9965 /usr/local/bin/weed master Dec 11 21:06:01 seaweedmaster seaweedfs-master[9965]: I1211 21:06:01.408069 raft_server.go:119 Starting RaftServer with 172.16.0.200:9333 Dec 11 21:06:01 seaweedmaster seaweedfs-master[9965]: I1211 21:06:01.410442 raft_server.go:168 current cluster leader: Dec 11 21:06:19 seaweedmaster seaweedfs-master[9965]: I1211 21:06:19.411779 master_server.go:215 [172.16.0.200:9333] - is the leader. Dec 11 21:06:19 seaweedmaster seaweedfs-master[9965]: W1211 21:06:19.412092 tls.go:39 pemfile.NewProvider({ 5h0m0s}) grpc.master failed: pemfile: at least one credential file needs to be specified Dec 11 21:06:19 seaweedmaster seaweedfs-master[9965]: I1211 21:06:19.412339 master.go:200 Start Seaweed Master 30GB 3.36 grpc server at 172.16.0.200:19333 Dec 11 21:06:20 seaweedmaster seaweedfs-master[9965]: I1211 21:06:20.913589 masterclient.go:155 No existing leader found! Dec 11 21:06:20 seaweedmaster seaweedfs-master[9965]: I1211 21:06:20.914030 raft_server.go:190 Initializing new cluster Dec 11 21:06:20 seaweedmaster seaweedfs-master[9965]: I1211 21:06:20.914120 master_server.go:174 leader change event: => 172.16.0.200:9333 Dec 11 21:06:20 seaweedmaster seaweedfs-master[9965]: I1211 21:06:20.914244 master_server.go:177 [172.16.0.200:9333] 172.16.0.200:9333 becomes leader. Dec 11 21:06:24 seaweedmaster seaweedfs-master[9965]: I1211 21:06:24.414777 master_grpc_server.go:349 + client .master@172.16.0.200:9333