簡體   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