新版v2ray/v2fly安装教程

  82  curl -O https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh

  83  bash install-release.sh

  84  systemctl enable v2ray; systemctl start v2ray

  85  cd /usr/local/etc/v2ray/

  86  ls

  87  vim config.json

  88  cp /home/ubuntu/*.json .

  89  ls

  90  systemctl restart v2ray

  91  v2ray status

  92  vim config.json

  93  reboot

  94  cd /usr/local/etc/v2ray/

  95  ls

  96  v2ray status

  97  sudo netstat -lnp | grep 334

  98  v2ray status

  99  cd ~

  100  ls

  101  ss -nlp | egrep ‘ss-server|ss-local|v2ray’

  102  cd /usr/local/etc/v2ray/

  103  ls

  104  cd ..

  105  cp -r v2ray ~/

  106  cd v2ray/

  107  ls

  108  mv config.json config.json~

  109  rm *.json

  110  mv config.json~ config.json

  111  systemctl restart v2ray

  112  v2ray status

  113  vim /var/log/v2ray/error.log

  114  vim /var/log/v2ray/

  115  vim /var/log/v2ray/error.log

  116  /usr/bin/v2ray/v2ray

  117  systemctl status v2ray

运行systemctl status v2ray 正常;

但运行v2ray status 显示端口被自己占用。

其实不影响使用。

config.json 文件用我一直用那个即可,不用修改。

图片[1]-新版v2ray/v2fly安装教程-今天我都干啥了

[Service]

User=nobody

CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE

AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE

NoNewPrivileges=true

ExecStart=/usr/local/bin/v2ray -config /usr/local/etc/v2ray/config.json

Restart=on-failure

RestartPreventExitStatus=23

[Install]

WantedBy=multi-user.target

# In case you have a good reason to do so, duplicate this file in the same directory and make your customizes there.

# Or all changes you made will be lost!  # Refer: https://www.freedesktop.org/software/systemd/man/systemd.unit.html

[Service]

ExecStart=

ExecStart=/usr/local/bin/v2ray -config /usr/local/etc/v2ray/config.json

~~~~~~~~~~~~~~~~

warning: The systemd version on the current operating system is too low.

warning: Please consider to upgrade the systemd or the operating system.

installed: /usr/local/bin/v2ray

installed: /usr/local/bin/v2ctl

installed: /usr/local/share/v2ray/geoip.dat

installed: /usr/local/share/v2ray/geosite.dat

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

installed: /var/log/v2ray/

installed: /var/log/v2ray/access.log

installed: /var/log/v2ray/error.log

installed: /etc/systemd/system/v2ray.service

installed: /etc/systemd/system/v2ray@.service

removed: /tmp/tmp.64NVWPducL

info: V2Ray v4.33.0 is installed.

You may need to execute a command to remove dependent software: apt purge curl unzip

Please execute the command: systemctl enable v2ray; systemctl start v2ray

root@oracle:~# systemctl enable v2ray; systemctl start v2ray

Created symlink /etc/systemd/system/multi-user.target.wants/v2ray.service → /etc/systemd/system/v2ray.service.

root@oracle:~#

© 版权声明
THE END
在时间中留下我的脚印
分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情图片

    暂无评论内容