*prerequires :
- i need one Linux O.S so for that create an ec2-instnace:1
- Next I need memory space of 1GB is enough to install tomcat for that I go with instnace type: t2.micro
- Then Next i need java 1.8.0 version before install tomcat on my server
- Then start installation by follow the below images.
Lets Start The Process of Installation Tomcat
- 1st login to server as a default user
- then update the package sudo apt update -y
.png)
Now to install open jdk java search for java sudo apt search Openjdk
Next install java 8 version sudo apt-get install openjdk-8-jdk -y
we can also set updated versions of java using sudo update-alternatives --config java
Check the java version java -version
- Install unzip tool open the software which using wget apt install unzip -y
wget https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.65/bin/apache-tomcat-9.0.65-windows-x64.zip
Next using unzip tool install the tomcat by using unzip command unzip apache-tomcat-9.0.65-windows-x64.zip.png)
- Next remove that zip file after extract original file then no-longer need that zip file by using rm -rf apache-tomcat-9.0.65-windows-x64.zip
Next rename that Apache Software to short name like shown using
sudo mv apache-tomcat-9.0.65 apache and move to apache directory by
cd apache After Moving to
Apcahe Directory only user permissions to execute the file option and able to execute the all .sh files means executing permissions to shell script and also the files with extension.sh [here * - means all , U - User & X - Means Execute Permissions] by
cd bin then
chmod u+x *.sh
After Changing the Permissions Just Check with user permissions of the file files they will turn into green color that means users get execute file permission's
Next Under Tomcat home directory switch to bin deirectory then run the command it will show current version of Tomcat Running in your system by
sh version.sh
To Check the running Process of your Tomcat by using
ps -ef tomcatNext by doing Softlink it will execute the service from any directory means you have to go to /bin directory every time
start and stop service for easy purpose we do softlink ok!
Then Move to
Apache Directory and run the tomact means by using
startTomcat
Next Open the port number 8080 for Tomcat allow traffic from any where to access Jenkins from web browser. in AWS under Security Groups in that edit In-bound rules Add the 8080 port allow Then Like shown Below Copy Paste on browser you can Access The Tomcat from browser http://Public IP Tomcat installed server:8080 Ex: [172.13.25.1:8080]
Are You Interested To Learn DevOps Book Your Slot Today
Trainer: Subhan Shaik
Contact: +91- 7995165865
No comments:
Post a Comment