问题描述
我正在使用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-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"从突触安装后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!