go get github.com/WuShaoQiang/gosuvctr
mkdir -p ~/.gosuvctr/conf
mv $GOPATH/src/github.com/WuShaoQiang/gosuvctr/config.json ~/.gosuvctr/conf
vim ~/.gosuvctr/conf/config.json ##load your config file
cd $GOPATH/src/github.com/WuShaoQiang/gosuvctr
go build
After go build
, there is a binary file called gosuvctr
,you can move this binary file to /user/local/bin
.
gosuvctr status
you should see the result like this:
PROGRAM NAME STATUS
test fatal
shutdown server stopped
config file should be stored in directory $HOME/.gosuvctr/conf/
config.json
{
"admin":{
"username":"",
"password":""
},
"remoteAddr":"",
"remotePort":""
}