使用 systemd 多开 V2Ray 实例

Choose a name for your instance

The name which I choosen in this tutorial is v2cc, it SHOULD be changed to your own instance name. the name is the key to manage your V2Ray instance.

YOU ARE ABLE TO CREATE ANY AMOUNT OF INSTANCES YOU DESIRED BY REPEATING THESE STEPS

Config file name format is config-NAME.json in /etc/v2ray/ directory.

Config your v2ray

cp /etc/v2ray/config.json /etc/v2ray/config-v2cc.json
vim /etc/v2ray/config-v2cc.json

Auto start after reboot

systemctl enable [email protected]

Start

systemctl start [email protected]

Stop

systemctl stop [email protected]

Status

systemctl status [email protected]

Logs

systemctl status -l [email protected]

List all your instances

systemctl status '[email protected]*'