Download V2Ray release from V2Fly Github repo, install it using the following steps
# run all below commands as root
# create v2ray user and config directory
mkdir /usr/local/etc/v2ray
useradd --system --no-create-home --shell /usr/sbin/nologin v2ray
chown v2ray:v2ray /usr/local/etc/v2ray
# optional step, create log directory for v2ray
mkdir /var/log/v2ray
chown v2ray:v2ray /var/log/v2ray
# unpack v2ray distro and copy files into place
unzip v2ray-linux-64.zip # adapt your platform
cp v2ray /usr/local/bin/.
cp geo*.dat /usr/local/bin/.
# create config file, see variants below.
cp systemd/system/v2ray.service /etc/systemd/system/.
# edit /etc/systemd/system/v2ray.service to replace user from nobody to v2ray
sed -i 's/nobody/v2ray/' systemd/system/v2ray.service
# optional, get letsentrypt certificate files for v2ray
# copy and adapt config files
# enable v2ray servide and start
systemctl enable v2ray
systemctl start v2ray
systemctl status v2ray
# check logs
cd /var/log/v2ray
tail error.log