Tomcat + Jenkins deployment environment

First, download Tomcant:
official website address: https: //tomcat.apache.org/download-70.cgi
according tosystem selection based on 32-bit or 64-bit, here I use 64
Second, download Jenkins:
link address: https: //pan.baidu.com/s/1hWC5vmglb9WNYFTQIlnDcw
extraction code: apeg
Third, enter the conf directory under the Tomcat installation path in the server.xml, open text, change the port number: 8888 (since the default port number for the tomcat 8080, consistent with jenkins, so here change the next port, to avoid conflict)
Here Insert Picture Description
Here Insert Picture Description
Here Insert Picture Description
Fourth, back tomcat bin directory in the root directory, find startup.bat file, double click to open, run:
Here Insert Picture Description

Here Insert Picture DescriptionGarbled solve:
1. Go to the installation directory under the tomcat conf, find the file logging.properties

2. The file of java.util.logging.ConsoleHandler.encoding = UTF-8 UTF-8 into GBK

3. stopped and then restarted tomcat service shutdown.bat can startup.bat

Here Insert Picture Description

Fifth, into the browser, enter: localhost: 8888
Here Insert Picture Description
after six configure tomcat, will jenkins war package into the directory under the tomcat webapps directory:
Here Insert Picture Description
seven:
1, start tomcat: find startup bin directory of tomcat .bat, double-click the start:
Here Insert Picture Description
2, enter the url: localhost: 8765 / jenkins (here for my tomcat 8765 port number, as modified, please fill port modified)
Here Insert Picture Description

Eight: deployment Tomcat + Jenkins:
. 1, enters Jenkins: localhost: 8080
Here Insert Picture Description
2, creating a new item:
Here Insert Picture Description
3, build:
Here Insert Picture Description
Here Insert Picture DescriptionSyntax: xcopy initial path to a target path / s / e / y is a control character, the parameter mean folders and files are copied, not directly covered reminder.
Note: If you have a Chinese path, special characters, spaces with the path "" to cause
subsequent application, save:
Here Insert Picture Description
build:
Here Insert Picture Description
View Console:
Here Insert Picture Description
Eight: View content deployment:
1, view the construction of the tomcat just copy the contents of the past
Here Insert Picture Description
2, use your browser to view the deployment project, you need to first start tomcat (bin directory under tomcat in startup.bat)
Here Insert Picture DescriptionNote: to view the page after the deployment of the browser, can only open the html, source code file class, if it is folders will not find the path to the default display
format is: localhost: port number / project
If you do not need the path followed by /index.html

Hope this blog can help to you, articles from automated testing, interface testing, performance testing group: 762 141 168
welcome all friends to join automated testing

Published 10 original articles · won praise 13 · views 404

Guess you like

Origin blog.csdn.net/weixin_46457203/article/details/104871375