Startup script
#!/usr/bin/env python from gevent import monkey; monkey.patch_all() from gevent import wsgi from mysite.wsgi import application HOST = '127.0.0.1' PORT = 8080 # set spawn=None for memcache wsgi.WSGIServer((HOST, PORT), application).serve_forever()
Gevent is a greenlet-based Python concurrency framework, with micro-thread greenlet as the core, using the epoll event listening mechanism and many other optimizations to become efficient.
Official website: http://www.djangoproject.com
The above introduces the nginx + gevent + django high-concurrency configuration, including django and event content. I hope it will be helpful to friends who are interested in PHP tutorials.