- Memcached Basics
- Memcached - Home
- Memcached - Overview
- Memcached - Environment
- Memcached - Connection
- Memcached Storage Commands
- Memcached - Set Data
- Memcached - Add Data
- Memcached - Replace Data
- Memcached - Append Data
- Memcached - Prepend Data
- Memcached - CAS
- Memcached Retrieval Commands
- Memcached - Get Data
- Memcached - Get CAS Data
- Memcached - Delete Key
- Memcached - Delete Data
- Memcached - Incr/Decr
- Memcached Statistics Commands
- Memcached - Stats
- Memcached - Stats Items
- Memcached - Stats Slabs
- Memcached - Stats sizes
- Memcached - Clear Data
- Memcached Useful Resources
- Memcached - Quick Guide
- Memcached - Useful Resources
- Memcached - Discussion
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Memcached - Environment
Installing Memcached on Ubuntu
To install Memcached on Ubuntu, go to terminal and type the following commands −
$sudo apt-get update $sudo apt-get install memcached
Confirming Memcached Installation
To confirm if Memcached is installed or not, you need to run the command given below. This command shows that Memcached is running on the default port 11211.
$ps aux | grep memcached
To run Memcached server on a different port, execute the command given below. This command starts the server on the TCP port 11111 and listens on the UDP port 11111 as a daemon process.
$memcached -p 11111 -U 11111 -u user -d
You can run multiple instances of Memcached server through a single installation.
Memcached Java Environment Setup
To use Memcached in your Java program, you need to download spymemcached-2.10.3.jar and setup this jar into the classpath.
Advertisements