- Install tomcat7-user package
- Run following command
sudo tomcat7-instance-create -p 8081 -c 8006 tomcat7_odc
- Copy
/etc/init.d/tomcat7
to/etc/init.d/tomcat7_odc
for service file - Make folder
common
if required intomcat7_odc
directory - copy
/etc/tomcat7/policy.d
totomcat7_odc/conf/policy.d
- copy server.xml to new installed conf folder if required.
- Copy
/etc/default/tomcat7
to/etc/default/tomcat7_odc
- Change
CATALINA_HOME=/usr/share/tomcat7
,CATALINA_BASE=/opt/tomcat7_odc
andNAME=tomcat7_odc
in file/etc/init.d/tomcat7_odc
- Change ownership of log folder to tomcat7
- Copy web.xml from previous tomcat7
- copy
cp -rp /etc/tomcat7/Catalina/ conf/
- Chamnge permission to
work
folder totomcat7
- Check things:
/usr/share/tomcat7
folder is created or not.CATALINA_HOME
in init service file should be/usr/share/tomcat7
depends on installtion directory
Last active
February 22, 2018 08:04
-
-
Save varunpalekar/4a733f7f84066893696337bdcbaf903c to your computer and use it in GitHub Desktop.
Tomcat
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment