In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to install memcached in Linux system, the article is very detailed, has certain reference value, interested friends must read it!
Memcached is a high-performance distributed in-memory object caching system for dynamic Web applications to reduce database load. It speeds up dynamic, database-driven websites by caching data and objects in memory to reduce the number of database reads.
memcachedyum -y install memcached
After installation, do the following:
chkconfig memcached on/etc/init.d/memcached start
implementation
netstat -tunlp | grep memcached
See port 11211, indicating that memcached was successfully installed.
Install libmemachedwget https://launchpad.net/libmemcached/1.0/1.0.16/+download/libmemcached-1.0.16.tar.gztar-zxvf libmemcached-1.0.16.tar.gzcd libmemcached-1.0.16./ configure -prefix=/usr/local/libmemcached -with-memcached make && make install Download memcache extension 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 for extensions: /usr/local/php/lib/php/extensions/no-debug-zts-20151012/
Compilation php.iniextension=/usr/local/php/lib/php/extensions/no-debug-zts-20151012/memcached.so
Put it in the last line, restart the php server (called by the component, restart the next web service)
The above is "How to install memcached in Linux system" all the contents of this article, thank you for reading! Hope to share the content to help everyone, more relevant knowledge, welcome to pay attention to the industry information channel!
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.