ubuntu memcache installation

Ubuntu memcache installation

apt-get install memcached

/usr/local/memcached/bin/memcached //Memcached command running

/usr/local/memcached/bin/memcached -u root -p 11211 -m 64m -d //Background service program Running
-d is to start a daemon;
-m is the amount of memory allocated to Memcache, in MB;
-u is the user running Memcache;
-l is the listening server IP address, which can have multiple addresses;
-p is Set the port that Memcache listens on, preferably a port above 1024;
-c is the maximum number of concurrent connections running, the default is 1024;
-P is to set the pid file for saving Memcache.

/usr/local/memcached/bin/memcached -d -m 64M -u root -l 127.0.0.1 -p 11211 -c 10 -P /tmp/memcached.pid

/usr/bin/memcached -m 64 -p 11211 - u memcache -l 127.0.0.1
/usr/bin/memcached -m 64 -p 11211 -u memcache -l 119.23.31.212
/usr/bin/memcached -m 64 -p 11211 -u root -d

/etc/init.d /memcached restart


telnet 192.168.11.183 12000 //remote access

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326824250&siteId=291194637