Post Reply 
Nginx + PHP-FPM + MySQL on CentOS/Scientific Linux 6
07-20-2011, 12:34 AM (This post was last modified: 09-06-2012 12:30 AM by Nevil.)
Post: #1
Nginx + PHP-FPM + MySQL on CentOS/Scientific Linux 6
Code:
yum -y install wget --noplugins
wget freevps.us/downloads/nginx-centos-6.sh -O - |bash

KVM1 (VPS15/19/25 node) Munin report
User Tools
Quote this message in a reply


07-20-2011, 12:55 AM
Post: #2
RE: Nginx + PHP-FPM + MySQL on CentOS 6
When php-fpm and mysqld work, it will consume more RAM, especially php-fpm. Mine's currently around 80MB. You can lookup using google for more RAM optimization tutorial.

Thân,

iCarrot.
User Tools
Quote this message in a reply
07-20-2011, 02:51 AM
Post: #3
RE: Nginx + PHP-FPM + MySQL on CentOS 6
it's likely spawning more processes to handle the amount of requests you are getting or you installed a opcode cache which will increase RAM use.

KVM1 (VPS15/19/25 node) Munin report
User Tools
Quote this message in a reply
08-02-2011, 01:42 PM
Post: #4
RE: Nginx + PHP-FPM + MySQL on CentOS 6
             total       used       free     shared    buffers     cached
Mem: 128 113 14 0 0 101
-/+ buffers/cache: 12 115
Swap: 512 0 512

12mb used on a OpenVZ VPS with the node running CentOS 6.

KVM1 (VPS15/19/25 node) Munin report
User Tools
Quote this message in a reply
08-02-2011, 08:25 PM
Post: #5
RE: Nginx + PHP-FPM + MySQL on CentOS 6
when nginx installed then how to use it please explain me sir.

Thanks 123Systems.Net And Freevps.Us.
User Tools
Quote this message in a reply
08-03-2011, 04:11 AM
Post: #6
RE: Nginx + PHP-FPM + MySQL on CentOS 6
(08-02-2011 01:42 PM)dmmcintyre3 Wrote:  12mb used on a OpenVZ VPS with the node running CentOS 6.

How do we know if the node is running Centos 6? and why will it use less ram?

(08-02-2011 08:25 PM)ShEkhAr Wrote:  when nginx installed then how to use it please explain me sir.

nginx is a webserver. use it like you would apache/httpd or lighttpd.
User Tools
Quote this message in a reply
08-03-2011, 04:24 AM
Post: #7
RE: Nginx + PHP-FPM + MySQL on CentOS 6
(08-03-2011 04:11 AM)DeathProxy Wrote:  
(08-02-2011 01:42 PM)dmmcintyre3 Wrote:  12mb used on a OpenVZ VPS with the node running CentOS 6.

How do we know if the node is running Centos 6? and why will it use less ram?
It will use less ram because the version of OpenVZ included with CentOS 6 changes the memory management to be more like a real servers. To tell if it is on a CentOS 6 node, just check if the buffers/cache are not 0 in free -m.

KVM1 (VPS15/19/25 node) Munin report
User Tools
Quote this message in a reply
08-03-2011, 04:46 AM (This post was last modified: 08-03-2011 04:46 AM by DeathProxy.)
Post: #8
RE: Nginx + PHP-FPM + MySQL on CentOS 6
(08-03-2011 04:24 AM)dmmcintyre3 Wrote:  To tell if it is on a CentOS 6 node, just check if the buffers/cache are not 0 in free -m.

free -m:
             total       used       free     shared    buffers     cached
Mem: 1024 983 40 0 0 0
-/+ buffers/cache: 983 40
Swap: 0 0 0

does this mean that it is a centos 6 node?
User Tools
Quote this message in a reply
08-03-2011, 04:58 AM
Post: #9
RE: Nginx + PHP-FPM + MySQL on CentOS 6
No. If the buffers/cached on the top is non zero it's using the newer openvz.

KVM1 (VPS15/19/25 node) Munin report
User Tools
Quote this message in a reply
08-03-2011, 09:46 AM (This post was last modified: 08-03-2011 09:47 AM by DeathProxy.)
Post: #10
RE: Nginx + PHP-FPM + MySQL on CentOS 6
(08-03-2011 04:58 AM)dmmcintyre3 Wrote:  No. If the buffers/cached on the top is non zero it's using the newer openvz.

So 0 = Centos 6
Not 0 = newer openvz.

EDIT: Oh! I thought that you meant
-/+ buffers/cache: 983 40
User Tools
Quote this message in a reply
Post Reply 


Forum Jump:



User(s) browsing this thread:
1 Guest(s)