繁体   English   中英

为什么Tomcat SSL在Ubuntu EC2实例的端口443上不起作用

[英]Why Tomcat SSL does not work on port 443 on Ubuntu EC2 instance

我已经在ubuntu EC2实例上安装了openjdk + tomcat7。 经过一些测试后,在8443上的http和https可以正常工作。 我已经配置了安全组以允许8080/443/8443。 当我尝试在端口443上配置SSL时,在启动Tomcat时,它将提示“权限被拒绝”。 但是我已经使用root prev开始了tomcat:

sudo /etc/init.d/tomcat7 start

您对此有什么想法吗?

这个问题在其他地方解决。 出于安全原因,将用户tomcat运行在root用户下不是一个好主意。

在/ etc / default中查找名为“ tomcat7”的文件。 在此处更改用户名和密码。

# Run Tomcat as this user ID. Not setting this or leaving it blank will use the
# default of tomcat6.
TOMCAT7_USER=root

# Run Tomcat as this group ID. Not setting this or leaving it blank will use
# the default of tomcat6.
TOMCAT7_GROUP=root

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM