memcached没启动

development.log报错

/!\ FAILSAFE /!\  Tue Jun 29 11:28:13 +0800 2010
  Status: 500 Internal Server Error
  No connection to server
    D:/ruby1.8.7/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/vendor/memcache-client-1.5.0/memcache.rb:663:in `request_setup'
    D:/ruby1.8.7/lib/ruby/gems/1.8/gems/activesupport-2.1.2/lib/active_support/vendor/memcache-client-1.5.0/memcache.rb:231:in `get'
    D:/ruby1.8.7/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/session/mem_cache_store.rb:61:in `initialize'
    D:/ruby1.8.7/lib/ruby/1.8/cgi/session.rb:279:in `new'
    D:/ruby1.8.7/lib/ruby/1.8/cgi/session.rb:279:in `initialize_without_cgi_reader'
    D:/ruby1.8.7/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/cgi_ext/session.rb:39:in `initialize'

 

是memcached没启动

[root@localhost ~]# ps aux |grep memcached
root      6698  0.0  0.0   5020   684 pts/2    S+   11:52   0:00 grep memcached

 

启动之后正常(在usr/local/memcached/bin)

[root@localhost bin]# memcached -d -m 64 -u root  -p 11211  

 

ps:可以用memcached -h查看 启动参数

 

查询

[root@localhost bin]# ps aux |grep memcached
root      3236  0.0  0.2   7788  6040 ?        Ss   14:58   0:00 memcached -d -m 64 -u root -p 11211
root      3272  0.0  0.0   5016   660 pts/3    R+   15:04   0:00 grep memcached

 

ps:可以用kill 3236 杀掉它

 

你可能感兴趣的:(cache,memcached,ext,cgi,Ruby)