开发者

Have maven run jetty on port 80 jetty in Linux

开发者 https://www.devze.com 2023-01-04 19:20 出处:网络
I don\'t know what\'s wrong with Jetty. My apache2 (run as a service) works fine on my Ubu开发者_C百科ntu, but Jetty always raise Permission Denied.

I don't know what's wrong with Jetty. My apache2 (run as a service) works fine on my Ubu开发者_C百科ntu, but Jetty always raise Permission Denied.

I have come through some search result but ---I'm confused---

Would any one please provide an easy follow through that can allow me to invoke mvn jetty:run where jetty was set up to run on port 80?


Any port under 1024 is a privileged port and can only be opened by the root user. But it us generally a really bad idea to run your web server as root - in the unlikely event that it gets compromised, the attacker has control over everything.

The trick is to start your web server (or jetty in this case) with the root user and switch to another user once port 80 is opened. For more information about Jetty on port 80 see: http://docs.codehaus.org/display/JETTY/port80

0

精彩评论

暂无评论...
验证码 换一张
取 消