Installing Jenkins Online
- Install Jenkins.
yum install jenkins -y
- Reload the systemd manager configuration.
systemctl daemon-reload
- Start jenkins.service and enable it to start upon system startup.
systemctl --now enable jenkins.service
- Optional: Configure the firewall.
- Query the OS firewall status of the server.
systemctl status firewalld
If the firewall is enabled (active), perform 4.b to 4.e to enable the port. If the firewall is disabled, skip the following operations in this step.
- Configure the firewall as required to allow access to port 8080.
firewall-cmd --permanent --zone=public --add-port=8080/tcp firewall-cmd --permanent --zone=public --add-service=http
- By default, the following firewall rule is added if the RPM installation mode is used.
firewall-cmd --permanent --zone=public --add-service=jenkins
- Reload the firewall and retain status information.
firewall-cmd --reload
- Check whether the firewall rule is effective.
firewall-cmd --zone=public --query-port=8080/tcp
The following output shows that the Jenkins and HTTP services and port 8080 have been added to the firewall rule.
yes
- Query the OS firewall status of the server.
Parent topic: Online Installation