In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Overview of Mencached basic deployment Mamcached
memcached is a distributed cache system that runs in memory. Memcached lacks authentication and security control, which means that the memcached server should be placed behind the firewall.
Experiment preparation server role address centos7-1 server 192.168.45.130centos7-2 client 192.168.45.132 experiment step memcached server 1, install environment package [root@localhost libevent-2.1.8-stable] # yum install gcc gcc-c++ make-y2, install Libevent software ontology
Mount the software package and decompress it to the mount directory
[root@localhost memcached] # tar zxf libevent-2.1.8-stable.tar.gz-C / opt/ [root@localhost memcached] # cd / opt/libevent-2.1.8-stable/// configuration and compilation installation [root@localhost libevent-2.1.8-stable] # / configure\-- prefix=/usr/local/libevent [root@localhost libevent-2.1.8-stable] # make & & make install3, configuration, Install Memcached [root @ localhost memcached] # tar zxf memcached-1.5.6.tar.gz-C / opt/ [root@localhost memcached] # cd / opt/memcached-1.5.6/ [root@localhost memcached-1.5.6] #. / configure\-- prefix=/usr/local/memached\-- with-libevent=/usr/local/libevent/ [root@localhost memcached-1.5.6] # make & & make install// to establish a soft link [root@localhost memcached-1. Ln-s / usr/local/memached/bin/* / usr/local/bin/ launch service [root@localhost memcached-1.5.6] # memcached- d-m 32m-p 11211-u root// "- d": run as daemon (running in the background) / / "- m": specify the maximum amount of memory used / / "- p": specify port / / "- u": specify user [root@ Localhost memcached-1.5.6] # netstat-atnp | grep 11211tcp 0 0 0.0.0 grep 11211tcp 11211 0.0.0.0 LISTEN 12591/memcached tcp6 0: 11211:: * LISTEN 12591/memcached # disable firewall and security features [root@localhost memcached- 1.5.6] # systemctl stop firewalld.service [root@localhost memcached-1.5.6] # setenforce 04 、 Install Telent to connect Memcached [root@localhost memcached-1.5.6] # yum install telnet-y memcached / memcached [root@localhost memcached-1.5.6] # telnet 192.168.142.66 11211Trying 192.168.142.66...Connected to 192.168.142.66.Escape character is'^]'. Client
Install the LAMP schema
For details, please see my previous blog, where there is a detailed deployment process, so I will not repeat it here.
Blog address: https://blog.csdn.net/Parhoia/article/details/102675756
The last forum structure of the blog does not need to be installed.
1. Lift the rights in the database [root@localhost ~] # mysql-uroot-pmysql > create database sky;mysql > grant all on sky.* to 'skyuser'@'%' identified by' 123123 claims MySQL > flush privileges 2. Test whether the PHP tool can connect to the database [root@localhost htdocs] # vim / usr/local/httpd/htdocs/index.php3, installation, Configure the memcache client [root@localhost memcached] # tar zxf memcache-2.2.7.tgz-C / opt/ [root@localhost memcached] # cd / opt/memcache-2.2.7/ [root@localhost memcache-2.2.7] # / usr/local/php5/bin/phpize / / generate a startup script for memcache [root@localhost memcache-2.2.7] #. / configure\-- enable-memcache\-- with-php-config=/usr/local/php5 / bin/php-config// compilation & install [root@localhost memcache-2.2.7] # make & & make install modify the configuration file of PHP [root@localhost memcache-2.2.7] # vim / usr/local/php5/php.ini//736 line and add extension_dir = "/ usr/local/php5/lib/php/extensions/no-debug-zts-20131226/" extension = memcache.so4, Create a test page [root@localhost memcache-2.2.7] # vim / usr/local/httpd/htdocs/index.php
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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.