django - Nginx uwsgi process problem
为情所困
为情所困 2017-05-16 17:23:56
0
1
485

Need advice: Use nginx uwsgi to build the Django operating environment. Uwsgi is set to create 4 processes, but why is it always in the same process after the program is running, and the other 3 processes are idle? This will cause the service to start. The longer it runs, the slower it gets.
Environment description:
centOS 6.5, nginx 1.4.7, uwsgi 1.4.2, Python 2.7, Django 1.7
The configuration of nginx is as follows:

uwsgi is configured in XML form, the configuration is as follows:


As shown in the figure, when looking at the process, I find that no matter how I access the service, I always access this process. Why is this? Ask the experts to clarify my doubts! ! !

为情所困
为情所困

reply all(1)
洪涛

Refer to the configuration items in /usr/share/uwsgi/conf/default.ini

It is recommended to put your configuration under /etc/uwsgi/sites-enabled/ and use service uwsgi (start|stop|restart|reload) to control your django process

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!