( ! ) 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.0010415368{main}( ).../index.php:0
20.13294720528Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.396314250728Joomla\CMS\Application\SiteApplication->render( ).../CMSApplication.php:202
40.396414250672Joomla\CMS\Application\SiteApplication->render( ).../SiteApplication.php:778
50.396514251048Joomla\CMS\Document\HtmlDocument->parse( ).../CMSApplication.php:1030
60.396514251048Joomla\CMS\Document\HtmlDocument->_fetchTemplate( ).../HtmlDocument.php:545
70.397214251144Joomla\CMS\Document\HtmlDocument->_loadTemplate( ).../HtmlDocument.php:730
80.398114291064require( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/component.php' ).../HtmlDocument.php:668
90.402114588752GKTemplate->__construct( ).../component.php:31
100.408014758128GKTemplateMenu->getMenuType( ).../gk.framework.php:84
110.408614802984require_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.0010415368{main}( ).../index.php:0
20.13294720528Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.396314250728Joomla\CMS\Application\SiteApplication->render( ).../CMSApplication.php:202
40.396414250672Joomla\CMS\Application\SiteApplication->render( ).../SiteApplication.php:778
50.396514251048Joomla\CMS\Document\HtmlDocument->parse( ).../CMSApplication.php:1030
60.396514251048Joomla\CMS\Document\HtmlDocument->_fetchTemplate( ).../HtmlDocument.php:545
70.397214251144Joomla\CMS\Document\HtmlDocument->_loadTemplate( ).../HtmlDocument.php:730
80.398114291064require( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/component.php' ).../HtmlDocument.php:668
90.402114588752GKTemplate->__construct( ).../component.php:31
100.410914930928GKTemplateMenu->getMenuType( ).../gk.framework.php:85
memcached 配置 config
Logo
Print this page

memcached 配置 config

启动memcached
# service memcachedstart

启动memcached
# service memcachedstart

设置memcached自动启动
# chkconfig memcached on
memcached 配置文件

memcached 配置文件

 

#memcached 监听端口号

PORT="11211"

#memcached启动用户

USER="nobody"
# 最大并发链接数
MAXCONN="2048"
# memcached 启动后分配内存大小
CACHESIZE="4096"
# memcached启动的其它参数, memcached 监听的ip地址,只监听本机使用127.0.0.1
OPTIONS="-l 127.0.0.1"

安装php的memcached扩展包

# yum install php-pecl-memcache

使用下面测试例子测试

$memcache = new Memcache;
$memcache->connect('localhost', 11211) or die ("Could not connect");

$version = $memcache->getVersion();
echo "Server's version: ".$version."
\n";



$tmp_object = new stdClass;
$tmp_object->str_attr = 'test';
$tmp_object->int_attr = 123;

$memcache->set('key', $tmp_object, false, 10) or die ("Failed to save data at the server");
echo "Store data in the cache (data will expire in 10 seconds)
\n";

$get_result = $memcache->get('key');
echo "Data from the cache:
\n";

var_dump($get_result);

?>

Last modified onSunday, 14 October 2012 04:07

( ! ) 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.0004415840{main}( ).../index.php:0
20.08394721000Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.08394721000Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.326712449192Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.327712473584Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.328712528912Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.329112557736require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.339612993144K2ControllerItem->execute( ).../k2.php:64
90.339612993144K2ControllerItem->display( ).../BaseController.php:710
100.351813718344K2ControllerItem->display( ).../item.php:78
110.351813718344K2ControllerItem->display( ).../controller.php:19
120.357714114712Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.359614135080K2ViewItem->display( ).../ViewController.php:102
140.447017039936K2ViewItem->display( ).../view.html.php:742
150.447017039936K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.449117220136include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701

( ! ) 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.0004415840{main}( ).../index.php:0
20.08394721000Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.08394721000Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.326712449192Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.327712473584Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.328712528912Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.329112557736require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.339612993144K2ControllerItem->execute( ).../k2.php:64
90.339612993144K2ControllerItem->display( ).../BaseController.php:710
100.351813718344K2ControllerItem->display( ).../item.php:78
110.351813718344K2ControllerItem->display( ).../controller.php:19
120.357714114712Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.359614135080K2ViewItem->display( ).../ViewController.php:102
140.447017039936K2ViewItem->display( ).../view.html.php:742
150.447017039936K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.449117220136include( '/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.