Skip to content

ubantu

第一步,先更新

sudo apt-get update

设置root登录

初始化快照

腾讯ubantu:有可能出现

Failed to fetch http://mirrors.tencentyun.com/ubuntu/dists/bionic/InRelease  Something wicked happened resolving 'mirrors.tencentyun.com:http' (-5 - No address associated with hostname)

在这里插入图片描述

解决方案

ping后发现网络不通

ping mirrors.tencentyun.com
ping mirrors.tencent.com #确保ping 通
cat /etc/apt/sources.list

把内网地址mirrors.tencentyun.com换成外网mirrors.tencent.com

deb http://mirrors.tencent.com/debian buster main contrib non-free
deb http://mirrors.tencent.com/debian buster-updates main contrib non-free
deb http://mirrors.tencent.com/debian-security buster/updates main
#deb http://mirrors.tencent.com/debian buster-backports main contrib non-free
#deb http://mirrors.tencent.com/debian buster-proposed-updates main contrib non-free

deb-src http://mirrors.tencent.com/debian buster main contrib non-free
deb-src http://mirrors.tencent.com/debian buster-updates main contrib non-free
deb-src http://mirrors.tencent.com/debian-security buster/updates main
#deb-src http://mirrors.tencent.com/debian buster-backports main contrib non-free
#deb-src http://mirrors.tencent.com/debian buster-proposed-updates main contrib non-free

第二步,安装宝塔

1.安装docker

先装

2.安装npm管理

bug:可能碰到

root@VM-20-13-ubuntu:~# npm -v
node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by node)

解决

切换node版本 16.8.1

3.安装Fail2ban

# docker

先在宝塔安装成功docker docker

docker-compose

第一步半(国内)

v2RayA

安装好记得快照

Lucking