ubuntu: “tomcat6 is not installed” after installing from synaptic [closed]

一个人想着一个人 提交于 2019-12-12 01:34:04

问题


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

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

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.

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

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

then I did sudo /etc/init.d/tomcat6 restart and got:

* tomcat6 is not installed

Huh?


回答1:


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

See what happens when you try to purge.

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



来源:https://stackoverflow.com/questions/8678069/ubuntu-tomcat6-is-not-installed-after-installing-from-synaptic

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!