#!/bin/bash
yum -y install httpd
systemctl enable httpd
systemctl start httpd
echo '
KT Web Server!
' > /var/www/html/index.html
sudo dnf install mysql -y
[root@bts-web00 ~]#
[root@bts-web00 ~]# ssh cloud-user@10.0.2.70 -i kp-01.pem
[cloud-user@bts-was00 ~]$
[cloud-user@bts-was00 ~]$
[cloud-user@bts-was00 ~]$ ping 1.1.1.1
PING 1.1.1.1 (1.1.1.1) 56(84) bytes of data.
[root@bts-web00 ~]# mysql -h 10.0.3.242 -P 10061 -u topasvga -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 473
Server version: 8.4.7 MySQL Community Server - GPL
Copyright (c) 2000, 2026, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mydb |
| performance_schema |
+--------------------+
3 rows in set (0.00 sec)
mysql>