Get the App
SLTechnology News&Howtos  ›  Development  › 

How to install and configure V2Ray under Linux

Shulou Source: shulou.com Published: 2022-06-01 20:54:26 10月14日 Update

This article mainly introduces "how to install and configure V2Ray under Linux" related knowledge, editor through the actual case to show you the operation process, the method of operation is simple and fast, practical, I hope that this "how to install and configure V2Ray under Linux" article can help you solve the problem.

Specific steps for installing v2Ray under Linux to modify permissions:

Su1) install unzip

Yum install-y unzip zip2) download the official installation script

# official script wget https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh-user-agent= "Mozilla/5.0" # standby, consistent with the official script wget https://github.com/super1024201/v2ray_sh_copy/blob/main/install-release.sh-user-agent= "Mozilla/5.0" if the error Unable to establish SSL connection. Install openssl

Yum install openssl looks at the directory, and install-release.sh downloads the installation script for us

Ls

3) execute the installation script

Bash install-release.sh

4) enable v2ray

Systemctl enable v2raysystemctl start v2raysystemctl status v2ray small green or yellow light (running) indicates that V2Ray has run successfully

5) modify the configuration file

The basic configuration of vi / usr/local/etc/v2ray/config.jso is as follows:

{"inbound": {"port": 10086, / / listener port number. It is recommended to change "protocol": "vmess", / / communication protocol, vmess "settings": {"clients": [{"id": "54f0f20d-7ff9-4dbd-ada0-fa1e27622d85", / / UUID identification code It is recommended to use V2Ray (client side) to regenerate "level": 1, "alterId": 64}, "streamSettings": {"network": "tcp"}, "outbound": {"protocol": "freedom", "settings": {}}, "outboundDetour": [{"protocol": "blackhole", "settings": {} "tag": "blocked"}]} 6) restart v2ray

Systemctl stop v2raysystemctl start v2ray7) use the v2rayN client to test the connection

Https://github.com/2dust/v2rayN/releases

Https://github.com/2dust/v2rayN/releases/download/4.9/v2rayN-Core.zip

Click OK to save. Select the newly added server and set it as the active server

This is the end of the introduction on "how to install and configure V2Ray under Linux". Thank you for reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.

Tags: Configuration script official suggestion knowledge customer client server industry service different practical consistent successful content slogan basic configuration practical practical file Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei OPPO Reno Apple Microsoft Xiaomi