Linux安装memcached

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Linux安装memcached相关的知识,希望对你有一定的参考价值。

[[email protected] ~]# tar zxvf libevent-2.1.8-stable.tar.gz
[[email protected] ~]# cd libevent-2.1.8-stable
[[email protected] libevent-2.1.8-stable]# mkdir /home/libevent
[[email protected] libevent-2.1.8-stable]# ./configure --prefix=/home/libevent/
[[email protected] libevent-2.1.8-stable]# make
[[email protected] libevent-2.1.8-stable]# make install

[[email protected] ~]# tar zxvf memcached-1.4.36.tar.gz
[[email protected] ~]# cd memcached-1.4.36
[[email protected] memcached-1.4.36]# mkdir /home/memcache
[[email protected] memcached-1.4.36]# ./configure --prefix=/home/memcache/ --with-libevent=/home/libevent
[[email protected] memcached-1.4.36]# make
[[email protected] memcached-1.4.36]# make install
[[email protected] bin]# ./memcached -d -m 1024 -u root
[[email protected] bin]# ps -ef|grep memcached
root      12255      1  0 13:58 ?        00:00:00 ./memcached -d -m 1024 -u root
root      12263   2345  0 13:58 pts/1    00:00:00 grep memcached

[[email protected] bin]# netstat -nlp|grep memcached
tcp        0      0 0.0.0.0:11211               0.0.0.0:*                   LISTEN      12255/./memcached  
tcp        0      0 :::11211                    :::*                        LISTEN      12255/./memcached  
udp        0      0 0.0.0.0:11211               0.0.0.0:*                               12255/./memcached  
udp        0      0 :::11211                    :::*                                    12255/./memcached



















以上是关于Linux安装memcached的主要内容,如果未能解决你的问题,请参考以下文章

linux 安装软件后 怎么检查安装是不是成功

linux vim安装

linux 6 rpm怎么安装

如何安装Linux?

在linux中如何安装软件?

Linux安装基本命令