从Ubuntu中的Authbind端口80中的Eclipse启动Tomcat [英] Start Tomcat from Eclipse in port 80 in Ubuntu with Authbind

查看:218
本文介绍了从Ubuntu中的Authbind端口80中的Eclipse启动Tomcat的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了Authbind,在Ubuntu 80端口上运行Tomcat。

I have installed Authbind to run Tomcat on port 80 in Ubuntu.

我已经按照 http://netthink.com/?p=362 在端口80中的Ubuntu中运行Tomcat。
当我在命令行上运行Tomcat时,键入 ./ start.sh ,Tomcat在端口80上正常启动,没有任何例外。

I have followed http://netthink.com/?p=362 to run Tomcat in Ubuntu in port 80. When I run Tomcat on the command line by typing ./start.sh, Tomcat starts normally on port 80 without any exception.

为了从Eclipse运行Tomcat,我安装来自 http://www.eclipsetotale.com/tomcatPlugin.html 的Tomcat插件。一切都很好,除了当我想从Eclipse启动Tomcat。当我通过Tomcat插件从Eclipse运行Tomcat时,我得到以下异常:

In order to run Tomcat from Eclipse I installed the Tomcat plugin from http://www.eclipsetotale.com/tomcatPlugin.html. Everything is fine except that when I want to start Tomcat from Eclipse. When I run Tomcat from Eclipse by the Tomcat plugin, I get the following exception:


java.net.BindException:权限被拒绝:80

java.net.BindException: Permission denied :80

如果我在Eclipse中的服务器视图中添加Tomcat作为服务器,并希望从服务器视图启动它,我得到这个异常:

And if I add Tomcat as a server in "Server view" in Eclipse and want to start it from Server view I get this exception:


Tomcat v6.0所需的端口80本地主机上的服务器已在使用

Port 80 required by Tomcat v6.0 Server at localhost is already in use

但是我确定没有任何进程获取端口80,因为在同一时间,通过键入 ./ start在命令行上运行Tomcat。

But I am sure that there is not any process that acquires port 80, because in the same time when I run Tomcat on the command line by typing ./start.sh, Tomcat starts normally on port 80.

如何在端口80上从Eclipse运行Tomcat?

How do I run Tomcat from Eclipse on port 80?

使用除80以外的其他端口,对Tomcat使用小于1024的端口,并在Eclipse中的服务器视图中启动它,给出了同样的异常。例如,对于端口82:

Using another port other than 80 and less than 1024 for Tomcat and start it in Server View in Eclipse gave me the same exception. For example, for port 82:


Tomcat v6.0 Server local需要的端口82已经在使用

Port 82 required by Tomcat v6.0 Server at localhost is already in use


推荐答案

你应该开始eclipse: authbind --deep eclipse
由于eclipse没有通过 startup.sh 文件启动tomcat,所以在其中插入authbind将不起作用。

You should start eclipse with:
authbind --deep eclipse
Since eclipse doesn't start tomcat via startup.sh file, inserting authbind there will have no effect.

这篇关于从Ubuntu中的Authbind端口80中的Eclipse启动Tomcat的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆