服务器流程
# ubantu
# 第一步,先更新
sudo apt-get update
1
设置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)
1
解决方案
ping后发现网络不通
ping mirrors.tencentyun.com
ping mirrors.tencent.com #确保ping 通
1
2
2
cat /etc/apt/sources.list
1
把内网地址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
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
# 第二步,安装宝塔
# 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)
1
2
2
解决
切换node版本 16.8.1
1
# 3.安装Fail2ban
# # docker
先在宝塔安装成功docker docker
docker-compose
# 第一步半(国内)
v2RayA
上次更新: 2023/02/20, 23:40:01