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

为什么Tomcat SSL不能在Ubuntu EC2实例的端口443上工作,ubuntu,amazon-ec2,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 您对此有什么想法吗?在/etc/default中查找名为“tomcat7”的文件。更改其中的用户名和密码 # Ru

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

sudo /etc/init.d/tomcat7 start

您对此有什么想法吗?

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

这一问题得到了解决。出于安全原因,将tomcat下运行的用户更改为root不是一个好主意。

我已经通过Google进行了一些搜索,我知道1024以下的TCP端口必须具有root权限。但我通过“sudo”启动tomcat,这不意味着使用root吗?我是Ubuntu的新手。