zoukankan      html  css  js  c++  java
  • 转:在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:

    1. 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. Use yum search memcache|grep php to find the appropriate package name.

    2. Change the memcached configuration setting for CACHESIZE and OPTIONS:

      1. Open /etc/sysconfig/memcached in a text editor.
      2. Locate the value for CACHESIZE and change it to at least 1GB.

        For example,

        CACHESIZE="1GB"
        
      3. Locate the value for OPTIONS and change it to localhost or 127.0.0.1

      For more information about configuring memcached, see the memcached wiki.

    3. Save your changes to memcached and exit the text editor.
    4. Restart memcached.

      service memcached restart
      
    5. Restart your web server.

      For Apache, service httpd restart

    6. Continue with the next section.
  • 相关阅读:
    ALOS卫星概况
    如何安装和配置jdk6u18windowsi586.exe
    请问是否可以直接发布切片好的服务 arcgis serever
    eclipse and myeclipse
    GISer还有机会屌丝逆袭吗?
    ArcGIS中加载百度地图
    细说委托
    白话地图投影之Proj.4地图投影库简介
    让OpenLayers添加百度地图(未完版)
    白话地图投影之墨卡托投影
  • 原文地址:https://www.cnblogs.com/jhj117/p/7855909.html
Copyright © 2011-2022 走看看