forked from prudhvisurya996/JavaWebCalculator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path8pm
More file actions
319 lines (215 loc) · 5.54 KB
/
8pm
File metadata and controls
319 lines (215 loc) · 5.54 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
ls -- to show the lists
mkdir -- to create a dir (mkdir meesho) (mkdir meesho{1..100})
touch -- to create a files (touch file.txt) (touch file{1..40}.txt)
rm -rf -- it is used to delete files and dir
cp -- to copy the files (cp -R file.txt /home/ec2-user/)
cd -- change dir
cat -- it will ead the content of file
pwd -- present woking diectory
mv -- it is used to move file and dir using this we can change the name of files and dir
we have 2 users
default -- ec2-user
admin privilages user -- root --sudo -i or sudo su -
editors
nano-- nano file.txt
to save -- ctl+x==y
vi-- vi file.txt
insert -- i
tosave -- esc :wq press enter
vim -- vim file.txt
inser -- i
to save -- esc :wq press enter
permissions
read -- 4
write -- 2 4+2=6
execute -- 1 4+2+1=7
chmod 444 file.txt
chmod 666 file.txt
chmod 777 file.txt
task -- 1
launch ec2 instance
connect to terminal
create 100dir
create 40 files
copy the 10 file to fist 5 dir
write the all commands in filenum 39
task --2
launch ec2-instance
connect to teminal
create 1000 dir
create 100 files
move 10 files to 1 t 10 dir
give files to write permissions
give 1000 dir to execute permissions
cidr-- classless inter domain range
cidr.xyz
task -- 3
create vpc 10.0.0.0/18
create igw-- intenet gateways
attach igw to vpc
https://www.solarwinds.com/free-tools/advanced-subnet-calculator
task -- 4
create vpc 10.0.0.0/20
create igw
create subnets
create route table
launch ec2 instance
create file.txt and type all commands using of vim editor
task -- 5
create vpc 10.0.0.0/18
create igw
create subnets
create route table
create secuity groups
launch ec2 instance / t2.micro
attach your vpc
create 100 files
give eecute pemissions to all files
task-- 6
create vpc 4000 ips
create subnet
create rt
create igw
create sg
launch instance with ubuntu ami
connect to terminal
create 20 files
give execute permissions to all files
Mount volume
1 ls
2 lsblk
3 df -h
4 lsblk
5 mkdir mount\
6 mkdir mount
7 ls
8 mkfs.ext4 /dev/xvdb
9 sudo mkfs.ext4 /dev/xvdb
10 sudo mount /dev/xvdb mount
11 df -h
12 ls
13 history
creating volume and mount vlume
=> create volume
=> select your volume and attached to instance
=> go to teminal df -h
=> lsblk -- list block storage
=> format vol (sud mkfs.ext4 /dev/xvdb)
=>mount the volume
=> create a dir and use command (sud mount /dev/xvdb mount)
=> check with df -h
=> it will shows ou usage disk space of vlume (/dev/xvdb 4G 24K 42G 1% /home/ec2-user/munt)
task --7
create vpc 16000 ip's
create igw
create subnets
create route tables
create sg
launch the ec2 instance with created vpc
create volume and attach to instance and mount it
create snapshot and create ami using of snapshot launch instance with AMI
Modifyying volume
df -h
22 lsblk
23 sudo growpart /dev/xvda 1
24 df -h
25 sudo xfs_growfs -d /
26 df -h
27 history
task --8
create vpc 5000 ips
launch ec2 instance with 20gb volume
modify volume to 40gb
create snap shot of volume and create ami and launch instance
task -- 9
create vpc 10000 ip's with compnents
launch ec2 instance with 15gb vol
create alb tg
task -- 10
create vpc 10000 ip's
create asg
create alb tg
create github
https://dev.mysql.com/downloads/workbench/
task -- 11
create vpc 15000 ip's
create asg
create alb tg
create rds check with mysql wok bench
task -- 12
create vpc igw subnets rt sg with cloud formation
task-- 13
create vpc igw subnets rt sg alb tg
Pravallika@123#$
task -- 14
create vpc igw alb tg asg using cloud fomation
create s3 bucket
deployment
httpd
48 sudo yum -y install httpd
49 sudo systemctl start httpd
50 sudo systemctl enable httpd
51 sudo systemctl status httpd
52 ls
53 sudo yum -y install git
54 git --version
55 ls
57 sudo git clone https://github.com/Mani137/food.git
58 ls
59 cd food/
60 ls
61 cp -R * /var/www/html/
62 sudo cp -R * /var/www/html/
63 cd /var/www/html/
64 ls
65 cd
66 sudo systemctl restart httpd
67 history
nginx
1 ls
2 sudo yum -y install nginx
3 sudo systemctl start nginx
4 sudo systemctl enable nginx
5 sudo yum -y install git
7 sudo git clone https://github.com/Mani137/Netflix-Clone.git
8 ls
9 cd mario/
10 ls
11 cp -R * /usr/share/nginx/html/
12 sudo cp -R * /usr/share/nginx/html/
13 ls
14 sudo systemctl restart ngninx
15 sudo systemctl start ngninx
16 sudo systemctl status ngninx
17 sudo yum -y install nginxs
18 sudo systemctl start ngninx
19 cd
20 sudo systemctl restart ngninx
task -- 15
create vpc using cloud formation
launch instances
deploy httpd and ngin projects
github
1 sudo yum -y install github
2 sudo yum -y install git
3 git --version
4 mkdir git
5 ls
6 cd git/
7 ls -a
8 git init
9 ls -a
10 touch file
11 ls
12 git add *
13 git commit -m "i am pushing files" *
14 git branch
15 git branch -M main
16 git branch
17 git remote add origin https://github.com/Mani137/usclass.git
18 git push -u origin main
19 history
task --16
create vpc with 12000 ip's though cloud formation
launch instance
create 20 files and push to github