jenkins installation:
Preparation: jdk11 and above are required, too low a version will affect service startup
jdk download address:
https://www.oracle.com/cn/java/technologies/downloads/#java11
Replace the original environment variable:
cd /etc/profile.d
vim my_env.sh
Reload the configuration after the replacement is complete
source /etc/profile
----------------------------------
If many versions of jdk are installed under linux, it needs to be uninstalled cleanly :
rpm -qa|grep java
Returns a list of installed jdks
Uninstall unneeded versions:
rpm -e --nodeps xxxx.xx
Uninstall complete, reload configuration
---------------------------
The jenkins download is completed as a war package:
Start method:
java -jar jenkins.war --httpPort=8080
(Background startup)
nohup java -jar jenkins.war --httpPort=8080 &
Access address after the service starts successfully:
ip:8080
If it is local direct access:
localhost:8080
or
127.0.0.1:8080