您是否正在寻找一个免费的测试服务器来托管一些较小的项目或用作游乐场环境? 不幸的是,那里没有太多免费的 VPS 选项而且,通常,如果它们是免费的,它们甚至可能不值得努力设置 Oracle 提供了一个相当不错的云 VPS 服务器,我已经将其用作测试服务器几个月了。我建议你试一试! 本指南将引导您了解如何在其 GUI 中设置 Oracle 云免费服务器,然后如何使用 Cleavr 作为“自定义服务器”连接到它 [更新] 2022 年 4 月 10 日 Cleavr 现在支持开箱即用的免费 Oracle 云 VPS 您可以按照步骤 1 中的说明创建一个 Oracle 云帐户。现在在 Cleavr 中创建一个 VPS 配置文件,您就可以准备好提供一个新的免费 Oracle 服务器了。要将您的 Oracle Cloud 帐户连接到 Cleavr,您可以参考我们的文档 前往 Oracle Cloud 并创建一个新帐户 预计必须提供信用卡才能创建帐户。只要您坚持使用他们提供的免费选项,就不必担心您的卡会被扣款。他们在标记哪些资源是免费的方面做得很好 还有一件事要提,预计 Oracle 代表会通过电子邮件和电话与您联系。相信我,他们会尽最大努力与您取得联系。 注册后,在入门页面上启动一个新的 VM 实例 在 **图像和形状** 卡片,单击 **编辑 您需要选择 **Canonical Ubuntu: 20.04** 实例 添加您的 SSH 密钥(您需要在接下来的步骤中通过 SSH 连接到新服务器) 最后,点击 **创建 这将在 Oracle 端配置服务器 一旦 Oracle 服务器分配了公共 IP 地址,将 IP 复制到剪贴板并将标头复制到 Cleavr 在仪表板上,单击 **创建**按钮并选择服务器 对于 VPS 配置文件,选择 **自定义服务器** 为服务器命名并粘贴 **IP Address** 填入相应字段 复制命令以在服务器上以 root 身份运行并打开终端并通过 SSH 连接到服务器 ssh ubunutu@ The default server user with Oracle Cloud is ubuntu. You cannot access as root at this point. Once you conenct to the server, you can switch to root using the following command sudo su root Now, paste in the command and run it Back in Cleavr, provision the server Cleavr will add further dependencies to the server and get it all ready to host your apps Port 80 and 443 will be closed by default. Assuming you plan to add websites to the server, open port 80 and 443 by clicking on **Virtual Cloud Network** from the server instance details screen Click **Security List** on the left menu Click on the security list Click **Add Ingress Rules** Add the following source and port - Add the ingress rule for port 80. Do the same process for port 443 We've seen some odd behavior that blocks port 80 and 443 connections, even when enabling it via the Oracle UI and in UFW Thanks to our community members, we've found running the following commands have solved the port issues in most cases On the server terminal via SSH, run the following commands one-by-one: sudo iptables -I INPUT 6 -m state --state NEW -p tcp --dport 443 -j ACCEPT sudo iptables -I INPUT 6 -m state --state NEW -p tcp --dport 80 -j ACCEPT sudo netfilter-persistent save You're now all setup to use Cleavr to manage your free Oracle Cloud server and start adding sites and deploying web apps! Sign up for a 5-day free trial of Cleavr Pro. No credit card required until you decide to subscribe.Sign up for free