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

888u

Last update at :2024-07-09,Edit by888u

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

Oracle has a lot of money, and free VPS is very popular, but it is difficult to open a VPS in South Korea and Japan now. Below are some tips that I have used or collected.

1. Registration of Oracle Cloud

It is recommended to use real information to register. You can use the IP address from mainland China, as well as the phone number.

A visa or master credit card is required. A US$1 fee will be deducted for verification and will be refunded later.

The region selected when registering will be the region where free resources will be defaulted 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 key

The difficulty for many people is the SSH key. It is recommended to use Xshell. Create and save as shown below.

Default, click Next

In the next step, you must set a password.

2. Create VPS

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

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

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

3. Automatically create VPS

Japan and South Korea are difficult to obtain. The following script can automatically create instances.

On the create instance page, select the system, paste the SSH key, then right-click Create, select Inspect 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 root account

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

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

5. Use BBR acceleration

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

Oracle Cloud instances only open port 22 by default. The following is to enable all ports (or specific ports)

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

Add 2 security rules, one for outbound and one for inbound, and select all to pass.

In the instance, just select the security rule you created.

4. Oracle Cloud changes IP for free

Open your instance list, click on 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 the 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 system

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

6. Oracle Cloud opens all ports In addition to the firewall port mentioned above in the Oracle Cloud backend, the port in Xiaoji must also be opened

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

Recommended site search: American anti-attack server Korean independent server, American virtual space, anti-complaint vps host, virtual host 0 yuan purchase, cpanel host, godaddy space, Taiwan server rental, Dongguan hosting, Korean server rental,

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

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码