问题描述
- 暗黑服务器启动问题 python-memcached
-
暗黑世界服务器在linux下easy_install python-memcached后不知道python-memcached怎么启动,所以报 “memcache connect error ”
2013-11-16 13:29:54+0800 [-] Log opened.
2013-11-16 13:29:54+0800 [-] DelaySite starting on 9998
2013-11-16 13:29:54+0800 [-] Starting factory
2013-11-16 13:29:54+0800 [-] BilateralFactory starting on 9999
2013-11-16 13:29:54+0800 [-] Starting factory
2013-11-16 13:29:54+0800 [-] Log opened.
2013-11-16 13:29:54+0800 [-] net start...
2013-11-16 13:29:54+0800 [-] net pid: 14542
2013-11-16 13:29:54+0800 [BilateralBroker,0,127.0.0.1] node [net] takeProxy ready
Traceback (most recent call last):
File "appmain.py", line 27, in
ser.config(serconfig, dbconfig=dbconf, memconfig=memconf,masterconf=masterconf)
File "/usr/lib/python2.6/site-packages/firefly-1.2.2dev-py2.6.egg/firefly/server/server.py", line 97, in config
mclient.connect(urls, hostname)
File "/usr/lib/python2.6/site-packages/firefly-1.2.2dev-py2.6.egg/firefly/dbentrust/memclient.py", line 33, in connect
raise MemConnError()
firefly.dbentrust.memclient.MemConnError: memcache connect error
2013-11-16 13:29:54+0800 [Broker,client] Unhandled error in Deferred:
2013-11-16 13:29:54+0800 [Broker,client] Unhandled Error
Traceback (most recent call last):
Failure: twisted.internet.error.ConnectionLost: Connection to the other side was lost in a non-clean fashion.2013-11-16 13:29:54+0800 [Broker,client] Stopping factory
Traceback (most recent call last):
File "appmain.py", line 27, in
ser.config(serconfig, dbconfig=dbconf, memconfig=memconf,masterconf=masterconf)
File "/usr/lib/python2.6/site-packages/firefly-1.2.2dev-py2.6.egg/firefly/server/server.py", line 97, in config
mclient.connect(urls, hostname)
File "/usr/lib/python2.6/site-packages/firefly-1.2.2dev-py2.6.egg/firefly/dbentrust/memclient.py", line 33, in connect
raise MemConnError()
firefly.dbentrust.memclient.MemConnError: memcache connect error
Traceback (most recent call last):
File "appmain.py", line 27, in
ser.config(serconfig, dbconfig=dbconf, memconfig=memconf,masterconf=masterconf)
File "/usr/lib/python2.6/site-packages/firefly-1.2.2dev-py2.6.egg/firefly/server/server.py", line 97, in config
mclient.connect(urls, hostname)
File "/usr/lib/python2.6/site-packages/firefly-1.2.2dev-py2.6.egg/firefly/dbentrust/memclient.py", line 33, in connect
raise MemConnError()
firefly.dbentrust.memclient.MemConnError: memcache connect error
Traceback (most recent call last):
File "appmain.py", line 27, in
ser.config(serconfig, dbconfig=dbconf, memconfig=memconf,masterconf=masterconf)
File "/usr/lib/python2.6/site-packages/firefly-1.2.2dev-py2.6.egg/firefly/server/server.py", line 97, in config
mclient.connect(urls, hostname)
File "/usr/lib/python2.6/site-packages/firefly-1.2.2dev-py2.6.egg/firefly/dbentrust/memclient.py", line 33, in connect
raise MemConnError()
firefly.dbentrust.memclient.MemConnError: memcache connect error
求大牛指导
解决方案
easy_install python-memcached 这个装的只是Python的模块用来与memcached连接,你还要装一个memcached服务,根据你的Linux选择用apt-get, yum去装 memcached 应该就有了