Linux下Memcached的安装步骤
2014-06-28 16:53
656 查看
一、安装gcc
# yum -y install gcc
二、安装libevent
# wget http://www.monkey.org/~provos/libevent-2.0.12-stable.tar.gz
# tar zxf libevent-2.0.12-stable.tar.gz
# cd libevent-2.0.12-stable
#./configure --prefix=/usr/local/lib
# make && make install
三、安装make
# yum -y install make
四、下载安装最新版本:http://memcached.org/downloads
# wget http://memcached.org/files/memcached-1.4.20.tar.gz
# cd memcached-1.4.20
#./configure --prefix=/usr/local/memcached --with-libevent=/usr/local/lib && make && make install
五、配置启动
# vi /etc/rc.local
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
/usr/sbin/ntpdate ntpupdate.tencentyun.com >/dev/null 2>&1 &
/usr/local/agenttools/agent/startagent.sh /usr/local/agenttools/agent /dev/null
#secu-tcs-agent bootstart, install at Tue Apr 29 17:21:38 CST 2014.
/usr/local/sa/agent/secu-tcs-agent-mon-safe.sh > /dev/null 2>&1
/usr/local/memcached/bin/memcached -p 12677 -U 0 -d -r -u root -m 2040 -c 1024 -t 4
保存后退出,手动启动服务
# /usr/local/memcached/bin/memcached -p 12677 -U 0 -d -r -u root -m 2040 -c 1024 -t 4
注:如果出现/usr/local/memcached/bin/memcached: error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such file or directory异常在/etc/ld.so.conf中加入/usr/local/lib这一行,保存之后,再运行:/sbin/ldconfig –v更新一下配置即可。
# vi /etc/ld.so.conf
# /sbin/ldconfig -V
六、测试memcached
# telnet 127.0.0.1 12677
出现以下信息表示启动成功
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
# yum -y install gcc
二、安装libevent
# wget http://www.monkey.org/~provos/libevent-2.0.12-stable.tar.gz
# tar zxf libevent-2.0.12-stable.tar.gz
# cd libevent-2.0.12-stable
#./configure --prefix=/usr/local/lib
# make && make install
三、安装make
# yum -y install make
四、下载安装最新版本:http://memcached.org/downloads
# wget http://memcached.org/files/memcached-1.4.20.tar.gz
# cd memcached-1.4.20
#./configure --prefix=/usr/local/memcached --with-libevent=/usr/local/lib && make && make install
五、配置启动
# vi /etc/rc.local
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
/usr/sbin/ntpdate ntpupdate.tencentyun.com >/dev/null 2>&1 &
/usr/local/agenttools/agent/startagent.sh /usr/local/agenttools/agent /dev/null
#secu-tcs-agent bootstart, install at Tue Apr 29 17:21:38 CST 2014.
/usr/local/sa/agent/secu-tcs-agent-mon-safe.sh > /dev/null 2>&1
/usr/local/memcached/bin/memcached -p 12677 -U 0 -d -r -u root -m 2040 -c 1024 -t 4
保存后退出,手动启动服务
# /usr/local/memcached/bin/memcached -p 12677 -U 0 -d -r -u root -m 2040 -c 1024 -t 4
注:如果出现/usr/local/memcached/bin/memcached: error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such file or directory异常在/etc/ld.so.conf中加入/usr/local/lib这一行,保存之后,再运行:/sbin/ldconfig –v更新一下配置即可。
# vi /etc/ld.so.conf
# /sbin/ldconfig -V
六、测试memcached
# telnet 127.0.0.1 12677
出现以下信息表示启动成功
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
相关文章推荐
- 64位Linux上安装Memcached详细步骤
- linux上安装memcached步骤
- CentOS 5.4下的Memcache安装步骤(Linux+Nginx+PHP+Memcached)
- linux上安装memcached步骤
- linux上安装memcached步骤
- 64位Linux上安装Memcached详细步骤
- 详细步骤:在64位Linux上安装Memcached
- linux上安装memcached步骤
- Memcached关于在Windows和Linux上的安装操作步骤
- CentOS 6.3安装Memcache 1.4.15步骤(Linux+Nginx+PHP+Memcached)
- CentOS 5.4下的Memcache安装步骤(Linux+Nginx+PHP+Memcached)
- Linux下Memcached的安装步骤
- linux安装memcached并设置自启动详细操作步骤
- Linux下Memcached的安装步骤
- 64位Linux上安装Memcached详细步骤
- 64位Linux上安装Memcached详细步骤
- Memcache(7)------linux下安装memcached步骤
- 64位Linux上安装Memcached详细步骤
- linux上安装memcached步骤
- DataStage在RedHat Linux Enterprise 3上安装详细步骤(六)