一.环境介绍

1)Centos6.4

2) memcached-1.4.24

二.部署安装

计划具体部署步骤:

步骤1:安装

步骤2:配置

步骤3:运行

步骤4:检查

现在开始:

1)安装

$ yum install -y wget gcc

$ wget http://cloud.github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz

$ tar zxvf libevent-2.0.-stable.tar.gz

$ cd libevent-2.0.-stable

$ ./configure --prefix=/usr/local/libevent

$ make && make install
$ wget http://www.memcached.org/files/memcached-1.4.24.tar.gz $ tar zxvf memcached-1.4..tar.gz $ cd memcached-1.4. $ ./configure --prefix=/usr/local/memcached --with-libevent=/usr/local/libevent $ make && make install $ ln -s /usr/local/memcached/bin/memcached /usr/local/bin/

2)配置

$ touch /etc/init.d/memcached

$ chmod  /etc/init.d/memcached

$ vi /etc/init.d/memcached

#!/bin/sh

#

# memcached:    MemCached Daemon

#

# chkconfig:    -  

# description:  MemCached Daemon

#

# Source function library.

. /etc/rc.d/init.d/functions

. /etc/sysconfig/network

start()

{

        echo -n $"Starting memcached: "

        daemon /usr/local/bin/memcached -u daemon -d -m  -l 0.0.0.0 -c  -p 

        echo

}

stop()

{

        echo -n $"Shutting down memcached: "

        killproc memcached

        echo

}

[ -f /usr/local/bin/memcached ] || exit 

# See how we were called.

case "$1" in

  start)

        start

        ;;

  stop)

        stop

        ;;

  restart|reload)

        stop

        start

        ;;

  condrestart)

        stop

        start

        ;;

  *)

        echo $"Usage: $0 {start|stop|restart|reload|condrestart}"

        exit 

esac

exit 

3)运行

$ /etc/init.d/memcached start

$ chkconfig memcached on

4)检查

#主要是检查进程以及端口

$ ps aux|grep memcached

$ netstat -ntlp|grep memcached

$ echo "stats settings" | nc 127.0.0.1 

最新文章

  1. VC++ 设置软件开机自启动的方法
  2. eclipse 配置c++
  3. 使用IDEA和gradle搭建Spring MVC和MyBatis开发环境
  4. Android——GridView(网格视图)相关知识总结贴
  5. js如何判断一个数组中是否有重复的值
  6. dive into python 读笔(2)
  7. 将java应用程序打包成可执行文件
  8. Pasha and Phone(思维)
  9. Oracle 11g RAC database on ASM, ACFS or OCFS2
  10. Log4j配置文件位置+Spring数据源配置文件位置
  11. 运行时动态库:not found 及介绍-linux的-Wl,-rpath命令
  12. Message高级特性 & 内嵌Jetty实现文件服务器
  13. 用pip安装python库下载timeout的解决办法
  14. mybatis入门--mybatis和hibernate比较
  15. 代码静态扫描工具sonar
  16. 关于ArrayList.clear()与=null以及new ArrayList<E>()
  17. 与众不同 制作会唱歌的WinRAR - imsoft.cnblogs
  18. OSS和CDN配置使用
  19. line search中的重要定理 - 梯度与方向的点积为零
  20. java多线程(一)之继承Thread类

热门文章

  1. hdu2006 求奇数的乘积【C++】
  2. 【Codeforces 1B】Spreadsheets
  3. HDU 5343 MZL's Circle Zhou
  4. 洛谷 P1469 找筷子
  5. hdu 2527哈夫曼树(二叉树的运用)
  6. [bzoj3450]Tyvj1952 Easy[概率dp]
  7. Spring MVC 注解基础
  8. ZooKeeper之初识
  9. 学习KNN算法体会和总结
  10. HDU4882ZCC Loves Codefires(贪心)