Tôi đã cài đặt memcached
với libmemcached. Ngoài ra tôi đã cài đặt igbinary
.Cách bật igbinary với memcached được cài đặt đầu tiên
Đây là php.ini của tôi:
; Directory in which the loadable extensions (modules) reside.
;extension_dir = "./"
extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20060613/"
extension=apc.so
apc.enabled=1
apc.shm_size=128M
extension=memcached.so
session.save_handler=memcached
session.save_path="127.0.0.1:11211"
extension=igbinary.so
session.serialize_handler=igbinary
igbinary.compact_strings=On
.
Khi tôi chạy phpinfo() tôi thấy igbinary được kích hoạt, nhưng không cho memcached:
apc
Serialization Support php, igbinary
igbinary
igbinary support enabled
igbinary version 1.1.1
igbinary APC serializer ABI 0
Directive Local Value Master Value
igbinary.compact_strings On On
phpinfo() về memcached:
memcached
memcached support enabled
Version 1.0.2
libmemcached version 0.51
Session support yes
igbinary support no
Đó dòng cuối cùng: igbinary support
thats câu hỏi. Kỳ lạ là đủ, như bạn có thể thấy dưới tiêu đề apc có nêu: Serialization Support php, igbinary
.
Vì vậy, ai đó biết lý do tại sao tôi không thể bật igbinary cho memcached?
Cảm ơn!
câu trả lời đã chọn của bạn đã giúp bạn như thế nào? Tôi đang ở trong tình trạng tương tự, nhưng không thể hiểu được câu trả lời có nghĩa là gì. Bạn có thể giải thích bạn đã làm gì không? –