Enabling
-
2. Installing Tomcat 9
How to Install Tomcat 9 Server on Linux/Unix
-
3. Setting Up Environment
Then Check if $CATALINA_HOME is Set.
echo $CATALINA_HOME
If not then edit the Bash Config file:
nano ~/.bashrc
Append:
export CATALINA_HOME=/opt/apache-tomcat-9
Or some other installation location…
Ctrl+v to Paste into nano.
Ctrl+x to Save & Exit from nano ;)Then to Reload the Bash Configuration simply run:
bash
-
4. Editing Configuration
Edit the tomcat-users.xml File
sudo nano $CATALINA_HOME/conf/tomcat-users.xml
Insert into the tomcat-users section:
<role rolename="manager-gui" /> <user username="admin" password="admin" roles="manager-gui"/>
In case Customize your “username” and “password” as Needed…
-
5. Restarting Tomcat
Restart Tomcat
sudo $CATALINA_HOME/bin/shutdown.sh
sudo $CATALINA_HOME/bin/startup.sh
-
6. Testing Manager App Access
Test Access to Tomcat 9 Apps Manager on.
http://localhost:8080/manager.
- user: admin
- pass: admin
Next Remember to Set a New Secure User/Pass Combination!.
Contents