Skip to main content

Default Web Stack


#!/bin/bash

echo " Installing Web Server "

sudo yum install httpd -y 

echo " Starting Web service "

sudo systemctl start httpd

echo " enable Web Service "

sudo systemctl enable httpd

echo " Enable Web Content "

echo '<!DOCTYPE html>

<html>

<body>

<h1> Welcome to KartikeyaSoft Azure Training <h1>

<h1 style="background-color:Tomato;">Tomato</h1>

<h1 style="background-color:Orange;">Orange</h1>

<h1 style="background-color:DodgerBlue;">DodgerBlue</h1>

<h1 style="background-color:MediumSeaGreen;">MediumSeaGreen</h1>

<h1 style="background-color:Gray;">Gray</h1>

<h1 style="background-color:SlateBlue;">SlateBlue</h1>

<h1 style="background-color:Violet;">Violet</h1>

<h1 style="background-color:LightGray;">LightGray</h1>

</body>

</html>' > index.html


echo " Moving Index File"

sudo mv index.html /var/www/html/

Comments

Popular posts from this blog

SonarQube

CREATE DATABASE sonarqube_db; CREATE USER 'sonarqube_user'@'localhost' IDENTIFIED BY 'password'; GRANT ALL PRIVILEGES ON sonarqube_db.* TO 'sonarqube_user'@'localhost' IDENTIFIED BY 'password'; FLUSH PRIVILEGES; sonar.jdbc.username=sonarqube_user sonar.jdbc.password=password sonar.jdbc.url=jdbc:mysql://localhost:3306/sonarqube_db?useUnicode=true&amp;chara cterEncoding=utf8&amp;rewriteBatchedStatements=true&amp;useConfigs=maxPerformance

Installing OpenJDK 11

  curl -O https: //download.java.net/java/GA/jdk11/13/GPL/openjdk-11.0.1_linux-x64_bin.tar.gz tar zxvf openjdk- 11.0 .1_linux-x64_bin.tar.gz mv jdk- 11.0 .1 /usr/local/ vi /etc/profile.d/jdk11.sh # create new export JAVA_HOME=/usr/local/jdk- 11.0 .1 export PATH=$PATH:$JAVA_HOME/bin source /etc/profile.d/jdk11.sh java -version openjdk version "11.0.1" 2018 - 10 - 16 OpenJDK Runtime Environment 18.9 (build 11.0 .1 + 13 ) OpenJDK 64 -Bit Server VM 18.9 (build 11.0 .1 + 13 , mixed mode)