1 Installing memcached on Ubuntu
To install memcached on Ubuntu, open the terminal and enter the following command:
$sudo apt-get update$sudoinstall memcached
2. Verify that the memcached is installed
To confirm that the memcached is installed or not, you need to run the following command:
$PSgrep memcached
The above command will show that memcached is on the default port 11211 and if you want memcached to run on a different port, run the following command to start the memcached server:
11111 11111 -d-u Root
The above command starts TCP port 11111 on the server and listens on UDP port 11111 as the daemon. You can run multiple instances from one installation memcached server.
3. Connect to the Memcache server
To connect to the Memcache server, you need to use the Telnet command to the host and port names. The basic syntax for the memcached telnet command is as follows:
$telnet HOST PORT
Assuming that the memcached server is running on port 11211 when the host IP is 192.168.1.111, the connection is as follows:
192.168. 1.111 11211
Memcached Summary Two: memcached environment installation settings and connection Memcache server