One, install the RPM package
Installing the JDK
Installing Jenkins
To see if the JDK was installed successfully
Start Jenkins systemctl start Jenkins
Start systemctl Enable Jenkins
Status: systemctl status Jenkins.service
Two, web configuration
http://10.0.0.13:8080/
Password file in :/var/lib/jenkins/secrets/initialadminpassword
Are you sure:
Web page:
Installation completed;
Third, plug-in learning
Self-used plug-in tar Package
Move to the Jenkins plugin catalog /var/lib/jenkins/plugins
Restart Service:
Systemctl Restart Jenkins.service
Access Web Input login Admin password changed is changed, no change is Cat/var/lib/jenkins/secrets/initialadminpassword inside content
1, Directory Analysis
Home directory:/var/lib/jenkins
Configuration file:/etc/sysconfig/jenkins
Program Files/usr/lib/jenkins/jenkins.war
Log/var/log/jenkins
Startup file/etc/init.d/jenkins
2, create a task
Save Build
Start Build
JEnkins's working directory is/VAR/LIB/JENKINS/WORKSPACE/KINGLE-JOB1
3,gitlab+jenkins
Download source git repository online
Click OK
Import succeeded
Enter Jenkins
Complete
Installing httpd
Yum Install httpd-y change the port inside the vim/etc/httpd/conf/httpd.conf to 10001
Start Systemctl start Httpd.service
Release key: Ssh-copy-id-i ~/.ssh/id_rsa.pub 10.0.0.12
Send file:/var/lib/jenkins/workspace/kingle-job1
SCP-RP./* 10.0.0.12:/var/www/html/
Jenkins Deployment App