Apache Tomcat by Neodoo En » Histórico » Versión 2
Francisco Javier Solans Benedí, 2024-04-10 07:07
| 1 | 2 | Francisco Javier Solans Benedí | {{toc}} |
|---|---|---|---|
| 2 | 1 | Francisco Javier Solans Benedí | |
| 3 | 2 | Francisco Javier Solans Benedí | # Usage Instructions |
| 4 | 1 | Francisco Javier Solans Benedí | |
| 5 | 2 | Francisco Javier Solans Benedí | ## Getting started |
| 6 | 1 | Francisco Javier Solans Benedí | |
| 7 | 2 | Francisco Javier Solans Benedí | 1. Launch the product via 1-Click |
| 8 | 2. Use a web browser to access the Manager Application at: http://[ec2-ip]:8080/manager, or the Host Manager Application at: http://[ec2-ip]:8080/host-manager where [ec2_ip] is the public ip provided by Amazon for your instance. |
||
| 9 | 3. Log in using the following credentials: |
||
| 10 | * Username: admin |
||
| 11 | * Password: the instance_id of the instance |
||
| 12 | 1 | Francisco Javier Solans Benedí | |
| 13 | You can also access your instance via SSH using the username and your Amazon private key. |
||
| 14 | |||
| 15 | 2 | Francisco Javier Solans Benedí | The **username** depends on the operative system: |
| 16 | * Centos 9 Stream: 'ec2-user' |
||
| 17 | * Other Centos: 'centos' |
||
| 18 | * Ubuntu: 'ubuntu' |
||
| 19 | * Rocky Linux: 'rocky' |
||
| 20 | 1 | Francisco Javier Solans Benedí | |
| 21 | 2 | Francisco Javier Solans Benedí | ## Installation details |
| 22 | |||
| 23 | 1 | Francisco Javier Solans Benedí | To change the default and password, edit the $TOMCAT_HOME/conf/tomcat-users.xml file. |
| 24 | 2 | Francisco Javier Solans Benedí | |
| 25 | 1 | Francisco Javier Solans Benedí | Tomcat server is deployed in /usr/java/apache-tomcat-[version] directory, which is linked to /usr/java/apache-tomcat. |
| 26 | 2 | Francisco Javier Solans Benedí | |
| 27 | 1 | Francisco Javier Solans Benedí | Server service is configured with systemd. |
| 28 | |||
| 29 | View status server: |
||
| 30 | 2 | Francisco Javier Solans Benedí | ``` shell |
| 31 | 1 | Francisco Javier Solans Benedí | [centos@ip-172-31-9-232 etc]$ sudo systemctl status tomcat |
| 32 | 2 | Francisco Javier Solans Benedí | ``` |
| 33 | 1 | Francisco Javier Solans Benedí | |
| 34 | 2 | Francisco Javier Solans Benedí | Stop server: |
| 35 | ``` shell |
||
| 36 | 1 | Francisco Javier Solans Benedí | [centos@ip-172-31-9-232 etc]$ sudo systemctl stop tomcat |
| 37 | 2 | Francisco Javier Solans Benedí | ``` |
| 38 | 1 | Francisco Javier Solans Benedí | |
| 39 | 2 | Francisco Javier Solans Benedí | Start server: |
| 40 | ``` shell |
||
| 41 | 1 | Francisco Javier Solans Benedí | [centos@ip-172-31-9-232 etc]$ sudo systemctl start tomcat |
| 42 | 2 | Francisco Javier Solans Benedí | ``` |
| 43 | 1 | Francisco Javier Solans Benedí | |
| 44 | 2 | Francisco Javier Solans Benedí | ## Other useful data |
| 45 | 1 | Francisco Javier Solans Benedí | |
| 46 | 2 | Francisco Javier Solans Benedí | **Location of sensitive information** |
| 47 | 1 | Francisco Javier Solans Benedí | There is no sensitive data. |
| 48 | |||
| 49 | 2 | Francisco Javier Solans Benedí | **Encryption configuration** |
| 50 | 1 | Francisco Javier Solans Benedí | There is no encrypted data. |
| 51 | |||
| 52 | 2 | Francisco Javier Solans Benedí | **Changing system credentials** |
| 53 | 1 | Francisco Javier Solans Benedí | To change the tomcat credentials you have to modify the following file: /usr/java/apache-tomcat/conf/tomcat-users.xml. |
| 54 | |||
| 55 | 2 | Francisco Javier Solans Benedí | **Instructions on how the user interacts with Tomcat to decrypt necessary data** |
| 56 | 1 | Francisco Javier Solans Benedí | You can use the Tomcat management console to view all necessary data. |
| 57 | |||
| 58 | 2 | Francisco Javier Solans Benedí | **How to assess and monitor the health and proper function of the application.** |
| 59 | 1 | Francisco Javier Solans Benedí | 1. Navigate to your Amazon EC2 console and verify that you're in the correct region. |
| 60 | 2. Choose Instance and select your launched instance. |
||
| 61 | 3. Select the server to display your metadata page and choose the Status checks tab at the bottom of the page to review if your status checks passed or failed. |
||
| 62 | |||
| 63 | 2 | Francisco Javier Solans Benedí | ## Additional resources |
| 64 | 1 | Francisco Javier Solans Benedí | |
| 65 | 2 | Francisco Javier Solans Benedí | * Apache Tomcat website: http://tomcat.apache.org/ |