I'm new to 'Memcache' but I've installed it and I think its' running, so far have I done the following correct?
mkdir memcache
wget http://pecl.php.net/get/memcache-3.0.6.tgz
tar -xvfz memcache-3.0.6.tgz
cd memcache-3.0.6
phpize
./configure
make
make install
echo "extension=memcache.so" >> /usr/local/lib/php.ini
service httpd restart
However when I try and connect using:
$memcache = new Memcache;
$memcache->connect('localhost', 11211) or die ("Could not connect");
I'm provided with: Memcache::connect() [memcache.connect]: Can't connect to localhost:11211, Connection refused (111)
I've seen people say try and telnet using telnet localhost 11211
but if I try that I get Connection Refused
I've tried replacing localhost with 127.0.0.1 but no luck either.
Have I installed the wrong memcache? If so how can I remove the one I have just added? or is that I needed libevent?