Loaded: loaded (/etc/systemd/system/rvice disabled vendor preset: enabled)Īctive: active (running) since Wed 08:57:23 UTC 6s ago sudo systemctl enable tomcatĬheck Tomcat status. sudo systemctl start tomcatĮnable Tomcat to start at system boot. Reload systemd daemon for the changes to take effect. Replace JAVA_HOME variable with the one you noted before. Įnvironment="JAVA_HOME= /usr/lib/jvm/java-1.11.0-openjdk-amd64"Įnvironment="JAVA_OPTS=file:///dev/urandom"Įnvironment="CATALINA_PID=/opt/tomcat/temp/tomcat.pid"Įnvironment="CATALINA_OPTS=-Xms512M -Xmx1024M -server -XX:+UseParallelGC" sudo nano /etc/systemd/system/rviceĪdd the following contents to the file. Here we will configure a systemd service to manage Tomcat to start, stop and restart automatically. Now we have 2 users who can access the Manager and the Host manager pages. Now we need to setup users who can access the Host manager and the Manager pages in Tomcat.Īdd the users with passwords in /opt/tomcat/conf/tomcat-users.xml sudo nano /opt/tomcat/conf/tomcat-users.xmlĪdd the following lines before the end tag. Sudo chmod -R u+x /opt/tomcat/bin Configure Admin Users sudo tar xzvf apache-tomcat-10*tar.gz -C /opt/tomcat -strip-components=1Ĭonfigure correct permissions for Tomcat files. Choose the tar.gz under the core section.Įxtract the contents to /opt/tomcat directory. OpenJDK 64-Bit Server VM (build 11.0.14.1+1-Ubuntu-0ubuntu1.20.04, mixed mode, sharing) Install Apache Tomcatĭownload the latest version of Tomcat from their official downloads page. Your output should be similar to the one below. Once the installation is completed, check the version using the following command.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |