Build memcached environment in MAC OSX environment (transfer)

Building a memcached environment under MAC OSX is an easy mess. The whole process is done in a few minutes, let me sigh again, MacBook is tailor-made for programmers under *nux!

I installed it using brew, so let's recap the whole process. If you don't have brew installed, go to step one first, otherwise go to step two.

Step 1: Install Homebrew

First check if the following conditions are met:

Intel 的 CPU
OS X 10.5 或者更高
安装了XCode 或者 XCode命令行工具

Satisfied, you can install Homebrew, the command is as follows:

$ ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"

Open Terminal, and paste the above statement. The script will first explain what it is going to do, then pause until you confirm to continue. More installation options can be found here .

Step 2: Install memcached

Before installing, you can search to see if there is any:

$ brew search memcache

Return result:

libmemcached    memcache-top    memcached   memcacheq

The description and keywords memcacheare related to the above four, so it is confirmed that there is something we need, the first is the client, and the third is the server.

Then install it!

Install the server first:

$ brew install memcached

Installation log:

==> Installing memcached dependency: libevent
==> Downloading https://github.com/downloads/libevent/libevent/libevent-2.0.21-s
######################################################################## 100.0%
==> ./configure --disable-debug-mode --prefix=/usr/local/Cellar/libevent/2.0.21
==> make
==> make install

  

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327039139&siteId=291194637