CentOS 6 - установка memcached
Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2024
CentOS 6 - установка memcached
Выполняем установку через remi:
# yum --enablerepo=remi,remi-test install memcached.x86_64 php-pecl-memcached.x86_64
# vi /etc/sysconfig/memcached PORT="11211" USER="memcached" MAXCONN="1024" CACHESIZE="512" OPTIONS="-l 127.0.0.1"
# /etc/init.d/memcached restart Stopping memcached: [FAILED] Starting memcached: [ OK ]
# netstat -nlp | grep memc tcp 0 0 127.0.0.1:11211 0.0.0.0:* LISTEN 15373/memcached udp 0 0 127.0.0.1:11211 0.0.0.0:* 15373/memcached
# lsof -i :11211 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME memcached 31799 memcached 26u IPv4 100528581 0t0 TCP *:memcache (LISTEN) memcached 31799 memcached 27u IPv6 100528582 0t0 TCP *:memcache (LISTEN) memcached 31799 memcached 28u IPv4 100528585 0t0 UDP *:memcache memcached 31799 memcached 29u IPv4 100528585 0t0 UDP *:memcache memcached 31799 memcached 30u IPv4 100528585 0t0 UDP *:memcache memcached 31799 memcached 31u IPv4 100528585 0t0 UDP *:memcache memcached 31799 memcached 32u IPv6 100528586 0t0 UDP *:memcache memcached 31799 memcached 33u IPv6 100528586 0t0 UDP *:memcache memcached 31799 memcached 34u IPv6 100528586 0t0 UDP *:memcache memcached 31799 memcached 35u IPv6 100528586 0t0 UDP *:memcache memcached 31799 memcached 36u IPv6 100529789 0t0 TCP localhost:memcache->localhost:49698 (ESTABLISHED) memcached 31799 memcached 37u IPv6 100529820 0t0 TCP localhost:memcache->localhost:49699 (ESTABLISHED) httpd 31857 apache 22u IPv6 99201833 0t0 TCP localhost:48400->localhost:memcache (CLOSE_WAIT) httpd 31857 apache 23u IPv6 99204748 0t0 TCP localhost:48445->localhost:memcache (CLOSE_WAIT) httpd 31857 apache 24u IPv6 99206599 0t0 TCP localhost:48494->localhost:memcache (CLOSE_WAIT)