ubuntu:“未安装tomcat6"从突触安装后 [英] ubuntu: "tomcat6 is not installed" after installing from synaptic

查看:76
本文介绍了ubuntu:“未安装tomcat6"从突触安装后的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Ubuntu 11. 我通过Synaptic软件包管理器安装了tomcat6,并在Netbeans 7.0.1中使用了它.

I am working with Ubuntu 11. I installed tomcat6 via Synaptic package manager and used it within Netbeans 7.0.1.

昨天工作正常. 今天,当我尝试通过Netbeans进行部署时,收到一条消息:

It worked OK yesterday. Today , when I tried to deploy via Netbeans, I got a message:

部署错误:未授权对Tomcat服务器的访问.放 正确的用户名和密码,并在其中具有经理"角色 服务器管理器中的Tomcat定制器.请参阅服务器日志以获取 详细信息.

Deployment error: Access to Tomcat server has not been authorized. Set the correct username and password with the "manager" role in the Tomcat customizer in the Server Manager. See the server log for details.

因此我将以下行添加到tomcat-users.xml:

So I added the following line to tomcat-users.xml:

<user username="manager" password="manager" roles="manager"/>

然后我做了sudo /etc/init.d/tomcat6 restart并得到了:

* tomcat6 is not installed

嗯?

推荐答案

我会先尝试sudo apt-get purge tomcat6,然后再尝试sudo apt-get install tomcat6

I would try sudo apt-get purge tomcat6 and then try sudo apt-get install tomcat6

看看尝试清除时会发生什么.

See what happens when you try to purge.

此外,在Ubuntu 11中,您只需键入sudo service tomcat6 restart

Also, with Ubuntu 11, you can simply type sudo service tomcat6 restart

这篇关于ubuntu:“未安装tomcat6"从突触安装后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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