How to Install Jenkins in Ubuntu EC2 Instance | How to login Jenkins

How to Install Jenkins in Ubuntu EC2 Instance | How to login Jenkins


How to Install Jenkins in Ubuntu EC2 Instance | How to login Jenkins

#jenkins #devops
How to Install Jenkins in Ubuntu EC2 Instance | How to login Jenkins


Content

3.12 -> hello all in this video we will see how
6.399 -> to install jenkins in ubuntu server
11.44 -> so let's first launch the ec2 servers
17.119 -> so i am choosing open toe
21.199 -> so i will give launch instances
25.519 -> i will choose
27.92 -> open to server
29.519 -> so
31.119 -> i am using free tire here
44.239 -> so here i am choosing
46.239 -> 20.4 lts
54.64 -> so here i am choosing t2 micro
57.6 -> and
58.399 -> as it is i am choosing the configuration
61.6 -> i attacks
63.28 -> i am giving name like
66.08 -> jenkins
68.56 -> configure
70.08 -> so here i'm allowing all tcp
74.64 -> okay
76.88 -> review
78.159 -> launch
79.52 -> i have some keepass
81.84 -> so i'm choosing existing keypad
91.759 -> so
92.799 -> here
94.479 -> it is under pending status
97.04 -> so it needs to come
99.6 -> running status so we have to wait
111.119 -> now you can see
113.119 -> our ec2 ubuntu server came to running
116.96 -> status and
119.119 -> two-way to check
121.119 -> it's passed
122.719 -> so now i'm going to login the
126.159 -> server
128.56 -> so i am copying the public ip address
136.08 -> so
155.2 -> so the default username is ubuntu
163.519 -> so i'm logging as a root user
168.48 -> and clearing so here i want to
172.239 -> install the jenkins
175.04 -> so
175.76 -> for that
177.28 -> i'm going to
179.44 -> the jenkins website
181.599 -> change
184.959 -> install
187.44 -> asian so
189.68 -> this is the website
194.64 -> so
195.44 -> i need to choose
198 -> linux
199.599 -> so our
203.76 -> flavor is ubuntu
206.4 -> i am choosing ubuntu
209.44 -> so here there are two types of support
214 -> long term support release and another
216.4 -> one weekly release
218.879 -> so in the long i'm going to use long
222.159 -> term support release because
224.72 -> when you go to launch instances in
227.599 -> ubuntu
229.36 -> you can see that here it is mentioned
232.239 -> lts
233.439 -> so this is long term support so i am
236.48 -> choosing long term support
240.72 -> so
250.319 -> so
251.28 -> in this i have to run the script
256.799 -> this script i have to run so i'm
259.919 -> choosing debian stable after repository
263.759 -> so this is the
265.199 -> fastest script compared to that one so i
268.16 -> am choosing this
269.68 -> so
270.72 -> i am giving this comment
281.28 -> so
283.28 -> next i have to add the jenkins
286.479 -> repository
288.479 -> so
290.8 -> i'm just
292.08 -> copy paste this all comment
294.96 -> so it will add the
297.36 -> repository
301.919 -> so first command it says jenkins to
305.039 -> automate installation and upgrade
308.32 -> so for that the first command
310.88 -> so next
312.96 -> update your
314.32 -> local package index then finally install
317.919 -> jenkins
319.039 -> so i need to update the
327.6 -> things
328.72 -> whatever there i have to update
336.08 -> so it's still loading
340.16 -> yes it's done
343.36 -> next
345.199 -> i'm going to
349.84 -> give the next comment apt-get install
353.039 -> font config open jdk 11 j r e
383.28 -> it will take some time so we have to
386 -> wait for some time
390.319 -> so you can see that it is unpacking and
395.52 -> it's just installing the things
403.919 -> okay it's done
407.28 -> next we have to install jenkins so i
410.639 -> have to get install
412.56 -> so do i have to get installed jenkins
417.199 -> so
417.919 -> this is 92.1 mp
420.88 -> sorry yes
425.039 -> so it will take some time
428.16 -> so meanwhile i will pause the video
435.36 -> you can see that now it is completed
440.56 -> so we need to check
443.199 -> whether it is installed or not if you
445.919 -> want to check you can
447.919 -> put the below comment ps
452.24 -> yes iphone ef
457.759 -> grab
462.84 -> jenkins so you can see that now jenkins
466.639 -> is installed and it is running on port
470.639 -> number 8080
473.039 -> so now we
475.52 -> just installed the jenkins on ubuntu
478.24 -> server
479.28 -> next we are going to
483.12 -> log into that page so you have to copy
485.52 -> the public ip address
496.56 -> oh i'm just pasting the public ip and
500.24 -> i'm giving the port number
504.84 -> so here we have to unlock the jenkins
511.919 -> so here we have to unlock the jenkins
515.599 -> so for that
517.36 -> okay how to
519.76 -> use the cat comment
522.959 -> so cat
524.399 -> this come on i'm giving this comment
526.959 -> this is the secret code
529.279 -> we can see only one times
531.92 -> so please copy paste either location and
534.8 -> paste it below
536.64 -> so i'm pasting here and i'm giving
539.519 -> continue
542.64 -> so it's
543.76 -> it's going to inside
546.959 -> so install plugins
551.839 -> so i'm installing the plugins
554.32 -> so it will take some time meanwhile i
556.64 -> will pause the video
562.08 -> you can see that still it is uh
566.64 -> installing
570.72 -> so now the installation is completed
581.04 -> so we have to
582.64 -> add a username i'm giving username like
585.519 -> admin
586.72 -> and i will i'm giving password
590.32 -> save and continue
595.76 -> giving save and finish
600 -> start using jenkins
604.72 -> so i'm just logging up
607.44 -> and giving admin
609.6 -> and password
614.64 -> so now you can see that we have logged
617.6 -> into the jenkins console

Source: https://www.youtube.com/watch?v=jEg3qKgklNI