pop

Installing Tomcat Apache Server in Termux | No Root



Hello friends, In this blog we will how we can install Apache Tomcat server in Termux.

Apache Tomcat is a popular and open source webserver and servlet container for Java code. It allow us to run Java web pages. It can also be used as an HTTP server.


Prerequisite :

Termux


Installation :


First of all we need to install Java

 

pkg update && pkg install openjdk-17


 Next we need to get Tomcat binaries

 

cd $HOME && wget https://dlcdn.apache.org/tomcat/tomcat-10/v10.0.23/bin/apache-tomcat-10.0.23.tar.gz


Now extract the file

 

tar -xf apache-tomcat-10.0.23.tar.gz


Next we need to set Environment Variables

 

export CATALINA_HOME=$HOME/apache-tomcat-10.0.23


Now start the server

$CATALINA_HOME/bin/catalina.sh start


Now the Server is running on port 8080


To stop the server, execute

 

$CATALINA_HOME/bin/catalina.sh stop

0 Response to "Installing Tomcat Apache Server in Termux | No Root"

Post a Comment

Article Top Ads

Central Ads Article 1

Middle Ads Article 2

Article Bottom Ads