-
Notifications
You must be signed in to change notification settings - Fork 2
Installation
Mcloud136 edited this page May 5, 2026
·
2 revisions
| 系统 | 最低版本 |
|---|---|
| CentOS | 7 |
| Ubuntu | 16 |
| Debian | 8 |
| Alpine | 3.10 |
- CPU: 1核以上
- 内存: 512MB以上
- 带宽: 100Mbps以上
wget -N https://raw.githubusercontent.com/Mcloud136/v2node/master/script/install.sh && bash install.shmkdir -p /usr/local/v2node
cd /usr/local/v2node
curl -sL "https://github.com/Mcloud136/v2node/releases/latest/download/v2node-linux-amd64.zip" | unzip -
chmod +x v2nodemkdir -p /etc/v2node
cat > /etc/v2node/config.json << EOF
{
"Log": {
"Level": "info"
},
"Nodes": [
{
"ApiHost": "https://your-panel.com/",
"NodeID": 1,
"ApiKey": "your-secret-key"
}
]
}
EOFcat > /etc/systemd/system/v2node.service << EOF
[Unit]
Description=v2node Service
After=network.target
[Service]
ExecStart=/usr/local/v2node/v2node server
Restart=always
[Install]
WantedBy=multi-user.target
EOF
systemctl daemon-reload
systemctl enable v2node
systemctl start v2node