Install memcachedJava code sudoapt-getinstallmemcache if the system cannot find the memcache installation package update software source, you can use any source image in the following list to your/etc/apt/sources. add... in the list file as follows...
Install memcached Java code sudo apt-get install memcache if the system cannot find the memcache installation package update software source, you can use any source image in the following list to your/etc/apt/sources. add a line in the list file as follows: Java code deb http://security.ubuntu.com/ubuntu Install the Java code sudo apt-get update sudo apt-get install memcache again to check whether the installation is successful. ----- 1. after successful installation, memcache is started on its own. view the Java code ps-aux through the process. a record of the Java code/usr/bin/memcached-m 64-p 11211-u nobody-l 127.0.0.1 is displayed on the memcached port 11211. user nobody address 127.0.0.1 2. connect to the memcached server Java code www.2cto.com telnet 127.0.0.1 11211 and enter the Java code stats to display the various parameters of the current memcached .. java code sysadmin @ ubuntu:/etc/apt $ telnet 127.0.0.1 11211 Trying 127.0.0.1... connected to 127.0.0.1. escape character is '^]'. stats STAT pid 3065 STAT uptime 170 STAT time 1334121278 STAT version 1.4.7 STAT libevent 2.0.12-stable STAT pointer_size 64 STAT rusage_user 0.004000 STAT rusage_system 0.000000 STAT curr_connections 5 STAT total_connections 7 STAT connection_structures 6 STAT limit _get limit STAT 1__set 0 STAT 1__flush 0 STAT get_hits 0 STAT get_misses 0 STAT delete_misses 0 STAT delete_hits 0 STAT 1_0 STAT 1_0 STAT decr_misses 0 STAT 1_0 STAT cas_misses 0 STAT cas_hits 0 STAT cas_badval 0 auth_cmds 0 STAT limit 0 STAT bytes_read 140 STAT bytes_written 856 STAT limit_maxbytes 67108864 STAT limit 1 STAT limit 0 STAT threads 4 STAT limit 0 STAT bytes 0 STAT curr_items 0 STAT total_items 0 STAT evictions 0 STAT reclaimed 0 END www.2cto.com 3. manually start memcached Java code memcached-d-m 128-l 127.0.0.1-p 11211-u root as the root user, allocate up to 2GM memory to start memcache Java code memcached-d-m 128-l 127.0.0.1-p 11212-u root in another port 11212 start another memcache instance author programming
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service