-
Notifications
You must be signed in to change notification settings - Fork 79
Expand file tree
/
Copy pathBootScript
More file actions
75 lines (60 loc) · 2.24 KB
/
Copy pathBootScript
File metadata and controls
75 lines (60 loc) · 2.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
################################################---------For Ubuntu-------------------
#!/bin/bash
sudo apt update -y
sudo apt install apache2 -y
sudo service apache2 start
sudo systemctl enable apache2
sudo su
sudo echo "<html><body bgcolor="blue"><h1> Hello World</h1></body></html>" > /var/www/html/index.html
#######################################################################################
#!/bin/bash
sudo yum update -y
sudo yum install httpd -y
sudo service httpd start
sudo chkconfig httpd on
sudo su
sudo echo "<html><body bgcolor="red"><h1> Hello World</h1></body></html>" > /var/www/html/index.html
#!/bin/bash
sudo yum update -y
sudo yum install httpd -y
sudo service httpd start
sudo chkconfig httpd on
sudo su
sudo echo "<html><body bgcolor="blue"><h1> Hello World</h1></body></html>" > /var/www/html/index.html
##################---Server-1----------###################
sudo su
mkdir /var/www/html/image
sudo echo "<html><body bgcolor="yellow"><h1> Hello World From Image</h1></body><html>" > /var/www/html/image/index.html
##################---Server-2----------###################
sudo su
mkdir /var/www/html/food
sudo echo "<html><body bgcolor="yellow"><h1> Hello World From Food</h1></body><html>" > /var/www/html/food/index.html
#!/bin/bash
sudo yum install httpd -y
sudo yum update -y
sudo service httpd start
sudo chkconfig httpd on
sudo mkdir /var/www/html/test1
echo "<html><body bgcolor="red"><h1> Hello World from test1</h1></body><html>" > /var/www/html/test1/index.html
#!/bin/bash
sudo yum install httpd -y
sudo yum update -y
sudo service httpd start
sudo chkconfig httpd on
sudo mkdir /var/www/html/test2
echo "<html><body bgcolor="red"><h1> Hello World from test2</h1></body><html>" > /var/www/html/test2/index.html
###############################################################################################
#!/bin/bash
sudo yum install httpd -y
sudo yum update -y
sudo service httpd start
sudo chkconfig httpd on
sudo echo "<html><body bgcolor="red"><h1> Hello World</h1></body></html>" > /var/www/html/index.html
##################################################----Volume-Mount-----#########################
lsblk
file -s /dev/xvdf
sudo mkfs -t ext4 /dev/xvdf
sudo mkdir /newvolume
mount /dev/xvdf /newvolume/
cd /newvolume
df -h