Home IT Linux Windows Database Network Programming Server Mobile  
  Home \ Server \ Memcached installation, configuration and monitoring     - Erlang concurrency and foundation (Programming)

- Linux system - The understanding cpu load (Linux)

- Linux directory configuration (Linux)

- Use OpenSSL for RSA encryption and decryption (Linux)

- Elaborate .NET Multithreading: Concepts (Programming)

- Using nmcli commands to manage network in RedHat / CentOS 7.x (Linux)

- Add a custom encryption algorithm in OpenSSL (Linux)

- MySQL innodb_table_stats table does not exist solution (Database)

- Java thread pool: ExecutorService, Executors (Programming)

- Enterprise Hadoop cluster architecture - NFS installation (Server)

- Fedora 20, Fedora 19, CentOS 6 and RHEL6 users how to install Wine 1.7.15 (Linux)

- Update GAMIT10.6 command (Linux)

- Linux common network tools: ping host sweep (Linux)

- JBoss7 configuration - Supports IPv4 and IPv6 dual-stack environment (Server)

- 8 Git tips (Linux)

- Binary tree traversal algorithm summary (recursive and non-recursive) (Programming)

- Linux kernel to achieve soft RPS network to receive soft interrupt load balancing to distribute (Linux)

- MySQL various log summary (Database)

- MySQL database to open a remote connection method (Database)

- SSH automatic disconnection problem solving (Linux)

  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

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
./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
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

Memcache state View
[Root @ Nginx ~] # memcached-tool stats
# 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 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.
- Management Linux Container with Docker in Ubuntu (Linux)
- About Linux operating system security (Linux)
- openSUSE 13.1 / 13.2 installation SoundConverter 2.1.2 (Linux)
- Linux command binlog by filtering out the complete SQL statement (Database)
- Using Vagrant to build multi-platform environment (Server)
- Ubuntu: To install chat client Chatty 0.6.1 (Linux)
- Log analysis is done with Grafana Elasticsearch (Server)
- After CentOS configure SSH password Free, still prompted for a password (Linux)
- Bash Getopts - let your script supports command line parameters (Linux)
- To generate a certificate using OpenSSL under Linux (Server)
- Verify the character set on MyCAT (Database)
- Android to determine whether the device to open WIFI, GPRS data connection (Programming)
- Math objects easily overlooked but very convenient method --JavaScript (Programming)
- Linux / CentOS 7.0 installation and configuration under Tomcat 8.0 (Server)
- CentOS How to mount the hard drive (Linux)
- installation and configuration of the PHP environment (Apache2) under Linux (Server)
- CentOS6 installed Tomcat (Server)
- The oh-my-zsh into true my zsh (Linux)
- Quick Install software RAID on Linux (Linux)
- OpenStack package problems and solutions under CentOS6 (Linux)
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.