ขอความช่วยเหลือในการติดตั้งครับ


putty

ทางโรงพยาบาลของผมต้องการนำ KV มาใช้งาน ผมลองติดตั้งทั้งใน windows และ linux เจอ error ตัวเดียวกัน อาจารย์ช่วยแนะนำด้วยครับ

error จาก log ใน windows:

Processing HomeController#index (for 127.0.0.1 at 2007-06-02 15:57:29) [GET]
  Session ID: 5464c87af8349128c1ff8d775ea1406b
  Parameters: {"action"=>"index", "controller"=>"home"}
Rendering  within layouts/application
Rendering home/index


ActionView::TemplateError (No connection to server) on line #65 of app/views/home/index.rhtml:
62:    </div>
63:   </div>
64:
65:   <% cache :part => "post_comment" do %>
66:     <table width="100%" class="plain">
67:       <tr class="plain">
68:         <td valign="top" width="50%" class="plain">

    C:/AppServ/ruby/lib/ruby/gems/1.8/gems/memcache-client-1.3.0/lib/memcache.rb:539:in `request_setup'
    C:/AppServ/ruby/lib/ruby/gems/1.8/gems/memcache-client-1.3.0/lib/memcache.rb:199:in `[]'
-------------------------------------

file kv.rb:

#
memcache_servers = "127.0.0.1:11211"
#
# edit your memcache configuration; you probably need to change :namespace only.
#
memcache_options = {
  :c_threshold => 10_000,
  :compression => false,
  :debug => false,
  :namespace => 'kv',
  :readonly => false,
  :urlencode => false,
}
# don't touch the following two lines if you aren't sure what they are
CACHE = MemCache.new memcache_options
CACHE.servers = memcache_servers
-------------------------------

ถ้าผมลบส่วน cache ออกจะ run ผ่าน ผมติดตั้ง memcache-client แล้ว ลองแก้ใน kb.rb ดูเหมือนว่ามันจะไม่อ่าน file นี้ ผมละเลยส่วนการติดตั้งส่วยไหนไปหรือเปล่าครับ

ขอบคุณครับ 

 

 



ความเห็น (0)

ไม่มีความเห็น


คำตอบ (1)

เป็นเพราะยังไม่ได้ติดตั้ง memcached server ครับ (ดูรายการซอฟต์แวร์ที่ต้องใช้ที่ นี่ ครับ)

อย่างไรก็ตาม memcached อาจไม่จำเป็นต้องใช้หากจำนวนผู้ใช้ไม่เยอะครับ การ cache บน disk ก็น่าจะรองรับผู้ใช้ได้ครับ

หากมีคำถามเกี่ยวกับการติดตั้งกรุณาส่งมาที่ kv-thai ครับ สมาชิกจะสามารถช่วยตอบได้ครับ ขอบคุณครับ



ความเห็น (0)

ไม่มีความเห็น

พบปัญหาการใช้งานกรุณาแจ้ง LINE ID @gotoknow
ClassStart
ระบบจัดการการเรียนการสอนผ่านอินเทอร์เน็ต
ทั้งเว็บทั้งแอปใช้งานฟรี
ClassStart Books
โครงการหนังสือจากคลาสสตาร์ท