now I have solved this problem. You can use this module http://wiki.nginx.org/NginxHttpMemcModule#append_.24memc_key_.24memc_flags_.24memc_exptime_.24memc_value.by lvzhenyu - Nginx Mailing List - English
When I install the nginx and memcached, there is an error: 404 not found. If commenting: memcached_pass IP:11211, the error is gone. The configure file of my nginx is as follows: worker_processes 1; 4 daemon off; 5 master_process off; 6 #error_log logs/error.log; 7 #error_log logs/error.log notice; 8 #error_log logs/error.log info; 9by lvzhenyu - Nginx Mailing List - English