HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   problems with self-compiled nginx (http://www.howtoforge.com/forums/showthread.php?t=60534)

Ovidiu 12th February 2013 16:53

problems with self-compiled nginx
 
my nginx.conf contains: worker_processes 8;

And yet, if I do a: pstree I see:

Code:

|-nginx-+-5*[nginx---5*[{nginx}]]
    |      |-nginx---4*[{nginx}]
    |      |-nginx---6*[{nginx}]
    |      `-2*[nginx---{nginx}]


With the stock Debian nginx-full this always looked like this:
Code:

-nginx---9*[nginx---{nginx}
Its weird, I always had 10 nginx processes: the 8 workers, the 1 master process and now that I used fastcgi_cache 1 nginx: cache manager process - that is 10 in total but now after compiling my own, I have 20 or a similar high number, it seems to fluctuate.
I thought ISPCFG3 was watching nginx and restarting it but since I did an apt-get remove nginx nginx-full nginx-common it should only find the manually compiled one and NOT start it again :(

Any idea?

till 12th February 2013 16:59

ISPConfig is not searching for a installed nginx, ispconfig is expecting a nginx at the path were it is normally installed by the native packages of the linux distribution. So if you want to compile your own nginx, ensure that is instaleld in the ame path and uses the same init script name then the nginx of the Linux distribution.

Ovidiu 12th February 2013 17:34

I think I did it right, except for this one there are no problems, ISPCFG3 is happy. I followed this tutorial: http://www.howtoforge.com/building-n...debian-squeeze

Am I right to expect the number of nginx processes to be 1 master process + number of worker processes + 1 cache manager?


All times are GMT +2. The time now is 11:19.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.