Tomcat server works on port 8080 default. Then, enable and start Tomcat service on your system sudo systemctl enable rvice ![]() Reload the systemd daemon service to apply changes sudo systemctl daemon-reload Create a rvice file with the following content: sudo vim /etc/systemd/system/rviceĮnvironment="JAVA_OPTS=file:///dev/urandom"Įnvironment="CATALINA_PID=/opt/tomcat/temp/tomcat.pid"Įnvironment="CATALINA_OPTS=-Xms512M -Xmx1024M -server -XX:+UseParallelGC" But you can also create a startup script to manage Tomcat via systemctl command. Tomcat provides bash scripts for start or stop service. Edit conf/tomcat-users.xml file in your editor and paste inside tags.
0 Comments
Leave a Reply. |