源码包安装软件基本步骤(也就是这4步)
解压tar -> 配置configure -> 编译 make -> 安装 make install
以安装memcached为例
1.下载memcached wget http://www.memcached.org/files/memcached-1.5.9.tar.gz
2.解压 tar -zxvf memcached-1.5.9.tar.gz
3.进入解压后的目录cd memcached-1.5.9
4.yum -y install gcc gcc-c++ #安装C语言编译器
5.安装libevent 使用yum -y install libevent libevent-devel
6.配置 ./configure --prefix=/usr/local/memcached #--prefix=安装的目录
7.编译 make
8. make install
9.启动memcached /usr/local/memcached/bin/memcached -m 10 -u root &或者
/usr/local/memcached/bin/memcached -m 10 -u root -d(后台启用)
10.查看memcached 进程 ps aux | grep memcached或者netstat -ntl