„Installation System“ ändern
parent
663ea7db5e
commit
71c47b5637
|
@ -52,7 +52,7 @@ sudo chown -R tomcat webapps/ work/ temp/ logs/
|
|||
|
||||
## Create tomcat service
|
||||
|
||||
Now, create a new file for Tomcat inside /etc/systemd/system directory:
|
||||
Now, create a new file for Tomcat inside /etc/systemd/system directory: \
|
||||
`sudo nano /etc/systemd/system/tomcat.service`
|
||||
```
|
||||
[Unit]
|
||||
|
@ -82,10 +82,10 @@ Restart=always
|
|||
WantedBy=multi-user.target
|
||||
```
|
||||
|
||||
Reload the systemd daemon:
|
||||
Reload the systemd daemon: \
|
||||
`sudo systemctl daemon-reload`
|
||||
|
||||
Now you can start Tomcat server:
|
||||
Now you can start Tomcat server: \
|
||||
`sudo systemctl enable tomcat`
|
||||
|
||||
|
||||
|
@ -99,21 +99,26 @@ Add the <user tag within the <tomcat-users tag, which should look like the one b
|
|||
</tomcat-users>
|
||||
```
|
||||
|
||||
For the Manager app the file that needs be updated is:
|
||||
By default Tomcat restricts access to Manager and Host manager.
|
||||
So, to allow connections you need to remove the IP restrictions by commenting out
|
||||
the listed lines from the corresponding context.xml files. \
|
||||
|
||||
For the Manager app the file that needs be updated is: \
|
||||
`sudo nano /opt/tomcat/webapps/manager/META-INF/context.xml`
|
||||
|
||||
```
|
||||
<Context antiResourceLocking="false" privileged="true" >
|
||||
<!--<Valve className="org.apache.catalina.valves.RemoteAddrValve"
|
||||
allow="127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1" />-->
|
||||
</Context>
|
||||
```
|
||||
|
||||
For the Host Manager app the file that needs be updated is:
|
||||
For the Host Manager app the file that needs be updated is: \
|
||||
`sudo nano /opt/tomcat/webapps/host-manager/META-INF/context.xml`
|
||||
|
||||
## test tomcat installation
|
||||
|
||||
`sudo systemctl reload tomcat.service`
|
||||
\
|
||||
|
||||
check tomcat installation \
|
||||
http://localhost:8080/ \
|
||||
|
|
Loading…
Reference in New Issue
Block a user