转:在centos7上安装memcache
转:https://www.liquidweb.com/kb/how-to-install-memcached-on-centos-7/
http://devdocs.magento.com/guides/v2.0/config-guide/memcache/memcache_centos.html
评注:
1. 写的非常好。清晰易懂,
Install and configure memcached on CentOS
This section provides instructions to install memcached on CentOS and Ubuntu. For additional information, consult the memcached wiki.
We recommend using the latest stable memcache or memcached version (currently, 3.0.8 for memcache and 2.2.0 for memcached).
To install memcached on CentOS, perform the following tasks as a user with root
privileges:
-
Install memcached and its dependencies:
yum -y update yum install -y libevent libevent-devel yum install -y memcached yum install -y php-pecl-memcache
The syntax of the preceding commands might depend on what package repositories you use. For example, if you use webtatic and PHP 5.6, enter
yum install -y php56w-pecl-memcache
. Useyum search memcache|grep php
to find the appropriate package name. -
Change the memcached configuration setting for
CACHESIZE
andOPTIONS
:- Open
/etc/sysconfig/memcached
in a text editor. -
Locate the value for
CACHESIZE
and change it to at least 1GB.For example,
CACHESIZE="1GB"
- Locate the value for
OPTIONS
and change it tolocalhost
or127.0.0.1
For more information about configuring memcached, see the memcached wiki.
- Open
- Save your changes to
memcached
and exit the text editor. -
Restart memcached.
service memcached restart
-
Restart your web server.
For Apache,
service httpd restart
- Continue with the next section.
相关文章
- CentOS7 安装 PHP7 完全详细教程
- CentOS7 64位下MySQL5.7安装与配置
- centos7 安装oracle jdk 与openjdk 实现切换
- 虚拟机下安装centos7方法,修改系统语言为简体中文的方法
- Centos7安装Docker指引详细步骤
- centos7安装tengine强制使用HTTPS访问
- DELL R740/720 使用U盘安装Centos7
- centos7安装docker-ce
- CentOS7+Hadoop2.7.2(HA高可用+Federation联邦)+Hive1.2.1+Spark2.1.0 完全分布式集群安装
- 虚拟机 centos7 的网络与电脑所在一个网络如何设置
- centos7通过yum安装mysql
- CentOS7 下 Hadoop 分布式部署
- Centos7下GlusterFS分布式存储集群环境部署记录
- CentOS7 安装dotnet sdk 2.1.401 的简单办法
- centos7 更新源 安装ifconfig
- CentOS7为php7.2安装php-redis扩展
- CentOS7阿里云服务器,python程序requests无法正常post网站(报502)
- CentOS7 yum 安装 PostgreSQL
- CentOS7安装GreenPlum集群
- 使用CentOS7 kvm虚拟机安装蓝鲸社区版(3.15)
- Centos7 安装mysql-8.0.13(rpm)
- centos7单用户模式
- CentOs7中安装python3.7.6