Oracle Cloud: Register an account, create a VPS, automatically create a VPS, create an SSH key, install BBR, set up a firewall, change IP for free, etc.; uninstall Oracle Cloud monitoring; open ports, etc.

Oracle Cloud: Register an account, create a VPS, automatically create a VPS, create an SSH key, install BBR, set up a firewall, change IP for free, etc.; uninstall Oracle Cloud monitoring; open ports, etc.

Details : Oracle Cloud: Forever free database and cloud services; available in Japan, South Korea, etc., and by the United States, Europe, etc.

Oracle, with its deep pockets, is very popular with its free VPS, but it is very difficult to get a VPS in Korea and Japan right now. Here are some tips that I’ve used or collected.

1. Oracle Cloud Registration

It is recommended to use real information to register, and the IP address and phone number can be domestic.

A visa or master credit card is required, and a $1 fee will be charged for verification, which will be refunded later.

The region you choose when registering will be the default region for free resources in the future (the United States and Europe have sufficient resources and are easy to create)

2. Oracle Cloud creates VPS and automatically creates VPS

1. Create SSH keys

Many people have difficulty with SSH keys, so it is recommended to use Xshell. Create as shown below and save.

By default, click Next

In the next step, you must set a password.

2. Create a VPS

In Oracle Cloud, it is called an instance. After logging in, select Compute – Instances from the left menu.

When creating, the system recommends selecting Centos7. Be sure not to choose Centos6, it is charged.

Only VM.Standard.E2.1.Micro is free. The words " Always free " will be displayed after the created instance.

3. Automatically create VPS

It is difficult to get it in Japan and South Korea. The following script can automatically create an instance.

On the Create Instance page, select the system, paste the SSH key, then right-click Create, select Review Element, paste the following code in the Console at the bottom, and press Enter to execute.


var i = 1;

function myLoop () {

setTimeout(function () {

document.getElementsByClassName('oui-button oui-button-primary')[0].click();

i++;

if (i < 3600) {

myLoop();

}

}, 10000)

}

myLoop();

This code is transferred from: https://www.hostloc.com/thread-586893-1-1.html

4. System default login name and how to use the root account

The default login account of centos is opc
ubuntu The default login account is ubuntu

After logging in, use the command sudo su to log in as the root account

5. Use BBR to accelerate

Ubuntu can use BBR directly.
Centos7 needs to regenerate the boot, root user:

grub2-mkconfig -o /boot/grub2/grub.cfg

Then, install bbr. Specific reference: How to enable native Google BBR on CentOS 7 / Debian 9 to achieve TCP acceleration

3. Oracle Cloud Firewall Settings

By default, only port 22 is enabled for Oracle Cloud instances. The following is to enable all ports (or specific ports)

Select Network – Virtual Cloud Network – Virtual Cloud Network – Network Security Group, create a network security group

Add two security rules, one for outbound and one for inbound, and select "all pass" for both.

In the instance, just select the created security rule.

4. Oracle Cloud Free IP Change

Open your instance list, click the instance name you want to modify, and enter the instance details

Select No Public IP, Update, remove the original IP, then edit it again, select Temporary Public IP, Update, and the IP will be changed.

5. Uninstall Oracle Cloud Monitoring

1. Applicable to CentOS system

 yum remove oracle-cloud-agent
yum remove oracle-cloud-agent-updater

2. Applicable to Debian/Ubuntu systems

 apt-get remove oracle-cloud-agent
apt-get remove oracle-cloud-agent-updater

6. Oracle Cloud opens all ports <br /> In addition to the firewall ports mentioned above, Oracle Cloud backend also needs to open ports in the chicken.

 sudo iptables -P INPUT ACCEPT 
sudo iptables -P FORWARD ACCEPT 
sudo iptables -P OUTPUT ACCEPT 
sudo iptables -F

<<:  Krypt ION: $15/month/1GB RAM/25GB SSD space/500GB data traffic/100Mbps/KVM/Singapore PCCW/Singapore CN2/Singapore China Mobile

>>:  VpsLot: US KVM VPS, 10% off for the first month, including IP, etc.; suitable for tense environments and transitional stages

Recommend

TCP acceleration: BBR one-click installation to improve domestic network speed

BBR, an acceleration optimization product produce...

Daring Host latest 50% discount

Daring Host is an American hosting company founde...

HostUS: $15/year/1 CPU/768MB memory/20GB space/2000GB/1 IP/OpenVZ

Previously introduced: HostUS: $15/year/2 CPU/512...

VPS.NET: $13/month/2GB RAM/50GB SSD space/4TB bandwidth/KVM/Los Angeles/Seattle

VPS.NET is a long-established British hosting com...

【Double 11】 Gugu Cloud: Double 11 flash sale will start at 8 o'clock

Event link: https://www.ggy.net/store/act-1111 No...