问题
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