1、安装依赖包
yum install snappy-devel bz2 libzip-dev libsnappy-dev libprotobuf-dev libevent-dev protobuf-compiler libgoogle-glog-dev protobuf-devel libevent-devel bzip2-devel libbz2-dev zlib-devel gcc-c++
2、安装glog
下载地址:http://pan.baidu.com/s/1c2alPeg
tar zxvf glog-0.3.5.tar.gz cd glog-0.3.5 ./configure make make install
安装后修改ld.so.conf文件
vi /etc/ld.so.conf
/usr/local/lib #增加这一行保存,如果已存在就不用加了
/sbin/ldconfig -v #就算上面一行之前已存在,都需要执行
3、安装pika
下载地址:http://pan.baidu.com/s/1o8v6oEu
tar zxvf pika_2.2.0_centos6.2.tar.gz mv output pika cd pika
启动服务
cd /usr/local/pika ./bin/pika -c conf/pika.conf
时间: 2024-12-10 13:31:25