wget https://github.com/rc452860/vnet/releases/download/v0.0.6/vnet_linux_amd64 -O vnet
chmod a+x vnet
./vnet
[root@node ~]# ./vnet
WARN 2019-01-20 12:09:40 config.go[66] LoadConfig: /root/config.json is not exist
INFO 2019-01-20 12:09:40 server.go[21] main: cpu core: 1
? what is your host address? 127.0.0.1
? what is your host address? 127.0.0.1
? what is your database port? (3306) 3306
? what is your database port? 3306
? what is your username? root
? what is your username? root
? what is your password? ****
? what is your database name? ssrpanel
? what is your database name? ssrpanel
? what is your node id? 1
? what is your node id? 1
? what is your want rate? (1) 1
{
"mode": "db",
"dbconfig": {
"host": "127.0.0.1",
"user": "ssrpanel",
"passwd": "ssrpanel",
"port": "3306",
"database": "ssrpanel",
"rate": 1,
"NodeId": 1,
"sync_time": 20000,
"online_sync_time": 60000,
"level": -1
},
"shadowsocks_options": {
"connect_timeout": 3000, // 请求超时时间
"tcp_switch": "true", // 启用、关闭TCP传输
"udp_switch": "true" // 启用、关闭UDP传输
},
"dns_options": {
"dns1": "8.8.8.8:53",
"dns2": "1.1.1.1:53",
"ipv4_prefer": true // IPV4优先,false时优先解析IPV6
}
}
INFO 2019-01-22 08:58:36 db.go[256] DBServiceMonitor: start port [7589]
INFO 2019-01-22 08:58:36 db.go[256] DBServiceMonitor: start port [7935]
INFO 2019-01-22 08:58:36 db.go[256] DBServiceMonitor: start port [7235]
INFO 2019-01-22 08:58:36 db.go[256] DBServiceMonitor: start port [7262]
INFO 2019-01-22 08:58:36 db.go[256] DBServiceMonitor: start port [7026]
INFO 2019-01-22 08:58:36 db.go[256] DBServiceMonitor: start port [7131]
INFO 2019-01-22 08:58:36 db.go[256] DBServiceMonitor: start port [7996]