当前位置:网站首页>Deployment of Jenkins under win7

Deployment of Jenkins under win7

2022-07-05 21:14:00 hunanying

One 、 Preparation before installation :
1.jdk Installation :
Download address :https://www.oracle.com/cn/java/technologies/javase/javase-jdk8-downloads.html
After downloading the installation package , Follow the prompts to install step by step , There are two installation path choices during the installation process , The first is jdk The installation path , The second, jre The installation path ( If you don't choose the path twice , Then the installation is incorrect )

A、cmd Console , Input Java -version, Don't complain , The version number can be displayed normally
B、cmd Console , Input javac, Don't complain
solve Javac It's not an internal command problem :path Using absolute paths

// Environmental variables involved , have access to echo %JAVA_HOME%\bin; The way in cmd Print above

2.Tomcat Installation ( Follow the instructions to install , See the online saying about configuring environment variables , Currently, there is no online configuration )
Download address :https://tomcat.apache.org/

Two 、jekein install ( Recommended mirroring mis Installation package download , Good continuous integration )
A、 Image download address :http://ftp-chi.osuosl.org/pub/jenkins/windows-stable/2.277.2/jenkins.msi
A、war File download :https://www.jenkins.io/download/

4.Jenkins There are two ways to start : Both in cmd Start in
1、java -jar jenkins.war When the mode is started, it will be generated in the user's directory .Jenkins Directory as the default working directory 【C:\Users\Administrator.jenkins】
2、net start jenkins The working directory for mode startup is jenkins Installation directory jenkins.xml Configuration in progress "JENKINS_HOME" Determined by , Default working directory %BASE% namely Jenkins Installation directory .

5.、Jenkins The closing of the :
Browser input http://localhost:8080/exit, It can be turned off , Starting can also be done in this way
Or use ,net stop jenkins

6Jenkins. Boot failure ( It stops immediately after starting , May be occupied by port – Check the log under the root directory , Baidu found that the port is occupied ):
A、 Use netstat -ano Command to view the process occupying the port
B、 Use taskkill Command delete process , Refer to taskkill /?

原网站

版权声明
本文为[hunanying]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202140509222282.html