Now let's install and configure Jenkins:
- Add the repository key to the system:
wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key add -
- Append the Debian package address to sources.list:
sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'
- Update the apt packages:
sudo apt update
- Install Jenkins:
sudo apt install jenkins
If you get an error when you install Jenkins, you can uninstall it with:
sudo apt-get remove --purge jenkins
- Start the Jenkins service:
sudo systemctl start jenkins
- If you want to see the Jenkins status, use this command:
sudo systemctl status jenkins
- Jenkins runs on port 8080 by default, and we need to open the ...