我用this指南在CentOS 6.5安裝memcached的檢查是否安裝了memcached?
我首先檢查
/etc/init.d/memcached status and
memcached (pid 14784) is running...
然後重新啓動
service httpd restart
但是,當我嘗試使用memcached的軟件(prosper202)我得到
Fatal error: Call to a member function getCapabilities() on a non-object in /var/zpanel/hostdata/zadmin/public_html/******_com/3rd-parties/wurfl/WURFL/CustomDeviceRepository.php on line 72
我不知道是什麼造成的。
這裏是我的WURFL配置文件
<?php
include($_SERVER['DOCUMENT_ROOT'] . '/202-config.php');
$configuration = array(
// WURFL File Configuration
'wurfl' => array(
'main-file' => 'wurfl.zip',
'patches' => array("web_browsers_patch.xml"),
),
// Persistence (Long-Term Storage) Configuration
'persistence' => array(
'provider' => 'mysql',
'params' => array('host'=>$dbhost,
'port'=>3306,
'db'=>$dbname,
'user'=>$dbuser,
'pass'=>$dbpass),
),
// Cache (Short-Term Storage) Configuration
'cache' => array(
'provider' => 'memcache',
'params' => 'host='.$mchost.',port=11211,namespace=wurfl',
),
);
你能發佈WURFL的配置設置嗎?我相信你的問題是你的WURFL配置,而不是你自己安裝的memcached。 –
我明白了。我添加了配置。 – Vuybe