我已經在我的Ubuntu系統中安裝了很多用於安裝tomcat的教程。我安裝了tomcat7。 tomcat7管理員,tomcat7,實例和tomcat7-docs的使用下面的命令:在Ubuntu中設置tomcat
apt-get install tomcat7
apt-get install tomcat7-admin
apt-get install tomcat7-docs
apt-get install tomcat7-examples
此設置,我可以啓動後,停止服務器:
/etc/init.d/tomcat7 start/stop
我有以下的文件和文件夾:
/usr/share/tomcat7/
/etc/tomcat7/
/var/lib/tomcat7/
我已經/usr/sharetomcat7/conf/tomcat-users.xml
之下追加tomcat-users.xml文件的以下的用戶和/etc/tomcat7/tomcat-users.xml
<user username="admin" password="amdin" roles="admin-gui,standard,manager-gui"/>
現在,當我打開本地主機:8080,我得到一個沉悶的網頁說'它的作品'不像我們通常得到的彩色頁面。這些頁面的內容:
You might consider installing the following packages, if you haven't already done so:
tomcat7-docs: This package installs a web application that allows to browse the Tomcat 7 documentation locally. Once installed, you can access it by clicking here.
tomcat7-examples: This package installs a web application that allows to access the Tomcat 7 Servlet and JSP examples. Once installed, you can access it by clicking here.
tomcat7-admin: This package installs two web applications that can help managing this Tomcat instance. Once installed, you can access the manager webapp and the host-manager webapp.
但是,當我在「點擊這裏」鏈接點擊上面打開管理員,文檔或例子,我得到"HTTP status 404: The requested resource is not available."
但我已經安裝了管理,實例和文檔。我沒有得到它。請幫忙!我使用Ubuntu 13.04
非常感謝它的工作對我來說...你救了我的一天.. –