I am trying to install jenkins in ubuntu. I have followed the commands below:
wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | apt-key add - e
step 1 : sudo nano /etc/default/jenkins open the nano file And change HTTP PORT:8080 to HTTP PORT : 8081
CTL+X and Click Y and ENTER
PORT will changing from 8080 to 8081 restart the jenkins
sudo service jenkins restart