ZNHOO Whatever you are, be a good one!

Public Cloud Infrastructure

  1. General Components
  2. AWS
  3. Oracle
    1. Keywords
    2. Always-free
    3. Instance Configuration
    4. Linux Configuration
  4. Aliyun

This will presents a general setup on public cloud platform (e.g. AWS) to launching a working web server.

General Components

  1. Compute instance, like EC2.
    1. Running time.
  2. Network, like VPC (virtual private cloud).
    1. Elastic IP.
    2. Security Group (zone) and Compute iptables.
    3. Bandwidth and traffic usage.
  3. Storage, like EBS (elastic block storage).
    1. Image storage.


Check "AWS_EC2/AWS_EC2.docx".



Oracle Cloud Infrastructure (OCI):

  1. Tenancy. User accounts, the root account included.
  2. Compartment. A group of resources for different projects, like Finance compartment, logging compartment etc. Think of compartment as Tess cluster.

    Click link to review all resources within the root compartment.

  3. Tag namespace. A group of tags applied to resources. Think of tag namespace as Tess namespace - just another dimension of resources organization.


Always free resources does not limit running time or network traffic:

  1. 2 instances.
  2. 2 public IPs.
  3. 200 GB storage (block volume + boot volume).
    1. 5 volume backups.
  4. 2 VCN (virtual cloud network).

Instance Configuration

  1. Create an instance
    1. Select resources with "Always Free Eligible" label.
    2. Select CentOS 8.2.
    3. Instance shape is "VM.Standard.E2.1.Micro".
    4. Upload SSH public key.
  2. Public IP assigned may be blocked, but we can always got a new one at:

    Compute - Instances - Instance Details - Attached VNICs - VNIC Details - IPv4 Addresses.

  3. Configure VCN
    1. Add "ingress rules" to the default "security list". By default, VNC only allows port 22 ingress. 2, Leave "Stateless" alone, otherwise you need to add matching "egress rules". By default, ICMP is blocked; SSH is allowed.
  4. Block Volume. By default, each instance is assigned 50 GB boot volume. However, each account can have up to 200 GB volume. So we can attach a special volume to the instance and mount as "/home".
    1. Create and attach block volume. Please remembr to run the iSCSI commands.
    2. To mount the new device by "/etc/fstab", remember to add _netdev and nofail options, as attached block volumes require network access.
    3. When you "terminate" an instance, remember that the volumes associated remain unless explicitly deleted.
  5. Disable all "plugins".

Linux Configuration

  1. Disable Orable Cloud Agent.

    ~ $ systemctl stop oracle-cloud-agent
    ~ $ systemctl disable oracle-cloud-agent
    ~ $ systemctl stop oracle-cloud-agent-updater
    ~ $ systemctl disable oracle-cloud-agent-updater
  2. Disable rpcbind.

    ~ $ systemctl stop rpcbind.service
    ~ $ systemctl stop rpcbind.socket
    ~ $ systemctl stop rpcbind.target
    ~ $ systemctl disable rpcbind
    ~ $ systemctl disable rpcbind.socket
  3. Firewall.

    1. By default, firewalld is enabled.
    2. iptables rules are quite complex. We'd better leave it alone.