https://github.com/eugeniogiusti/tomcat10-1-33-installation-script
Automatic installation and configuration of Tomcat 10.1.33 with Java 11 - Red hat distros compatible
https://github.com/eugeniogiusti/tomcat10-1-33-installation-script
almalinux automation bash-scripting java redhat systemd tomcat-server
Last synced: 7 months ago
JSON representation
Automatic installation and configuration of Tomcat 10.1.33 with Java 11 - Red hat distros compatible
- Host: GitHub
- URL: https://github.com/eugeniogiusti/tomcat10-1-33-installation-script
- Owner: eugeniogiusti
- License: gpl-3.0
- Created: 2024-11-24T20:03:20.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-03-10T09:18:54.000Z (7 months ago)
- Last Synced: 2025-03-10T10:27:22.604Z (7 months ago)
- Topics: almalinux, automation, bash-scripting, java, redhat, systemd, tomcat-server
- Language: Shell
- Homepage: https://tomcat.apache.org/
- Size: 59.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tomcat10-1-33-installation-script
This script has been tested on **AlmaLinux 9.5** and is compatible with the latest versions of **Rocky Linux** and **Red Hat**.
It installs **Java 11** and **Tomcat 10.1.33**.
The version of Tomcat is the latest and this version of Java ensures backward compatibility with legacy systems while also offering several of the latest Java features. A key feature of this script is the integration of Tomcat management directly with systemd, eliminating the need for manual execution of start and stop scripts. You can easily manage Tomcat using systemctl commands, with the service name being tomcat.
Feel free to adapt the script for other purposes or scenarios.## How to Use
1. **Clone or Download the Repository**
Download the script to your system or clone the repository:
```bash
dnf update -y
dnf install git
git clone https://github.com/eugeniogiusti/tomcat10_1_33_installation_script.git
cd tomcat10-1-33-installation-script2. Grant Execution Permissions
Give the script executable permissions:
```bash
chmod +x install_tomcat.sh4. Run the Script &
Switch to the root user if you don't want to enter the password during the process:
```bash
sudo su
./install_tomcat.sh6. Configure Firewall Rule if you don't have it:
```bash
firewall-cmd --zone=public --add-port=8080/tcp --permanent
firewall-cmd --reload
8. Verify the Firewall Configuration
Ensure the rule has been applied:
```bash
firewall-cmd --list-all
10. Test Tomcat
Open your browser and navigate to:
http://your_local_ip:8080/