Tomcat Installation
on Linux:
Step 1: install JDK (Down
load the JDK and Extract in the server location)
Step 2: Add JAVA_HOME to your .bash_profile, Add below two
entries .
export
JAVA_HOME=/opt/jdk1.8.0_141
PATH=$PATH:$JAVA_HOME
·
Once you add to bash profile , when you run any
java file it automatically picks JAVA_HOME and run .
·
Otherwise you can manually also can set the
JAVA_HOME by export command
export
JAVA_HOME=/opt/jdk1.8.0_141
PATH=$PATH:$JAVA_HOME
Stpe 3: Now Download the Tomcat file and extract it.
·
I am downloading from the wget command
·
tar -zxf
apache-tomcat-9.0.1.tar
·
cd apache-tomcat-9.0.1
Step 4: Tomcat has been successfully installed
Step 5: Go to the bin folder and start the server by
executing the script – startup.sh
Comments
Post a Comment