Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Server \ Under Linux using Magent + Memcached cache server cluster deployment     - Use Visual Studio to compile and use WinGDB remote debugging embedded Linux programs (Programming)

- After installing Ubuntu 15.04, to do a few things (Linux)

- Linux dynamic libraries and Guide (Programming)

- Ubuntu 14.04 Configuring cuda-convnet (Linux)

- Implement binary search algorithm in C language (Programming)

- JBPM6 Tutorial - Fast Fun JBPM table (Linux)

- Python MySQL database connection (Database)

- Oracle database physical file backup / restore (Database)

- Four safety delete files under Linux tools (Linux)

- Linux for enterprises to build a firewall (Linux)

- Android Studio Clear Project or Rebuild Project Error (Linux)

- shell script: MySQL monitoring service is normal (Database)

- Linux Mint 17 set up the Ruby environment (Linux)

- Installation and configuration to compile MySQL 5.6.10 under CentOS 5.9 (Database)

- numpy and SciPy installation under Python for scientific computing package (Linux)

- Linux user status query, and to unlock locked user (Linux)

- How to view the Linux program or process used in the library (Linux)

- Oracle RMAN-06023 and ORA-19693 errors (Database)

- The difference between statement and preparedStatement of the jdbc (Database)

- top command causes the system load increases (Linux)

  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
- Oracle GoldenGate tutorial Second, configure and use (Database)
- How to manage and use Logical Volume Management LVM in Ubuntu (Linux)
- Installation and Configuration Munin monitoring server on Linux (Server)
- C ++ containers (Programming)
- To compile and install MySQL 5.7.7 RC under CentOS 7.1 (Database)
- Command line tool Tmux (Linux)
- Getting Started with Linux system to learn: how to get the process ID (PID) in the script (Linux)
- Subsequent binary search tree traversal sequence (Programming)
- shell-like program (Programming)
- NFS-based services and service utilization Corosync DRBD high availability cluster configuration, respectively (Server)
- How to configure Proftpd server on Fedora 22 (Server)
- Debian (Wheezy) Install Java environment / replace OpenJDK as the SUN JDK (Linux)
- Firewall - Internet Militarization (Linux)
- Ubuntu manually set the DSL broadband connection (Linux)
- HBase Application Development Review and Summary of Series (Database)
- ssh using scp: / directory: Permission denied (Server)
- Install Rubinius testing Ubuntu 14.04 native threads (Linux)
- CentOS 6.4 (64bit) install Python 2.7.5 (Linux)
- Oracle 11g maintenance partitions (Seven) - Modifying Real Attributes of Partitions (Database)
- Ubuntu 15.04 using the Eclipse 4.4, Java 8 and WTP (Linux)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.