Sometimes you need to run more than one instance of Tomcat on the same server. Running Multiple Instances of Tomcat (Optional) You can do this by adding the users in the conf/tomcat-users.xml file with your favorite text editor. Setup user accountsįinally you have to configure Tomcat users so they can access admin/manager sections. To shutdown Tomcat you can simply run the shutdown script in the same folder like this: $. You should now be able to access it with a browser by either accessing if this is a local computer or if you are running it on a remote host. Using CLASSPATH: /usr/share/apache-tomcat-8.0.9/bin/bootstrap.jar:/usr/share/apache-tomcat-8.0.9/bin/tomcat-juli.jar Using CATALINA_TMPDIR: /usr/share/apache-tomcat-8.0.9/temp Using CATALINA_HOME: /usr/share/apache-tomcat-8.0.9 The output should look like: Using CATALINA_BASE: /usr/share/apache-tomcat-8.0.9 To start tomcat we will first need to switch to the unprivileged user with: # su – tomcatĪnd starting tomcat is as easy as running its startup script like this: $ cd bin # chown -Rf tomcat.tomcat /usr/share/apache-tomcat-8.0.9/ 4. # useradd -g tomcat -s /bin/bash -d /usr/share/apache-tomcat-8.0.9 tomcat Add tomcat user & groupĪs it is not recommended to run Tomcat as root we will need to create an unprivileged user for it and set the apropiate owner of the tomcat folder: # groupadd tomcat
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |