Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Server \ Memcached installation, configuration and monitoring     - Analytical Ceph: handle network layer (Server)

- C ++ sequence containers basics summary (Programming)

- MySQL in order by inaccurate results in problems and solutions (Database)

- ASP.NET 5 (vNext) Linux deployment (Server)

- Ubuntu rights management common commands (Linux)

- Postfix mail service system principle and configuration (Linux)

- Transfer files to Windows and Linux (Linux)

- How to properly set up a Linux swap partition (Linux)

- C language function pointer and a callback function (Programming)

- Use Bash script write CVS version control (Server)

- Getting Started with Linux: Learn how to install and access CentOS 7 Remote Desktop on a VPS (Server)

- HAproxy let IP recording back-end RS (Server)

- Linux operating system boot manager -GRUB (Linux)

- The virtual memory (Linux)

- Ubuntu 14.04 Trusty Tahr User How to install Banshee 2.9.1 (Linux)

- Linux security-related basics (Linux)

- Five strokes to find out the IP address you want to know (Linux)

- MySQL remote connection settings (Database)

- Linux install Maven and SVN client (Linux)

- Java proxy mode (Programming)

 
         
  Memcached installation, configuration and monitoring
     
  Add Date : 2018-11-21      
         
       
         
  Memcached is based on a key => value distributed object caching system, although now redis function relatively strong, but some scenes Memcached is an advantage, as the database cache.

The following installation was completed on CentOS 5/6 64-bit operating system

table of Contents:

Libevent installation
Installation and configuration of Memcached
Zabbix monitoring Memcached
Web Management Memcached
1.Libevent installation

wget
tar zxf release-1.4.15-stable.tar.gz
cd libevent-release-1.4.15-stable /

Generally you can directly run ./configure, and the inside of the document also said so
[Root @ Nginx libevent-release-1.4.15-stable] # ./configure
-bash: ./configure: No such file or directory
Find an error, in fact, at this time has not been generated configure file, you need to perform the following directory ./autogen.sh
[Root @ Nginx libevent-release-1.4.15-stable] # ./autogen.sh
./autogen.sh: line 11: aclocal: command not found

And suggesting that no aclocal, this is because there is no installation autoconf automake libtool
yum -y install autoconf automake libtool
./autogen.sh
./configure --prefix = / usr / local / libevent1.4.15
make && make install

Note: The time required to install libevent Mr. Cheng configure file, you should take a lot of detours here

2.Memcached installation
wget
tar zxf memcached-1.4.25.tar.gz
cd memcached-1.4.25
./configure --prefix = / usr / local / memcached1.4.25 --with-libevent = / usr / local / libevent1.4.15
# Note that you need to specify the installation address libevent
make && make install

memcached command line monitoring tool:
The annex memcached-tool upload /usr/local/memcached1.4.25/bin directory
The annex memcached upload files to the directory /etc/init.d/
1234 chmod + x /etc/init.d/memcached
chmod + x /usr/local/memcached1.4.25/bin/memcached-tool
mkdir -p / var / run / memcached
ln -s /usr/local/memcached1.4.25/bin/* / usr / bin /

If you need to customize the startup parameters defined memcached, you can modify the file directly /etc/init.d/memcached
PORT = 11211
USER = nobody
MAXCONN = 10240
CACHESIZE = 3096
OPTIONS = ""

Memcache state View
[Root @ Nginx ~] # memcached-tool 127.0.0.1:11211 stats
# 127.0.0.1: 11211 Field Value
        accepting_conns 1
              auth_cmds 0
            auth_errors 0
                  bytes 0
              bytes_read 7
          bytes_written 0
              cas_badval 0
                cas_hits 0
              cas_misses 0
              cmd_flush 0
                cmd_get 0
                cmd_set 0
              cmd_touch 0
            conn_yields 0
  connection_structures 11
  crawler_items_checked 0
      crawler_reclaimed 0
        curr_connections 10
              curr_items 0
              decr_hits 0
            decr_misses 0
            delete_hits 0
          delete_misses 0
      evicted_unfetched 0
              evictions 0
      expired_unfetched 0
                get_hits 0
              get_misses 0
              hash_bytes 524288
      hash_is_expanding 0
        hash_power_level 16
              incr_hits 0
            incr_misses 0
                libevent 1.4.15
          limit_maxbytes 3246391296
    listen_disabled_num 0
      lrutail_reflocked 0
            malloc_fails 0
                    pid 13376
            pointer_size 64
              reclaimed 0
            reserved_fds 20
          rusage_system 0.000999
            rusage_user 0.000000
                threads 4
                    time 1452663956
time_in_listen_disabled_us 0
      total_connections 11
            total_items 0
              touch_hits 0
            touch_misses 0
                  uptime 13
                version 1.4.25

These are the memcached project status


3.Zabbix monitor script:
The end of the file add zabbix_agentd.conf
UserParameter = memcached.stats [*], / usr / bin / memcached-tool 127.0.0.1:11211 stats | awk '/ $ 1 / {print $$ 2}' | head -1

Then restart the service zabbix_agentd
Then import the template zabbix memcached
4. Use memadmin monitoring and management memcached
This need has run memcache module installed in a php environment
Overall memcached installation is relatively simple, but also a state with a simple interface that allows us to monitor it.
     
         
       
         
  More:      
 
- MySQL import large amounts of data (Database)
- How to Upgrade Ubuntu GNOME 14.10 to GNOME 3.16 Desktop (Linux)
- Ubuntu Learning Advanced article - to teach you to further enhance system security (Linux)
- Ubuntu uses under KVM + Qemu virtual machine build (Linux)
- ORA-00600 error solve one case (Database)
- Install the free open source financial software GnuCash 2.6.6 under Ubuntu (Linux)
- Python method to traverse folders and file read and write (Programming)
- The top command under Linux (Linux)
- Linux process management related content (Linux)
- Workaround CentOS error message during compilation PHP5 common (Linux)
- Linux Security (Linux)
- MySQL stored procedures and triggers (Database)
- Java Prototype Pattern (Programming)
- Django Web dynamic three linkage (Programming)
- Fedora 20 users install the Mate 1.8 desktop (Linux)
- SSH without password (Linux)
- Hive start being given: Found class jline.Terminal, but interface was expected (Database)
- 11G ASM disk group does not automatically handle MOUNT (Database)
- DOM event handlers add notes (Programming)
- Lua study notes under ubuntu (Linux)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.