+
Skip to content

cuong0993/oci

Repository files navigation

ssh-keygen -t rsa
ssh opc@public_ip -i ~/.ssh/id_rsa
terraform init
  -backend-config="address=https://objectstorage.ap-singapore-1.oraclecloud.com/p/FD58RMnOqCAS68pqhFepGHKVLUMWQanan99Cs0oj3AOMJmDS8ibClvKwRP3xyv--/n/axyyz3fsrayr/b/terraform-state/o/terraform.tfstate"
  --upgrade -reconfigure

terraform apply -auto-approve -input=false --var-file=a1-flex.tfvars
terraform init
    -backend-config="address=https://objectstorage.ap-singapore-1.oraclecloud.com/p/1y_GJB5Qvwzz8xx8Y9SHK8cHGbqsOHwjwvbYvrcjsto1IGN3X1Y_Wzh-j7bcWkI9/n/axyyz3fsrayr/b/terraform-state/o/terraform.tfstate1"
    -reconfigure

terraform apply -input=false --var-file=e2-micro.tfvars

Install MySQL

yes | sudo yum update
sudo systemctl reboot
sudo dnf install @mysql:8.0 -y

Start MySQL

sudo systemctl enable --now mysqld
systemctl status mysqld
sudo mysql_secure_installation

Create MySQL user

mysql -uroot -p
CREATE USER 'user'@'%' IDENTIFIED BY 'P@ssw0rd';
GRANT ALL PRIVILEGES ON _._ TO 'user'@'%' WITH GRANT OPTION;
FLUSH PRIVILEGES;

Disable firewall

sudo firewall-cmd --state
sudo systemctl stop firewalld
sudo systemctl disable firewalld

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载