Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Server \ Under Linux using Magent + Memcached cache server cluster deployment     - React Native (Programming)

- C ++ Supplements --new delete overload (Programming)

- How to Use Nmap security scanner tool on Linux (Linux)

- Windows 7 hard disk to install Ubuntu 14.10 (Linux)

- Spark read more HBase tables a RDD (Server)

- The Hill sorting algorithm (Programming)

- Development environment to build MEAN In Ubuntu 15.10 (Server)

- Role Object of registerNatives () method (Programming)

- How to understand Python yield keyword (Programming)

- WordPress blog installation Redis Cache (Server)

- Linux_Logo - output color ANSI Linux distributions logo command-line tool (Linux)

- An example of troubleshooting of embedded Linux OpenWRT (Linux)

- Linux Network Programming - raw socket can do (Programming)

- Linux System Getting Started Learning: hard disk partition, and to deal with traps (Linux)

- C # how to generate a folder or file automatically rename (Programming)

- How to download GOG games in Linux command line (Linux)

- Teach you how to ensure password security under the Linux operating system (Linux)

- RHEL 6.5 x86_64 CentOS yum configuration source (Linux)

- Gitblit adopted Ticket collaborative development model (Linux)

- Use ARChon runtime environment to run Android apps on Ubuntu (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
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
 
#endif

make
 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 127.0.0.1 -p 2222 -s 127.0.0.1:3333 -s127.0.0.1: 4444 -s127.0.0.1: 5555 -b 127.0.0.1:6666 -b 127.0.0.1 : 7777

So far successfully built a cluster server
5. carry out testing
By telent connection magent
telnet 127.0.0.1 2222
stats View Status
     
         
         
         
  More:      
 
- Puppet Detailed centralized configuration management system (Server)
- OpenSUSE / Linux network configuration (Linux)
- GRUB how to load Linux kernel (Linux)
- MySQL Online DDL tools of pt-online-schema-change (Database)
- TeamCity continuous integration in the Linux installation (Linux)
- Binary search is really easy as you think you do (Programming)
- Ubuntu 12.04 installed OpenCV 2.3.1, binary image (Linux)
- Introduction and bash history command to quickly call (Linux)
- Single Instance ASM under CRS-4124, CRS-4000 error handling (Database)
- To use iostat display I / O status under Linux (Linux)
- Spring use Cache (Programming)
- The Rabbitmq installation under CentOS 6.4 (Linux)
- GitLab Guide installation under Ubuntu 14.04 (Server)
- C ++ virtual functions Classic Insights (Programming)
- The most concise Systemd tutorial, just ten minutes (Linux)
- How to use Linux to download music from Grooveshark (Linux)
- Snapshot DataGuard (Database)
- Android realize RippleEffect water (Programming)
- How Linux system password security guarantee (Linux)
- To install Oracle Database Details and FAQ Summary under CentOS (Database)
     
           
     
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.