为什么Tomcat SSL无法在Ubuntu EC2实例上的端口443上运行

时间:2012-06-07 06:33:59

标签: ubuntu amazon-ec2

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

sudo /etc/init.d/tomcat7 start

你对此有所了解吗?

2 个答案:

答案 0 :(得分:1)

此问题已解决elsewhere。出于安全原因,更改用户tomcat在root下运行并不是一个好主意。

答案 1 :(得分:0)

在/ 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