User Tools

Site Tools


linux:v2ray

This is an old revision of the document!


v2ray

Install

wget https://install.direct/go.sh
sudo bash go.sh 

The v2ray command will be located at

/usr/bin/v2ray/v2ray

/usr/bin/v2ray/v2ray -h
Usage of /usr/bin/v2ray/v2ray:
  -config string
    	Config file for V2Ray.
  -format string
    	Format of input file. (default "json")
  -test
    	Test config file only, without launching V2Ray server.
  -version
    	Show current version of V2Ray.

config

/etc/v2ray/config.json

start/stop

``` sudo systemctl start v2ray sudo systemctl restart v2ray ```

Mac Install

- https://github.com/v2ray/homebrew-v2ray

brew tap v2ray/v2ray
brew install v2ray-core

Then you can run v2ray, and config file:

/usr/local/etc/v2ray/config.json

run v2ray-core without starting at login.

brew services run v2ray-core

or run v2ray-core and register it to launch at login via:

brew services start v2ray-core
/var/www/dokuwiki/wiki/data/attic/linux/v2ray.1562999919.txt.gz · Last modified: 2019/07/13 14:38 by percy