Installing Jenkins in EC2
13 Mar 2019
- SSH into your instance
- Enable root privilege: $ sudo -i
- Install java: $ yum install java-1.8.0-*
- go to : https://jenkins.io/download/
- Select desired package (In this case RedHat)
- Follow instructions as given on the cli
- Install jenkins: $yum install jenkins
- Start Jenkins service : $service jenkins start
- To check if Jenkins was installed properly–>
go to this url in browser: public_ip_of_instance:8080
- Copy path generated in cli and paste on browser with cat command to view the password:
$ cat /var/lib/jenkins/secrets/initialAdminPassword
- Copy the password and paste it
- Intsall Suggested Plugins
- Enter the credentials as required
- Start using jenkins