systemd about
systemctl status *.service
systemctl restart xxx
systemctl start xxx
systemctl enable xxx // 开机服务自启动
journalctl -u edgecore.service -xef
find file
find ./ -type f | fzf
ssh + scp
scp -P6000 -r ./* root@82.156.172.224:/root/Wet_thermometer/mappers-go/mappers/ble/device/
ssh -oPort=6000 root@82.156.172.224
Git
git add * && git commit -m "test v1.0" && git push
tig status
Go
GO111MODULE=on GOPROXY=https://goproxy.cn/,direct go get -u github.com/zeromicro/go-zero/tools/goctl
go mod tidy
GOOS=linux CGO_ENABLED=0 GOARCH=arm go build -o blesh_lnx *.go
GO111MODULE=off CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ./build/$(BINARY_NAME)
ack
ack "kCBMsgId" -C