CentOS Install Jenkins:
1.sudo Vi/etc/yum.repos.d/jenkins.repo
[Jenkins] name=Jenkinsbaseurl=Http://pkg.jenkins-ci.org/redhatgpgcheck=1
2. Download
CD/tmpwget http://ftp.yz.yamagata-u.ac.jp/pub/misc/jenkins/redhat/ jenkins-2.1-1.1.noarch.rpm
3. Installation
RPM--import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.keyrpm-ivh jenkins-2.1- 1.1 . Noarch.rpmservice Jenkins start
4. Visit http://localhost:8080
Note:jenkins configuration file/etc/sysconfig/jenkins
5. Upgrade can download the upgrade file directly on the HTTP://LOCALHOST:8080 system administration page
Replace the Jenkins.war file under/usr/lib/jenkins/to upgrade
CP -a jenkins.war/usr/lib/jenkins/jenkins.warservice Jenkins start
Set Nginx:
1. Installing Nginx
2. Configuration
A. vi/etc/nginx/nginx.conf
Find # include/etc/nginx/conf.d/*.conf;
Remove the previous # symbol
B. sudo vim/etc/nginx/conf.d/jenkins.conf
#/etc/nginx/conf.d/jenkins.confserver {listen 80 ; server_name jenkins.jobstreet.com; #access_log /var/log/jenkins_access_log main; #error_log /var/log/jenkins_error_log debug_http; Client_max_body_size 60M; Client_body_buffer_size 512k; Location / {port_in_redirect on; Proxy_pass http: // localhost:8080; proxy_redirect off; Proxy_set_header Host $host; Proxy_set_header X -real-ip $remote _addr; Proxy_set_header X -forwarded-for $proxy _add_x_forwarded_for; }}
C. sudo vi/etc/hosts
Join 127.0.0.1 jenkins.jobstreet.com
Add to host file if you are accessing other machines.
Jenkins set up Linux nodes
Jenkins setting up Windows nodes
Modify Windows Settings
New Windows node on Jenkins
Jenkins with Jenkins-cli.jar
Jenkins Setup Jobs
Slightly
Note
Slave
If it's windows, and you're using MSBuild,
1. You will need to configure the path of MSBuild in Windows. Eg:c:\windows\microsoft.net\framework\v4.0.30319\
After configuring slave, you need to restart Master's Jenkins
2. Or install the MSBuild plugin and set the path to MSBuild in the system management--"Global Tool Configuration
Jenkins installation configuration: Centos-master Windows/linux-slave + Nginx Proxy + node + job