Start mysql # cd/usr/local/mysql/support-files /#. /mysql. serverstart starts memcachedcd/usr/local/memcached/bin /. /memcached-d-m256-uroot-l10.0.20.6-p11211-c5000-P/usr/loca ..
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