Start and Enable Jenkins Service
Run the following systemd & SysVinit commands to start and enable the jenkins service.
[Start, Enable & check the Status of Jenkins service on systemd system]
$ sudo systemctl start jenkins
$ sudo systemctl enable jenkins
$ sudo systemctl status jenkins
[Start, Enable & check the Status of Jenkins service on SysVinit system]
$ sudo service jenkins start $ sudo service jenkins status $ sudo chkconfig jenkins on
Allow the ports on firewall
Allow the required ports on firewall for public access.
[Open a Port on CentOS/RHEL 7 & Fedora]
firewall-cmd --zone=public --add-port=8080/tcp --permanent
firewall-cmd --zone=public --add-service=http --permanent
firewall-cmd --reload
Open a Port on CentOS/RHEL 6
$ sudo iptables -I INPUT -p tcp -m tcp --dport 80 -j ACCEPT $ sudo iptables -I INPUT -p tcp -m tcp --dport 8080 -j ACCEPT $ sudo service iptables save
Access the Jenkins Web portal
Open your web browser and navigate to http://localhost:8080 or http://your-server-ip-address:8080 or http://127.0.0.1:8080