1.使用root权限操作

sudo su

输入密码。(密码不会显示出来直接输入然后enter就好。)

2.服务器安装

依赖软件:

$ apt update
$ apt install curl

下载安装脚本

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

遇到问题

curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused

解决方法:
通过修改hosts。
查询IP
在https://www.ipaddress.com/查询raw.githubusercontent.com的IP。
添加自己查到的这四个IP

具体操作如下:

sudo vim /etc/hosts

添加内容

那四行是我添加的

再执行刚刚的命令就可以下载了

执行安装

$ bash install-release.sh

下载验证文件的时候遇到问题

curl: (56) OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 104
error: Download failed! Please check your network or try again.


解决方案:
主要原因是安全设置的问题:

首先执行
git config http.sslVerify "false"
若出现下列错误
git config http.sslVerify "false" fatal: not in a git directory
再继续执行
git config --global http.sslVerify "false"
问题解决

log记录

curl: (56) OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 104
error: Download failed! Please check your network or try again.
removed: /tmp/tmp.e22x8VkHrI
root@peggy-virtual-machine:/home/peggy# git config http.sslVerify "false"
fatal: not in a git directory
root@peggy-virtual-machine:/home/peggy# git config --global http.sslVerify "false"
root@peggy-virtual-machine:/home/peggy# bash install-release.sh
info: Installing V2Ray v4.43.0 for x86_64
Downloading V2Ray archive: https://github.com/v2fly/v2ray-core/releases/download/v4.43.0/v2ray-linux-64.zip% Total    % Received % Xferd  Average Speed   Time    Time     Time  CurrentDload  Upload   Total   Spent    Left  Speed
100   626  100   626    0     0    941      0 --:--:-- --:--:-- --:--:--   939
100 13.5M  100 13.5M    0     0  24896      0  0:09:30  0:09:30 --:--:-- 34695
Downloading verification file for V2Ray archive: https://github.com/v2fly/v2ray-core/releases/download/v4.43.0/v2ray-linux-64.zip.dgst
info: Extract the V2Ray package to /tmp/tmp.tWDXjw7e4w and prepare it for installation.
info: Systemd service files have been installed successfully!
warning: The following are the actual parameters for the v2ray service startup.
warning: Please make sure the configuration file path is correctly set.
~~~~~~~~~~~~~~~~
[Unit]
Description=V2Ray Service
Documentation=https://www.v2fly.org/
After=network.target nss-lookup.target[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.tWDXjw7e4w
info: V2Ray v4.43.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

可以了

Ubuntu18.04脚本安装ucore实验所需工具相关推荐

  1. ROS ubuntu18.04 工控机安装(轮趣科技 )验证通过

    ROS ubuntu18.04 工控机安装(轮趣科技 )验证通过 #先安装 ubuntu18.04 #参考一下文档安装 ROS Melodic http://wiki.ros.org/cn/melod ...

  2. Ubuntu18.04 LTS 安装nvidia驱动出现Ignoring CC version mismatch

    问题背景:之前显卡驱动一直正常,突然有一天 使用nvidia-smi报错: NVIDIA-SMI has failed because it couldn't communicate with the ...

  3. 在Ubuntu18.04上安装USTC-TK2016

    在Ubuntu18.04上安装USTC-TK2016 1.安装依赖 1. 安装Mono sudo apt install gnupg ca-certificates sudo apt-key adv ...

  4. Ubuntu18.04 LTS安装、配置、美化、常用软件安装、问题总结和使用体验

    Ubuntu18.04 LTS安装.配置.美化.常用软件安装.问题总结和使用体验 一.前言 二.安装系统 1. 安装前的准备 2. 开始安装 ▲附Ubuntu各个分区作用一览表: 三.系统配置 四.系 ...

  5. ubuntu18.04上安装ffmpeg

    ubuntu18.04上安装ffmpeg 下载ffmpeg wget https://johnvansickle.com/ffmpeg/builds/ffmpeg-git-amd64-static.t ...

  6. ubuntu18.04.4 安装 dlib (解决 Running setup.py install for dlib ... error错误)

    ubuntu18.04.4 安装 dlib (解决 Running setup.py install for dlib - error错误) 直接安装出现错误: Running setup.py in ...

  7. ubuntu18.04.4 安装百度硬盘

    文章目录 ubuntu18.04.4 安装百度硬盘 下载 打开网址 ubuntu18.04.4 安装百度硬盘 下载 打开网址 https://pan.baidu.com/download

  8. ubuntu18.04.4 安装 qq x64 版本

    文章目录 ubuntu18.04.4 安装 qq x64 版本 确定版本 根据你所使用的linux发行版选择格式: 1 代码安装 1 下载 2 安装qq 3 删除qq 2 图形化界面安装 1 下载 2 ...

  9. ubuntu18.04.4 安装 微信

    ubuntu18.04.4 安装 微信

最新文章

  1. python中矩阵与向量的区别
  2. 标记寄存器---汇编学习笔记
  3. python 文案自动生成_Python应用 | 利用COM技术自动生成IBM i2舞弊关系分析图表
  4. FlashBuilder找不到所需要的AdobeFlashPlayer调试器版本的解决方案
  5. 4k笔记本安装linux,Dell 4K Linux 笔记本 M3800 发售
  6. VC++6.0 DDK 环境配置
  7. 原生Hadoop集群搭建过程记录
  8. 大数据能消除在招聘和相关商业行为中的偏见吗?
  9. [书目20090216]高绩效人士的五项管理 李践作品
  10. 28、ZigBee 开发教程之基础篇—红外对射计数器
  11. tf.ones_like()函数用法详解(附代码理解)
  12. Java简单端口扫描器
  13. DBA 职业迷茫何去何从
  14. keil的debug使用
  15. mysql时间和时间戳转换工具_时间戳转换工具
  16. 苹果cmsv10好看的七色中文二开视频免费模板
  17. 21、backtrader的一些基本概念---市价单(market order)的创建和撮合逻辑
  18. flash春雷闪电效果
  19. 服务端监控架构设计与实践
  20. WIN10引用的账户当前已锁定,且可能无法登录的解决方案

热门文章

  1. 云宏携手英特尔基于英特尔® 至强® 可扩展平台全面升级超融合一体机解决方案
  2. 使用python的PIL.Image在图片上写字
  3. 如何用计算机名安装打印机,如何添加打印机(如何在电脑上安装打印机?)
  4. 二、MacBook Pro 使用eGPU-连接eGpu篇,mac变身小台式机
  5. 计算机视觉方向简介 | 机器视觉检测技术
  6. 两管式出热水被截流 海尔三管大水量真正零冷水入驻天猫
  7. C++ 泛型编程(五) 模版重载与特例化
  8. 动手学pytorch笔记整理12
  9. python处理Excel表格--读取Excel表格
  10. 【实操】python opencv将图片合成视频,并插入音频