Memcached centos 5 设置
- font size decrease font size increase font size
(3) 設置memcached
vim /etc/sysconfig/memcached PORT="11211" USER="memcached" MAXCONN="1024" CACHESIZE="512" OPTIONS=""
(4) 啟動memcached
# Set Memcached to start automatically on boot chkconfig memcached on # Start Memcached /etc/init.d/memcached start ## OR ## service memcached start
(5) 檢查memcached是否正常的運作。
yum install nc
nc = netcat
echo stats | nc localhost 11211 STAT pid 7599 STAT uptime 10 STAT time 1265288542 STAT version 1.4.4 STAT pointer_size 32 STAT rusage_user 0.003999 STAT rusage_system 0.052991 STAT curr_connections 10 STAT total_connections 11 STAT connection_structures 11 STAT cmd_get 0 STAT cmd_set 0 STAT cmd_flush 0 STAT get_hits 0 STAT get_misses 0 STAT delete_misses 0 STAT delete_hits 0 STAT incr_misses 0 STAT incr_hits 0 STAT decr_misses 0 STAT decr_hits 0 STAT cas_misses 0 STAT cas_hits 0 STAT cas_badval 0 STAT auth_cmds 0 STAT auth_errors 0 STAT bytes_read 6 STAT bytes_written 0 STAT limit_maxbytes 536870912 STAT accepting_conns 1 STAT listen_disabled_num 0 STAT threads 4 STAT conn_yields 0 STAT bytes 0 STAT curr_items 0 STAT total_items 0 STAT evictions 0 END # Try to get some value echo get some_value | nc localhost 11211 END # Not found, but check the stats again echo stats | nc localhost 11211 STAT pid 7599 STAT uptime 10 STAT time 1265288542 STAT version 1.4.4 [...] STAT cmd_get 1 STAT cmd_set 0 STAT cmd_flush 0 STAT get_hits 0 STAT get_misses 1 STAT delete_misses 0 [...] STAT evictions 0 END
Last modified onTuesday, 26 March 2013 14:53
( ! ) 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 | ||||
# | Time | Memory | Function | Location |
1 | 0.0014 | 415336 | {main}( ) | .../index.php:0 |
2 | 0.1062 | 4720432 | Joomla\CMS\Application\SiteApplication->execute( ) | .../index.php:49 |
3 | 0.1062 | 4720432 | Joomla\CMS\Application\SiteApplication->doExecute( ) | .../CMSApplication.php:196 |
4 | 0.3101 | 12448616 | Joomla\CMS\Application\SiteApplication->dispatch( ) | .../SiteApplication.php:233 |
5 | 0.3108 | 12472960 | Joomla\CMS\Component\ComponentHelper::renderComponent( ) | .../SiteApplication.php:194 |
6 | 0.3116 | 12528288 | Joomla\CMS\Component\ComponentHelper::executeComponent( ) | .../ComponentHelper.php:377 |
7 | 0.3119 | 12557112 | require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ) | .../ComponentHelper.php:402 |
8 | 0.3204 | 12992520 | K2ControllerItem->execute( ) | .../k2.php:64 |
9 | 0.3204 | 12992520 | K2ControllerItem->display( ) | .../BaseController.php:710 |
10 | 0.3299 | 13717720 | K2ControllerItem->display( ) | .../item.php:78 |
11 | 0.3299 | 13717720 | K2ControllerItem->display( ) | .../controller.php:19 |
12 | 0.3339 | 14114088 | Joomla\CMS\Cache\Controller\ViewController->get( ) | .../BaseController.php:663 |
13 | 0.3356 | 14134456 | K2ViewItem->display( ) | .../ViewController.php:102 |
14 | 0.4088 | 17078896 | K2ViewItem->display( ) | .../view.html.php:742 |
15 | 0.4088 | 17078896 | K2ViewItem->loadTemplate( ) | .../HtmlView.php:230 |
16 | 0.4107 | 17259096 | include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ) | .../HtmlView.php:701 |
- Published in CentOS 5
- Read 1514 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 | ||||
# | Time | Memory | Function | Location |
1 | 0.0014 | 415336 | {main}( ) | .../index.php:0 |
2 | 0.1062 | 4720432 | Joomla\CMS\Application\SiteApplication->execute( ) | .../index.php:49 |
3 | 0.1062 | 4720432 | Joomla\CMS\Application\SiteApplication->doExecute( ) | .../CMSApplication.php:196 |
4 | 0.3101 | 12448616 | Joomla\CMS\Application\SiteApplication->dispatch( ) | .../SiteApplication.php:233 |
5 | 0.3108 | 12472960 | Joomla\CMS\Component\ComponentHelper::renderComponent( ) | .../SiteApplication.php:194 |
6 | 0.3116 | 12528288 | Joomla\CMS\Component\ComponentHelper::executeComponent( ) | .../ComponentHelper.php:377 |
7 | 0.3119 | 12557112 | require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ) | .../ComponentHelper.php:402 |
8 | 0.3204 | 12992520 | K2ControllerItem->execute( ) | .../k2.php:64 |
9 | 0.3204 | 12992520 | K2ControllerItem->display( ) | .../BaseController.php:710 |
10 | 0.3299 | 13717720 | K2ControllerItem->display( ) | .../item.php:78 |
11 | 0.3299 | 13717720 | K2ControllerItem->display( ) | .../controller.php:19 |
12 | 0.3339 | 14114088 | Joomla\CMS\Cache\Controller\ViewController->get( ) | .../BaseController.php:663 |
13 | 0.3356 | 14134456 | K2ViewItem->display( ) | .../ViewController.php:102 |
14 | 0.4088 | 17078896 | K2ViewItem->display( ) | .../view.html.php:742 |
15 | 0.4088 | 17078896 | K2ViewItem->loadTemplate( ) | .../HtmlView.php:230 |
16 | 0.4107 | 17259096 | include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ) | .../HtmlView.php:701 |