安装memcached、redis、postgresql问题总结

编译 ./configure --prefix=/srv/memcached/memcached145 --with-libevent=/usr/
需要安装 libevent ,安装时要确保知道安装路径

启动memcached
memcached -d -u root -m 200 -P /tmp/memcached.pid

安装redis
make PREFIX=/srv/redis/redis2815 install

启动:daemonize yes: Make redis run as a daemon
redis-server /usr/etc/redis.conf

安装postgresql,遇到问题:Can’t find the ‘libpq-fe.h header
解决方法:

  1. `gem install pg -v ‘0.18.1’ – –with-pg-config=/path/config

–with-pg=/path/pg –with-pg-lib=/path/2.yum install postgresql-devel最终用方法2解决yum list installed | grep postgres`