Detailed steps for installing Jenkins under CentOS 7 system
This article mainly introduces the relevant contents about installing Jenkins in CentOS 7 for your reference and learning. Let's take a look at the detailed introduction together
install
Add Yum repos and install
If there is no Java, install Java
start and stopping
Default settings for Jenkins
• Jenkins will start as the system starts. For details, refer to / etc / init d/jenkins
• Jenkins will create a user called Jenkins. If you modify the user, you need to modify the owner: / var / log / Jenkins, / var / lib / Jenkins, / var / cache / Jenkins
• if you encounter problems, check the log / var / log / Jenkins / Jenkins log
• configuration file / etc / sysconfig / Jenkins
• 8080 is enabled by default
Turn firewall on and off
About Java on CentOS
Jenkins does not support working on CentOS' default JDK. Remove is required if:
To use Jenkins correctly:
You can then install openjdk
Correct as follows:
configure port
Modify / etc / sysconfig / Jenkins:
Configure Java path
Direct start:
However, it is found that the startup fails, so you need to configure the Java location:
Add java to the machine at startup:
The last line above was added by me.
Restart and it can run normally.
--------------------------------------------------------------------------------
start-up
The browser enters IP and port access. The first page is starting. After starting, you will be asked to enter a string of passwords, and then enter the plug-in installation interface. Select default. At this time, an error will be reported:
An error occurred during installation: Forbidden
terms of settlement:
I "fixed it" by restarting Jenkins http://localhost:8080/restart 。 That is, restart to continue.
summary
The above is the whole content of this article. I hope the content of this article can bring some help to your study or work. If you have any questions, you can leave a message. Thank you for your support for programming tips.
reference resources
• https://wiki.jenkins-ci.org/display/JENKINS/Installing +Jenkins+on+Red+Hat+distributions • http://www.cnblogs.com/tjpanda88/p/4306147.html @L_ 403_ 2@