im running on my ubuntu server tomcat. I can start the service as root
and can access my localhost:8443
server.If i started the service as non-root like tomcat
,the service will be started as tomcat ,but can't access my localhost:8443 webserver or rather don't answering me.
what i have done :
I. I add the user tomcat at first:
adduser tomcat ;addgroup tomcat
II. then i changed the service settings in /etc/systemd/tomcat.service
from root to:
[Service]
user=tomcat
group=tomcat
III. changed the permission of my tomcat folder /tomcat
:
chown tomcat:tomcat /tomcat -R
chmod 755 /tomcat
netstate -nlp
ports 8080, 8443 -> good
iptables -L -v
no dropped file -> good
service started
as tomcat -> good
But i can't still reach the server. If i changed the user
,group
to root in tomcat.service i reach the server.
I don't know where is the problem.
I'm grateful, if some experts can help me out.
kind regards
beardblack