![]() ![]() This cookie is set by GDPR Cookie Consent plugin. These cookies ensure basic functionalities and security features of the website, anonymously. Necessary cookies are absolutely essential for the website to function properly. “you should modify the “JAVA_HOME” path as per your installation path”.Īfter saving the above service file, notify the system that we have a new unit file using the following command: First, we will create a tomcat service file as name “rvice” in the “/etc/system/system/” directory, using the following command: $ sudo vim /etc/systemd/system/rviceĬopy and paste the following configuration into the service file: /etc/systemd/system/rviceĮnvironment="JAVA_HOME=/usr/lib/jvm/default-java"Įnvironment="JAVA_OPTS=file:///dev/urandom =true"Įnvironment="CATALINA_BASE=/opt/tomcat/latest"Įnvironment="CATALINA_HOME=/opt/tomcat/latest"Įnvironment="CATALINA_PID=/opt/tomcat/latest/temp/tomcat.pid"Įnvironment="CATALINA_OPTS=-Xms512M -Xmx1024M -server -XX:+UseParallelGC"ĮxecStart=/opt/tomcat/latest/bin/startup.shĮxecStop=/opt/tomcat/latest/bin/shutdown.sh If we want to run Tomcat as a service, we need to create a new unit file. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |