Failed to start tomcat.service after install Tomcat9 by YUM
0
votes
1
answer
3615
views
I installed
tomcat9
on my EC2 server using commands
sudo su
yum install tomcat9
Then I tried running the command:
/usr/sbin/tomcat9 start
Then the error message is:
Failed to start tomcat.service: Unit tomcat.service not found.
Am I missing anything?
What file is tomcat.service
? Where do I need to create it? What does it contain?
sudo tee /etc/systemd/system/tomcat.service
5月 16 16:08:18 ip-172-31-25-139.us-west-2.compute.internal systemd: tomcat.service: Failed at step EXEC spawning /usr/share/tomcat9/bin/catalina.sh: No such file or dire>
5月 16 16:08:18 ip-172-31-25-139.us-west-2.compute.internal systemd: tomcat.service: Control process exited, code=exited, status=203/EXEC
5月 16 16:08:18 ip-172-31-25-139.us-west-2.compute.internal systemd: tomcat.service: Failed with result 'exit-code'.
5月 16 16:08:18 ip-172-31-25-139.us-west-2.compute.internal systemd: Failed to start tomcat.service - Tomcat Server.
I checked the directory /usr/share/tomcat9/bin
and I did not see the file catalina.sh
.
Am I missing any steps in my installation?
Asked by quangkid
(101 rep)
May 16, 2023, 07:48 AM
Last activity: Jul 9, 2025, 11:02 AM
Last activity: Jul 9, 2025, 11:02 AM