Skip to content
-
java –version
-
java -version
-
clear
-
yum install -y mariadb-server
-
cd ~
-
yum install -y firewalld
-
service firewalld start
-
systemctl enable firewalld
-
firewall-cmd –permanent –zone=public –add-port=3306/tcp
-
firewall-cmd –reload
-
vi /etc/my.cnf ================> don’t make any changes
-
service mariadb start
-
systemctl enable mariadb
-
service mariadb status
-
-
firewall-cmd –list-all
-
mysql
-
cat > db-load-script.sql <<-EOF USE ecomdb;
-
CREATE TABLE products (id mediumint(8) unsigned NOT NULL auto_increment,Name varchar(255) default NULL,Price varchar(255) default NULL, ImageUrl varchar(255) default NULL,PRIMARY KEY (id)) AUTO_INCREMENT=1;
-
-
INSERT INTO products (Name,Price,ImageUrl) VALUES (“Laptop”,”100″,”c-1.png”),(“Drone”,”200″,”c-2.png”),(“VR”,”300″,”c-3.png”),(“Tablet”,”50″,”c-5.png”),(“Watch”,”90″,”c-6.png”),(“Phone Covers”,”20″,”c-7.png”),(“Phone”,”80″,”c-8.png”),(“Laptop”,”150″,”c-4.png”);
-
-
EOF
-
-
mysql < db-load-script.sql
-
mysql
-
yum install -y httpd php php-mysql
-
firewall-cmd –permanent –zone=public –add-port=80/tcp
-
firewall-cmd –list-all
-
firewall-cmd –reload
-
systemctl enable httpd
-
firewall-cmd –list-all
-
service httpd start
-
yum install -y git
-
cat /var/www/html/index.php | grep -i localhost
-
curl http://localhost
-
git clone https://github.com/kodekloudhub/learning-app-ecommerce.git /var/www/html/
-
cd /var/www/html
-
ls -lart
-
mv index.html /var/tmp/
-
git clone https://github.com/kodekloudhub/learning-app-ecommerce.git /var/www/html/
-
ls
-
service httpd restart
-
vi index.php
-
service httpd restart
-
cat index.php | grep -i 10.0.1.51
-
hostname -i
-
vi /etc/hosts
-
service mariadb restart
-
vi /etc/hosts
-
vi index.php
-
curl http://localhost
-
ls -lart
-
ll
-
cd html
-
pwd
-
ls
-
history
-
-
…or create a new repository on the command line
-
-
echo “# story-blog” >> README.md
-
git init
-
git add README.md
-
git commit -m “first commit”
-
git branch -M main
-
git remote add origin https://github.com/srmanthena83/story-blog.git
-
git push -u origin main
-
-
…or push an existing repository from the command line
-
-
git remote add origin https://github.com/srmanthena83/story-blog.git
-
git branch -M main
-
git push -u origin main
-
-
# A simple example of ClusterConfig object:
-
—
-
apiVersion: eksctl.io/v1alpha5
-
kind: ClusterConfig
-
-
metadata:
-
name: cluster-1
-
region: us-east-1