( ! ) Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/lib/menu/GKBase.class.php on line 114
Call Stack
#TimeMemoryFunctionLocation
10.0006415328{main}( ).../index.php:0
20.08204720440Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.464517174504Joomla\CMS\Application\SiteApplication->render( ).../CMSApplication.php:202
40.464717174560Joomla\CMS\Application\SiteApplication->render( ).../SiteApplication.php:778
50.464817174936Joomla\CMS\Document\HtmlDocument->parse( ).../CMSApplication.php:1030
60.464817174936Joomla\CMS\Document\HtmlDocument->_fetchTemplate( ).../HtmlDocument.php:545
70.465017175032Joomla\CMS\Document\HtmlDocument->_loadTemplate( ).../HtmlDocument.php:730
80.465817214952require( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/component.php' ).../HtmlDocument.php:668
90.470717512224GKTemplate->__construct( ).../component.php:31
100.478917696608GKTemplateMenu->getMenuType( ).../gk.framework.php:84
110.479517741464require_once( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/lib/menu/GKMenu.php' ).../helper.menu.php:19

( ! ) Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/lib/menu/GKHandheld.php on line 76
Call Stack
#TimeMemoryFunctionLocation
10.0006415328{main}( ).../index.php:0
20.08204720440Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.464517174504Joomla\CMS\Application\SiteApplication->render( ).../CMSApplication.php:202
40.464717174560Joomla\CMS\Application\SiteApplication->render( ).../SiteApplication.php:778
50.464817174936Joomla\CMS\Document\HtmlDocument->parse( ).../CMSApplication.php:1030
60.464817174936Joomla\CMS\Document\HtmlDocument->_fetchTemplate( ).../HtmlDocument.php:545
70.465017175032Joomla\CMS\Document\HtmlDocument->_loadTemplate( ).../HtmlDocument.php:730
80.465817214952require( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/component.php' ).../HtmlDocument.php:668
90.470717512224GKTemplate->__construct( ).../component.php:31
100.481417869792GKTemplateMenu->getMenuType( ).../gk.framework.php:85
Install Tomcat Debian
Logo
Print this page

Install Tomcat Debian

摘自  http://easwy.com/blog/archives/install-apache-tomcat-on-debian-lenny/

 

以下主要参考了文章How to setup Apache Tomcat 5.5 on Debian Etch

首先,需要安装java JDK。可以直接到sun的网站上下载(现在应该叫Oracle了,最近这些天的事,Sigh!),也可以在Debian仓库中下载。本文介绍由Debian仓库下载的方法。

打开/etc/apt/sources.list文件,在此文件中加入下面的源:

# for sun-java packages in unstable
deb http://ftp.debian.org/debian/ unstable non-free
deb-src http://ftp.debian.org/debian/ unstable non-free

保存并退出,然后用下面的命令更新一下源:

aptitude update 

然后就可以下载java JDK6了:

aptitude install sun-java6-jdk 

关于Apache web server的安装方法就不再描述了,可以参考文章在Debian Lenny上安装Apache2,PHP5,MySQL5, WordPress…。接下来我们安装tomcat:

aptitude install tomcat5.5 tomcat5.5-admin tomcat5.5-webapps 

安装完后,在浏览器中输入http://localhost:8180/,如果你能看到Apache Tomcat/5.5的页面,说明你的tomcat已经安装好了。我在输入上述地址时,有时会出现访问异常,不过刷新一下又可以访问了,还不清楚是什么原因。

接下来,我们需要一个用户,使之具有admin和manager权限,在本例中我们把admin和manager权限赋予用户tomcat。

首先停用tomcat服务:

/etc/init.d/tomcat5.5 stop 

接下来编辑文件 /var/lib/tomcat5.5/conf/tomcat-users.xml ,修改文件内容如下:

<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="admin"/>
<role rolename="manager"/>
<role rolename="tomcat"/>
<user username="tomcat" password=”tomcatpassword” roles="tomcat,admin,manager"/>

</tomcat-users>

保存退出后,重新启动tomcat服务:

/etc/init.d/tomcat5.5 start 

现在,就可以访问http://localhost:8180/manager/html来管理tomcat了,用户名为tomcat,密码为tomcatpassword。

Last modified onSaturday, 05 January 2013 13:17

( ! ) Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 169
Call Stack
#TimeMemoryFunctionLocation
10.0006415328{main}( ).../index.php:0
20.08204720440Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.08214720440Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.304912448648Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.305712473008Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.306512528336Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.306712557160require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.316312992568K2ControllerItem->execute( ).../k2.php:64
90.316312992568K2ControllerItem->display( ).../BaseController.php:710
100.326113717768K2ControllerItem->display( ).../item.php:78
110.326113717768K2ControllerItem->display( ).../controller.php:19
120.331314114136Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.334314134504K2ViewItem->display( ).../ViewController.php:102
140.455117095096K2ViewItem->display( ).../view.html.php:742
150.455117095096K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.459117275296include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701
  • Published in Debian
  • Read 2194 times

( ! ) Notice: Only variables should be assigned by reference in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 478
Call Stack
#TimeMemoryFunctionLocation
10.0006415328{main}( ).../index.php:0
20.08204720440Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.08214720440Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.304912448648Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.305712473008Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.306512528336Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.306712557160require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.316312992568K2ControllerItem->execute( ).../k2.php:64
90.316312992568K2ControllerItem->display( ).../BaseController.php:710
100.326113717768K2ControllerItem->display( ).../item.php:78
110.326113717768K2ControllerItem->display( ).../controller.php:19
120.331314114136Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.334314134504K2ViewItem->display( ).../ViewController.php:102
140.455117095096K2ViewItem->display( ).../view.html.php:742
150.455117095096K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.459117275296include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701
Template Design © Joomla Templates | GavickPro. All rights reserved.