PLATFORM (previous)
windows 7 family edition 64-bit
jdk 1.7.0
tomcat 7.0.26 (64-bit edition)
I want to install new version of tomcat, jdk and artifactory.My aim is to put artifactory backups back on this new platform.This tutorial is about running artifactory war file on tomcat.
PLATFORM (new)
windows 7 family edition 64-bit
jdk1.8.0_31
apache-tomcat-8.0.20-windows-x86
C:\Users\jupiter>java -version
java version "1.8.0_31"
Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
Java HotSpot(TM) Client VM (build 25.31-b07, mixed mode)
extract apache-tomcat-8.0.20-windows-x86.zip
tomcat folder should look like this
C:\Downloads\apache-tomcat
"Server Status" and "Manager App" interfaces require manager-gui role and "Host Manager" requires admin-gui role.
add these lines and restart tomcat if it works.
C:\Downloads\apache-tomcat\conf \tomcat-users.xml
<role rolename="manager-gui,admin-gui"/>
<user username="tomcat" password="tomcat" roles="manager-gui,admin-gui"/>
configure tomcat port.
C:\Downloads\apache-tomcat\conf\server.xml
<Connector port="5555" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
This file sets java_home manually and runs tomcat on the folder mentioned.
contents of "tomcat start.cmd" file.
@echo off
SET JAVA_HOME=C:\Program Files (x86)\Java\jdk1.8.0_31
SET CATALINA_HOME=C:\Downloads\apache-tomcat
C:\Downloads\apache-tomcat\bin\startup.bat
run "tomcat start.cmd" on folder
C:\Downloads\ciroot
test tomcat whether it runs
tomcat runs on http://localhost:8080/
extract artifactory-3.5.3.zip
copy C:\Downloads\artifactory-3.5.3\webapps\artifactory.war file
into C:\Downloads\apache-tomcat\webapps folder.
restart tomcat.
test if artifactory runs
http://localhost:5555artifactory
artifactory first time login.
user/password admin/admin
No comments:
Post a Comment