Memcache服务器在Centos安装步骤
编辑时间:2017-07-27 作者:liangzhi
## Memcache服务器安装 ### 安装libevent > [root@LiangZhi-Server3 ~]# tar -zxvf libevent-2.1.8-stable.tar.gz > [root@LiangZhi-Server3 ~]# cd libevent-2.1.8-stable > [root@LiangZhi-Server3 ~]# ./configure --prefix=/usr/local/libevent > [root@LiangZhi-Server3 ~]# make > [root@LiangZhi-Server3 ~]# make install ### 安装Memcache服务器 > [root@LiangZhi-Server3 ~]# tar -zxvf memcached-1.4.17.tar.gz > [root@LiangZhi-Server3 ~]# cd memcached-1.4.17 > [root@Liang ~]# ./configure --prefix=/usr/local/memcache --with-libevent=/usr/local/libevent/ > [root@Liang ~]# make && make install > [root@Liang ~]# useradd memcache * 启动Memcache > [root@Liang ~]# /usr/local/memcache/bin/memcached -umemcache & * 设置Memcache自启 > [root@Liang ~]# vi /etc/rc.d/rc.local * 将 `/usr/local/memcache/bin/memcached -umemcache & ` 加入到rc.local文件中 ### 至此,Memcache服务器就在Centos安装成功了。
来说两句吧
最新评论