Installing tomcat6.X and Java1.6X on Linux using Winscp
Installing Java 1.6x and Tomcat 6.x on Linux--Using Winscp
Step-1
Installing java:
/* optional
# mkdir -p /usr/local/java
# cd /usr/local/java
# mv /path/to/jdk-1_6_0_20-linux-x64.bin .
# chmod u+x jdk-1_6_0_20-linux-x64.bin
# ./jdk-1_6_0_20-linux-x64.bin
*/
Step-2
Use--Putty to execute the below
Check if we have installed it
# which java
/usr/java/jdk1.6.0_10/bin/java
# java -version
java version "1.6.0_10"
Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
Java HotSpot(TM) 64-Bit Server VM (build 11.0-b15, mixed mode)
Installing Tomcat
Download tomcat -- Binary Core Distribution file --6.x to you local machine
set CATALINA_HOME AND CATALINA_BASE
# export JAVA_HOME=/usr/java/jdk1.6.0_20
# export PATH=$JAVA_HOME/bin:$PATH
# export CATALINA_HOME=/var/lib/tomcat6
# export CATALINA_BASE=/var/lib/tomcat6
# export JRE_HOME=/usr/java/jdk1.6.0_20
Step-3
Create a manager role with user name and password to deploy the application
Use winscp to navigate to the folder-var/lib/tomcat6/conf
open tomcat-users.xml
copy that file to local machine and give the access.
start tomcat: #cd CATALINA_HOME/bin
#./startup.sh
shutdown tomcat:#cd CATALINA_HOME/bin
#./shutdown.sh
Test:www.myserver.com:8080/
The above url should give a tomcat default page.
www.myserver.com:8080/manager/html
should prompt for a user name and password.
Step-1
Installing java:
- Download jdk version--1.6x for linux from Sun website
- Download the non-rpm version.
- Use winscp and connect to the server.
- go to usr dir
- right click and create a new directory--java
- give all the read/write permission to the directory
- move the download jdk from your local system to the java directory
- open putty connection to the server
- #cd usr
- execute the command using putty:./jre-1.bin
/* optional
# mkdir -p /usr/local/java
# cd /usr/local/java
# mv /path/to/jdk-1_6_0_20-linux-x64.bin .
# chmod u+x jdk-1_6_0_20-linux-x64.bin
# ./jdk-1_6_0_20-linux-x64.bin
*/
Step-2
- set JAVA_HOME and PATH
- set JAVA_HOME to the dir of java
- PATH to bin dir of JAVA_HOME
Use--Putty to execute the below
- # export JAVA_HOME=/usr/java/jdk1.6.0_10
- # export PATH=$JAVA_HOME/bin:$PATH
Check if we have installed it
# which java
/usr/java/jdk1.6.0_10/bin/java
# java -version
java version "1.6.0_10"
Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
Java HotSpot(TM) 64-Bit Server VM (build 11.0-b15, mixed mode)
Installing Tomcat
Download tomcat -- Binary Core Distribution file --6.x to you local machine
- rename the file as tomcat 6
- use winscp and move to server /var/lib folder
- create a new folder name as--tomcat6
- give read write access permission to the folder
- right click on the tomcat6.tar.gz and say extract
- in the dialogue box give tomcat 6
set CATALINA_HOME AND CATALINA_BASE
# export JAVA_HOME=/usr/java/jdk1.6.0_20
# export PATH=$JAVA_HOME/bin:$PATH
# export CATALINA_HOME=/var/lib/tomcat6
# export CATALINA_BASE=/var/lib/tomcat6
# export JRE_HOME=/usr/java/jdk1.6.0_20
Step-3
Create a manager role with user name and password to deploy the application
Use winscp to navigate to the folder-var/lib/tomcat6/conf
open tomcat-users.xml
copy that file to local machine and give the access.
start tomcat: #cd CATALINA_HOME/bin
#./startup.sh
shutdown tomcat:#cd CATALINA_HOME/bin
#./shutdown.sh
Test:www.myserver.com:8080/
The above url should give a tomcat default page.
www.myserver.com:8080/manager/html
should prompt for a user name and password.
Comments
Post a Comment