Start mysql
# Cd/usr/local/mysql/support-files/
#./Mysql. server start
Start memcached
Cd/usr/local/memcached/bin/
./Memcached-d-m 256-u root-l 10.0.20.6-p000011-c 5000-P/usr/local/memcached/memcached1.pid
Startup options:
-D option is to start a daemon,
-M indicates the amount of memory allocated to memcache. The unit is MB. Here is 100 MB,
-U is the user who runs memcache. You can also use adduser to create a user for memcahed.
-L is the IP address of the listening server. The IP address 192.168.11.193 is specified here.
-P is the port for memcache listening. I have set 11211 here. Because it is the default port, the-p parameter is not specified.
-The "c" option is the maximum number of concurrent connections. The default value is 1024. I have set 256 here, which is based on the load of your server,
-P is the pid file for saving Memcache. Here I am saving it in/tmp/memcached. pid
From linwang's blog