7/29/2023 0 Comments Tomcat 8 install ubuntu![]() ![]() :~# /etc/init.d/tomcat startĪll is done! now browse your server ip address using 8080 port. ![]() Step #05: Setup permission for tomcat file. #!/bin/bash # BEGIN INIT INFO # Provides:tomcat8 # Required-Start: $network # Required-Stop: $network # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start/Stop Tomcat server # END INIT INFOįor save press Esc type :wq then press Enter. Then insert below all text into tomcat file. Step #04: Create tomcat start and stop file. Then save file using press Esc type :wq then press Enter. JAVA_OPTS="-Dfile.encoding=UTF-8 -server -Xms1024m -Xmx2048m -XX:PermSize=64m -XX:MaxPermSize=256m =true -XX:+UseParallelGC -XX:MaxGCPauseMillis=100" JRE_HOME=/home/app/Java/jdk/8.0.191įor save press Esc type :wq then press Enter. Step #02: Open profile file and add java file location. :~# update-alternatives -set "javac" "/home/app/Java/jdk/8.0.191/bin/javac" :~# update-alternatives -install "/usr/bin/java" "java" "/home/app/Java/jdk/8.0.191/bin/java" 1 :~# update-alternatives -install "/usr/bin/javac" "javac" "/home/app/Java/jdk/8.0.191/bin/javac" 1 Then run below command for select update file location. export JAVA_OPTS="-Dfile.encoding=UTF-8 -server -Xms1024m -Xmx2048m -XX:PermSize=64m -XX:MaxPermSize=256m" Insert below all text into setenv.sh file and save. :~# mv apache-tomcat-8.0.53 /home/app/Tomcat/8.0.53Ĭreate setenv.sh file for environment variable. Step #01: Server update and extract Java and Tomcat file. After complete download and connect your server via ssh then upload this file. Must be account needed for java package download. Download Java from jdk-8u191 and download Tomcat 8.0.53.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |