【vps】永久免费云服务器,超强配置,8核32G内存,云服务器申请,vps申请!|vps|云服务器|

注册个人账户

申请地址:https://dashboard.render.com/

image-20231129211718709

Github创建仓库

创建一个空仓库,然后点击创建一个文件

image-20231129212354195

复制以下代码

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# 使用 Ubuntu 22.04 作为基础镜像
FROM ubuntu:22.04

# 安装 Shellinabox
RUN apt-get update && \
apt-get install -y shellinabox && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

# 设置 root 用户的密码为 'shiguang'
RUN echo 'root:shiguang' | chpasswd

# 暴露 22 端口
EXPOSE 22

# 启动 Shellinabox
CMD ["/usr/bin/shellinaboxd", "-t", "-s", "/:LOGIN"]

文件名称改为 Dockerfile,否则部署的时候会失败

image-20231129215311020

然后点击提交代码

image-20231129213551346

部署Web服务

回到Render创建Web服务器

image-20231129213715460

选择第一个,下一步

image-20231129213822839

使用github账号登录

image-20231129213950648

点击install

image-20231129214054831

选择刚才创建好的仓库,点击Connect

image-20231129214157132

名称可随意,地址选择 Oregon(Us West) ,Runtime 选择 Docker ,选择免费套餐,点击创建

image-20231129214350814

等待部署

image-20231129215452219

部署成功后会提示 Your service is live 🎉

image-20231129215520162

点击网址即可访问部署好的VPS

image-20231129215627100

使用刚才设置的用户名和密码登录,此处我设置的用户名为root,密码为shiguang

image-20231129215801421

登录成功后如下所示

image-20231129220450222

安装软件包

VPS申请完成之后,需要安装最基础的软件包,因为申请的是底层的unbutu操作系统

输入命令时可以鼠标右键选择通过浏览器粘贴

image-20231129220920099

更新系统

1
apt update

安装基础软件包

1
apt install sudo curl wget nano screen git

安装neofetch工具

1
sudo apt install neofetch

调用显示系统信息命令

1
neofetch

执行过程中如需确认是否继续,选择y

image-20231129221554051

最终执行效果如下

image-20231129221753970