Steps to install Libevent(memcached dependency)
First we need to check if libevent is installed or not?
type whereis libevent on shell.
If you don’t find it, then we need to download and install it. Type following sequence of commands on your shell
wget http://www.monkey.org/~provos/libevent-1.4.8-stable.tar.gz
tar xfz libevent-1.4.8-stable.tar.gz
cd libevent-1.4.8-stable
./configure
make
sudo make install
Finally we need to create a symlink to libevent
type sudo ln -s /usr/local/lib/libevent-1.4.so.2 /usr/lib on shell.
Steps to install Memcached
Download and install, for that type following sequence of commands on your shell
wget http://danga.com/memcached/dist/memcached-1.2.6.tar.gz
tar xfz memcached-1.2.6.tar.gz
cd memcached-1.2.6
./configure
make
sudo make install
Run Memcached as a daemon (d = daemon, m = memory, u = user, l = IP to listen to, p = port)
type memcached -d -m 1024 -u root -l 127.0.0.1 -p 11211 on shell
当按照上面的教材安装完成后出现类似下面的错./memcached: error while loading shared libraries: libevent-1.3e.so.1: cannot open shared object file: No such file or directory
You can fix this by simply doing this:
上面的软连接写错位置了,应该用下面的命令
ln -s /usr/local/lib/libevent-1.3e.so.1 /lib64/
就可以正常运行了
用下面的命令来查看是否成功
netstat -a -n |grep 1121
如果可以看到下面的结果:就成功了
tcp 0 0 127.0.0.1:11211 0.0.0.0:* LISTEN
udp 0 0 127.0.0.1:11211 0.0.0.0:*
window 下面的安装简单
下面 window版本的memcache server
http://s3.amazonaws.com/downloads.northscale.com/memcached-win32-1.4.4-14.zip
解压zip文件到某个目录如: c:\mmemcache-1.4.4
进入 c:\mmemcache-1.4.4 目录
memcached.exe -d install 安装服务
memcached.exe -d start 启动服务
memcached.exe -d uninstall 卸载服务
更多命令 memcached.exe -h 查看帮助
分享到:
相关推荐
linux平台使用的memcache压缩包,解压缩之后运行make && make install安装, 然后/usr/local/memcache/bin/memcache -d -m 1024 -u root -p 11211 -c 1024命令运行memcache
Nginx+Memcache+Linux+Tomcat搭建的集群,大神勿喷
Linux环境下Memcache的安装
NULL 博文链接:https://sunney2010.iteye.com/blog/656905
这个文档是介绍如何在linux中安装memcache的完整的过程,比较详细的过程介绍,大家可以自己试验一下,仅供参考
linux 基本操作,memcache应用,主要用于WEB站点。
文档给出linux环境下,memcache安装过程步骤;同时提供memcache相关的软件包资源。主要帮助新手简单、快速完成memcache服务搭建!
在Linux下memcache安装配置文档,很详细的哦
linux下安装包memcache-2.2.4.tgz
php7 memcache 扩展包,修复memcache3.0.8无法编译安装问题,本人php7.1.21编译通过
memcache安装包,版本号1.4.19 libevent安装包,版本号2.0.22
技术分享:Linux下Memcache的源码安装
四、安装Memcache服务器(Linux和Window上分别安装) Windows下 Memcahced.exe -d install [uninstall] Memcached.exe –d -m 50 –l 127.0.0.1 -p 11211 start 五、Memcached服务器的管理(启动) ...
php的memcache扩展,linux下的,php的memcache扩展分为两种,一种是memcache,一种是基于libmemcached的memcached,这个是memcache版本的beta版本
memcache图形监控工具phpmemcache,尽是一个PHP文件就可以实现对memcache的监控。 使用方法:本地测试监控机安装Apache或者下载XAMPP(Apache+MySQL+PHP+PERL),安装后把memcachephp.zip中的memcache.php文件放到...
windows下memcache安装包 附带php扩展包
memcache是一套分布式的高速缓存系统,由LiveJournal的Brad Fitzpatrick开发,但目前被许多网站使用以提升网站的访问速度,尤其对于一些大型的、需要频繁访问数据库的网站访问。
Memcache常用命令
将信息保持memcache中
Memcache是一个高性能的分布式的内存对象缓存系统,通过在内存里维护一个统一的巨大的hash表,它能够用来存储各种格式的数据,包括图像、视频、文件以及数据库检索的结果等。简单的说就是将数据调用到内存中,然后从...