Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Server \ Under Linux using Magent + Memcached cache server cluster deployment     - Linux file permissions and access modes (Linux)

- Learning and Practice (Linux)

- Linux Network Programming - raw socket programming (Programming)

- Linux find command usage practices (Linux)

- CentOS 7 server environment to quickly build Linux (Server)

- Household use Linux Security (Linux)

- The several technical presentation Raid under Linux (Linux)

- Linux server data backup (Server)

- Use web2py + uWSGI + Nginx Web server built on Linux (Server)

- Thinking in Java study notes - everything is an object (Programming)

- Debian 7.8 system installation and configuration process (Linux)

- MySQL 5.6 database code changes (Database)

- How to manage and use Logical Volume Management LVM in Ubuntu (Linux)

- Debian 7 and Debian 8 users how to install Oracle Java 8 (Linux)

- Add local search to your Android app (Programming)

- Android graphic introduction NDK installation and simple jni demo implementation (Linux)

- Commonly used Linux system camouflage method (Linux)

- C ++ Supplements - References (Lvalue Reference, Rvalue Reference) (Linux)

- Ubuntu and Derivative Edition users install LMMS 0.4.15 (Linux)

- Oracle10g 64-bit installation solution in Windows 2008 Server R2 (Database)

  Under Linux using Magent + Memcached cache server cluster deployment
  Add Date : 2018-11-21      
  1. Compile and install libevent

cd / root / soft_hhf /
 wget http://cloud.github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
 tar -xvf libevent-2.0.21-stable.tar.gz
 cd libevent-2.0.21-stable
 ./configure --prefix = / usr
 make && make install
cd ../

2. Compile and install Memcached

 wget http://danga.com/memcached/dist/ memcached-1.2.6.tar.gz
tar -zxvf memcached-1.2.6.tar.gz -C / usr / local
 cd / usr / local
mv memcached-1.2.6 memcached
 cd memcached
 ./configure --with-libevent = / usr / local
make install
exportPKG_CONFIG_PATH = $ PKG_CONFIG_PATH: / usr / local / lib / pkgconfig
3. Compile and install Magent
wget http://memagent.googlecode.com/files/magent-0.5.tar.gz
cd / usr / local
mkdir magent
tar -zxf magent-0.5.tar.gz -C / usr / local / magent
cd / usr / local / magent
/ Sbin / ldconfig
sed -i "s # LIBS = -levent # LIBS = -levent-lm # g" Makefile
vi magetn.c
Add to:
#ifndef SSIZE_MAX
# Define SSIZE_MAX 32767

 cp magent / usr / bin / magent
. /etc/init.d/iptables Stop
The installation is complete, which is memched cache server, giving libevent perform IO operations need to install libevent, Magent a proxy server, the client connected to the Magnet it implements load balancing and server backup server that can be enabled when the backup server machine appears when done server, addressing and routing data through a hash algorithm set to the server.
4. Up test.
Here are three memcached server to store data, two memcached server to back up data.
First enable this five memcached server, port, namely: s1: 3333, s2: 4444, s3: 5555, b1: 6666, b6: 7777
Start command: memcached -m 1 -u root -d -l127.0.0.1 -p 3333

Described as the successful launch to start the remaining four servers

Start Magent proxy server
magent -u root -n 51200 -l -p 2222 -s -s127.0.0.1: 4444 -s127.0.0.1: 5555 -b -b : 7777

So far successfully built a cluster server
5. carry out testing
By telent connection magent
telnet 2222
stats View Status
- DB2 table space is redirected to restore the database combat (Database)
- 11G ASM disk group does not automatically handle MOUNT (Database)
- Linux, Google Test (GTest) test environment to build step (Linux)
- Debian (Wheezy) Install Redmine 2.6 (Programming)
- Browser caching mechanism on the analysis (Linux)
- Linux start the process (Linux)
- Installation Atom text editor on Mint Ubuntu / Linux (Linux)
- ASP.NET 5 (vNext) Linux deployment (Server)
- Use value type build better applications Swift (Programming)
- How to ensure that the Internet will not be attacked (Linux)
- Java 8 perspective annotation types (Programming)
- Teach you how to protect the security of Linux desktop (Linux)
- Ubuntu 10.10 install Oracle 10g graphic tutorials (Database)
- To build PHP environment (Nginx + MariaDB + PHP7) under CentOS 6.5 (Server)
- According to the national position on how to block traffic in Linux (Server)
- How do you prevent other users from accessing your home directory in Linux (Linux)
- Java MD5 encryption implementation (Programming)
- MySQL binlog automatic cleanup script (Database)
- YUM install desktop environment in CentOS (Linux)
- Linux Routine Task Scheduler (Linux)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.