In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Memcached is a free and open source, high-performance, distributed memory object caching system; Memcached is a software developed by Brad Fitzpatric of Danga Interactive, a subsidiary of LiveJournal. Now it has become an important factor to improve the scalability of Web applications in many services, such as mixi, hatena, Facebook, Vox, LiveJournal and so on.
It took a lot of time to build this extension, and it was installed very quickly before. A lot of articles have been searched on the Internet, most of which are copied from east to west, which can not solve the problem.
After synthesizing several articles, it is finally done, and here are the steps:
Install memcachedyum-y install memcached
After installation, do the following:
Chkconfig memcached on/etc/init.d/memcached start
Execution
Netstat-tunlp | grep memcached
When you see port 11211, you can see that memcached is installed successfully.
Install libmemachedwget https://launchpad.net/libmemcached/1.0/1.0.16/+download/libmemcached-1.0.16.tar.gz tar-zxvf libmemcached-1.0.16.tar.gz cd libmemcached-1.0.16. / configure-prefix=/usr/local/libmemcached-with-memcached make & & make install download the memcache expansion pack and install git clone git://github.com/php-memcached-dev/php-memcached.gitcd php-memcached/ install extension / usr/local / php/bin/phpize./configure-enable-memcached-with-php-config=/usr/local/php/bin/php-config-with-zlib-dir-with-libmemcached-dir=/usr/local/libmemcached-prefix=/usr/local/phpmemcached-disable-memcached-saslmake-j4make install
After installation, you will be prompted to expand the directory: / usr/local/php/lib/php/extensions/no-debug-zts-20151012/
Edit php.iniextension=/usr/local/php/lib/php/extensions/no-debug-zts-20151012/memcached.so
Put it on the last line and restart the php server (called by the component, restart the web service)
Re-view phpinfo
Original address: https://www.linuxprobe.com/linux-php7-memcached.html
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.