Ali cloud-based ecs (centos 7) installation jenkins

1. installed jdk

2. official website ( https://pkg.jenkins.io/redhat-stable/ ) Download rpm package (stable version):

wget https://pkg.jenkins.io/redhat-stable/jenkins-2.176.3-1.1.noarch.rpm

3. rpm command to install: rpm -ivh jenkins-2.176.3-1.1.noarch.rpm (jenkins-2.176.3-1.1.noarch.rpm downloaded version, according to the specific version of a given download)

4. Modify Profile: Vim / etc / sysconfig / Jenkins 
(. 1) is the default port 8080 Jenkins, to prevent conflicts with other ports, into 8888

(2) easy to remember user name, the user instead of root

 

 

 (3) save and exit

5. [Note:] If we had jdk installation location other than the default, in which case you need to modify the jdk directory jenkins:

(1) Check the installation position by whereis jdk jdk command:

 

 

 (2) edit the initial configuration file: vim /etc/init.d/jenkins

 

 Modify jdk installation directory:

 

 The default here is / usr / bin / java 

If not modified, will be reported

 

 6. reload the daemon:

 

 7. Start:

systemctl star jenkins

8. Access: ip: 8888

 

 

Back to the server, view the password by the cat command:

 

 9. After enter the password:

 

Guess you like

Origin www.cnblogs.com/wtx106/p/11566788.html