Jenkins Redhat 安装
yum安装
1 | sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo |
Start Jenkins
You can start the Jenkins service with the command:
1 | sudo systemctl start jenkins |
You can check the status of the Jenkins service using the command:
1 | sudo systemctl status jenkins |
If everything has been set up correctly, you should see an output like this:
1 | Loaded: loaded (/etc/rc.d/init.d/jenkins; generated) |
If you have a firewall installed, you must add Jenkins as an exception. You must change YOURPORT in the script below to the port you want to use. Port 8080 is the most common.
1 | YOURPORT=8080 |
配置文件在/etc/sysconfig/jenkins里