Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Server \ Under Linux using Magent + Memcached cache server cluster deployment     - High-performance JavaScript loops and flow control (Programming)

- Ubuntu prevent arp attacks (Linux)

- Understanding the Linux load average on other UNIX-Like systems (Linux)

- See Shell Script Linux Server network traffic (Server)

- Dialogue UNIX:! $ # @ *% (Linux)

- Installation JDK 1.8 under CentOS7 (Linux)

- Java 8 stream parsed into SQL (Programming)

- MySQL 5.6 master-slave replication configuration (Database)

- Redis is installed in Ubuntu 14.04 (Database)

- Linux / Unix: chroot command examples to explain (Linux)

- Programmer editor Vim (Linux)

- Linux Getting Started tutorial: 3D effects and beautify your desktop (Linux)

- MySQL5.7 implement virtual column expression index (Database)

- SecureCRT remote connection Ubuntu fails to solve the case (Linux)

- How to use the TF / SD card making Exynos 4412 u-boot boot disk in Ubuntu (Linux)

- About Linux operating system security (Linux)

- Share and show your code on GitHub (Linux)

- How to disable UEFI to install Linux on Win8 (Linux)

- Spring next ActiveMQ combat (Programming)

- Install Firefox 28 on Ubuntu, Linux Mint (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
- How MAT Android application memory leak analysis (Programming)
- How to use Java to read OpenOffice document (Programming)
- Workaround CentOS error message during compilation PHP5 common (Linux)
- OpenSSL for secure transmission and use of skills of files between Windows and Linux (Linux)
- Moosefs Distributed File System Configuration (Server)
- Java to create a table in the database SYBase (Database)
- Analysis of C ++ exception mechanism (Programming)
- How to merge two pictures in Cacti (Linux)
- Ubuntu install virtual machine software VirtualBox 4.3.10 (Linux)
- MySQL main and backup replication structures (using mysqld_multi) (Database)
- Linux kernel network subsystem analysis (Programming)
- Linux crontab (Linux)
- Ubuntu update bug fixes Daquan (Linux)
- PPA on Ubuntu Linux installation Plank 0.8.0 (Linux)
- PostgreSQL using the system cache to improve operational efficiency (Database)
- Java Adapter Mode (Programming)
- LinSSID: a graphical Wi-Fi scanner under Linux (Linux)
- Let you Fun Ubuntu desktop eleven weapon (Linux)
- Oracle 11g on Linux system boot from the startup settings (Database)
- Bootstrap 3.3.5 release download, Web front-end UI framework (Linux)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.