본문 바로가기

Computer/Linux

Oracle server installation [Free]

https://cloud.oracle.com/


Sequence of creating VM

oracle cloud -> Create a VM instance > image and shape > select OS(Ubuntu) > Select CPU & Memory > Create 

* Ubuntu 22.02 does not support ssh-key as of June 8, 2022, use 20.04 instead.


Setting reserved public IP

Compute > Instance > Attached VNICs > instance click > IP4v address > instance edit > no public IP > update

Compute > Instance > Attached VNICs > instance click > IP4v address > instance edit > Reserved public IP > Select Existing Reserved IP Address > Update


Networking > Reserved Public IPs > Reserved Public IPs 


HTTP and HTTPs port open
Compute > Instance > select instance > Primary VNIC/subnet:Public Subnet-vpn network > default security > add ingress rules > 

 

Source CIDR = 0.0.0.0/0
Destination Port range = 80,443
Description HTTP and HTTPS port open


Open port in Linux

 

sudo apt update

sudo apt upgrade

 

sudo iptables -I INPUT 1 -p tcp --dport 80 -j ACCEPT
sudo iptables -I INPUT 1 -p tcp --dport 443 -j ACCEPT

sudo iptables -I INPUT 6 -m state --state NEW -p tcp --dport 80 -j ACCEPT
sudo iptables --list

 

sudo apt install apache2


prevent reclaim

sudo apt install sysbench

 

crontab -e

* */5 * * * sysbench cpu --events=10000 --cpu-max-prime=20000 --time=0 --threads=2 run > sysbench.log 2>&1

* */5 * * * sysbench cpu --events=10000 --cpu-max-prime=20000 --time=0 --threads=2 run

 

 

 

 

 

'Computer > Linux' 카테고리의 다른 글

SSL 무료로 설치 렛츠인크립트 Let's Encrypt  (0) 2021.09.22
rclone  (0) 2020.05.13
Diable sleep/hibernation mode in Ubuntu  (0) 2020.03.31
github  (0) 2019.05.22
fdisk  (0) 2019.05.19
AUTOFS  (0) 2019.05.19
User account control  (0) 2019.05.15
Samba  (0) 2019.05.12