{"id":5986,"date":"2024-08-13T07:30:00","date_gmt":"2024-08-13T00:30:00","guid":{"rendered":"https:\/\/longvan.net\/cong-dong\/?p=5986"},"modified":"2024-10-29T16:23:24","modified_gmt":"2024-10-29T09:23:24","slug":"huong-dan-cau-hinh-apache-mpm","status":"publish","type":"post","link":"https:\/\/longvan.net\/cong-dong\/huong-dan-cau-hinh-apache-mpm\/","title":{"rendered":"H\u01b0\u1edbng d\u1eabn c\u1ea5u h\u00ecnh Apache MPM"},"content":{"rendered":"<h3>I. Gi\u1edbi thi\u1ec7u v\u00e0 so s\u00e1nh s\u1ef1 kh\u00e1c nhau gi\u1eefa 3 mode ch\u00ednh<\/h3>\n<p>Apache MPM l\u00e0 c\u00e1c module muti-processing quy\u1ebft \u0111\u1ecbnh c\u00e1ch th\u1ee9c m\u00e0 Apache s\u1ebd ti\u1ebfp nh\u1eadn v\u00e0 x\u1eed l\u00fd c\u00e1c request t\u1eeb client. MPM l\u00e0 module c\u1ee7a apache n\u00ean c\u00f3 th\u1ec3 enable hay disable trong file config c\u1ee7a apache. Apache t\u1eeb version 2.4 tr\u1edf \u0111i h\u1ed7 tr\u1ee3 3 modules multi-processing : worker, prefork v\u00e0 event (l\u01b0u \u00fd : trong m\u1ed9t th\u1eddi \u0111i\u1ec3m ch\u1ec9 s\u1eed d\u1ee5ng \u0111\u01b0\u1ee3c 1 trong 3 modules n\u00e0y).<\/p>\n<ol>\n<li><strong>MPM Perfork<br \/>\n<\/strong>S\u1eed d\u1ee5ng nhi\u1ec1u ti\u1ebfn tr\u00ecnh con (chill process) trong apache v\u00e0 m\u1ed7i chill process \u0111\u00f3 ch\u1ec9 c\u00f3 1 lu\u1ed3ng (thread) \u0111\u1ec3 x\u1eed l\u00fd m\u1ed9t request t\u1ea1i c\u00f9ng m\u1ed9t th\u1eddi \u0111i\u1ec3m.<\/p>\n<ul>\n<li><strong>\u01afu \u0111i\u1ec3m<\/strong>: C\u00e1c process \u0111\u01b0\u1ee3c x\u1eed l\u00fd ho\u00e0n to\u00e0n m\u1ed9t c\u00e1ch \u0111\u1ed9c l\u1eadp kh\u00f4ng li\u00ean quan g\u00ec \u0111\u1ebfn nhau, cho n\u00ean n\u1ebfu m\u1ed9t process ch\u1ebft th\u00ec c\u00e1c process c\u00f2n l\u1ea1i v\u1eabn ho\u1ea1t \u0111\u1ed9ng v\u00e0 v\u1eabn ho\u00e0n th\u00e0nh c\u00f4ng vi\u1ec7c c\u1ee7a n\u00f3. \u0110\u00e2y l\u00e0 module m\u1eb7c \u0111\u1ecbnh v\u00e0 l\u00e0 module \u1ed5n \u0111\u1ecbnh nh\u1ea5t, t\u01b0\u01a1ng th\u00edch v\u1edbi c\u00e1c ph\u1ea7n m\u1ec1m c\u0169 h\u01a1n.<\/li>\n<li><strong>Nh\u01b0\u1ee3c \u0111i\u1ec3m<\/strong>: do x\u1eed l\u00fd kh\u00f4ng ph\u00e2n lu\u1ed3ng n\u00ean t\u1ea1o ra qu\u00e1 nhi\u1ec1u process s\u1ebd chi\u1ebfm d\u1ee5ng l\u01b0\u1ee3ng t\u00e0i nguy\u00ean server l\u1edbn.<\/li>\n<li>Th\u00f4ng s\u1ed1 c\u1ea7n l\u01b0u \u00fd:\n<ul>\n<li><strong>StartServers<\/strong> : s\u1ed1 process \u0111\u01b0\u1ee3c t\u1ea1o ra l\u00fac apache start<\/li>\n<li><strong>MinspareServer <\/strong>: s\u1ed1 process t\u1ed1i thi\u1ec3u \u0111\u01b0\u1ee3c chu\u1ea9n b\u1ecb s\u1eb5n.<\/li>\n<li><strong>MaxSpareServer <\/strong>: s\u1ed1 process t\u1ed1i \u0111a \u0111\u01b0\u1ee3c chu\u1ea9n b\u1ecb s\u1eb5n<\/li>\n<li><strong>ServerLimit<\/strong> : Gi\u00e1 tr\u1ecb l\u1edbn nh\u1ea5t c\u1ee7a Maxclient trong th\u1eddi gian ch\u1ea1y apache<\/li>\n<li><strong>MaxClient<\/strong> : s\u1ed1 process l\u1edbn nh\u1ea5t \u0111\u01b0\u1ee3c ch\u1ea1y<\/li>\n<li><strong>MaxRequestsPerChild<\/strong> : s\u1ed1 l\u01b0\u1ee3ng request t\u1ed1i \u0111a m\u00e0 m\u1ed9t process c\u00f3 th\u1ec3 ph\u1ee5c v\u1ee5<\/li>\n<li><strong>MaxRequestWorkers<\/strong> : s\u1ed1 l\u01b0\u1ee3ng ti\u1ebfn tr\u00ecnh con t\u1ed1i \u0111a c\u00f3 th\u1ec3 t\u1ed3n t\u1ea1i c\u00f9ng m\u1ed9t l\u00fac<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li><strong>MPM Worker<br \/>\n<\/strong>S\u1eed d\u1ee5ng nhi\u1ec1u ti\u1ebfn tr\u00ecnh con (chill process) trong apache v\u00e0 m\u1ed7i chill process s\u1ebd c\u00f3 nhi\u1ec1u lu\u1ed3ng (thread) v\u00e0 m\u1ed7i lu\u1ed3ng s\u1ebd x\u1ee9 l\u00fd m\u1ed9t request t\u1ea1i m\u1ed9t th\u1eddi \u0111i\u1ec3m.<\/p>\n<ul>\n<li><strong>\u01afu \u0111i\u1ec3m<\/strong>: c\u00f3 th\u1ec3 x\u1eed l\u00fd nhi\u1ec1u ti\u1ebfn tr\u00ecnh c\u00f9ng 1 l\u00fac. Nhanh h\u01a1n prefork v\u00e0 c\u00f3 th\u1ec3 x\u1eed l\u00fd nhi\u1ec1u kh\u00e1ch truy c\u1eadp h\u01a1n.<\/li>\n<li><strong>Nh\u01b0\u1ee3c \u0111i\u1ec3m<\/strong>: do x\u1eed l\u00fd nhi\u1ec1u n\u00ean t\u00ednh \u1ed5n \u0111\u1ecbnh s\u1ebd kh\u00f4ng cao so v\u1edbi prefork.<\/li>\n<li>Th\u00f4ng s\u1ed1 c\u1ea7n l\u01b0u \u00fd:\n<ul>\n<li><strong>StartServers<\/strong> : s\u1ed1 process \u0111\u01b0\u1ee3c t\u1ea1o ra l\u00fac apache start<\/li>\n<li><strong>MaxClient<\/strong> : t\u1ed5ng s\u1ed1 connections \u0111\u1ed3ng th\u1eddi s\u1ebd \u0111\u01b0\u1ee3c x\u1eed l\u00fd<\/li>\n<li><strong>MinSpareThread <\/strong>: s\u1ed1 Thread t\u1ed1i thi\u1ec3u \u0111\u01b0\u1ee3c chu\u1ea9n b\u1ecb s\u1eb5n<\/li>\n<li><strong>MaxSpareServer <\/strong>: S\u1ed1 Thread t\u1ed1i \u0111a \u0111\u01b0\u1ee3c chu\u1ea9n b\u1ecb s\u1eb5n<\/li>\n<li><strong>ThreadsPerChild<\/strong> : s\u1ed1 thread c\u00f3 trong m\u1ed9t process<\/li>\n<li><strong>MaxrequestsPerchild <\/strong>: t\u1ed5ng s\u1ed1 connections \u0111\u1ed3ng th\u1eddi \u0111\u01b0\u1ee3c process x\u1eed l\u00fd.<\/li>\n<li><strong>MaxRequestWorkers<\/strong> : t\u1ed5ng s\u1ed1 lu\u1ed3ng t\u1ed1i \u0111a c\u00f3 th\u1ec3 ho\u1ea1t \u0111\u1ed9ng \u0111\u1ed3ng th\u1eddi.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li><strong>MPM Event<br \/>\n<\/strong>Event MPM d\u1ef1a tr\u00ean m\u00f4 h\u00ecnh Worker MPM \u0111\u1ec3 ho\u1ea1t \u0111\u1ed9ng. Event MPM s\u1eed d\u1ee5ng c\u00e1c ti\u1ebfn tr\u00ecnh parent ( ti\u1ebfn tr\u00ecnh cha ) ch\u1ecbu tr\u00e1ch nhi\u1ec7m ch\u1ea1y c\u00e1c chill process, m\u1ed7i chill process s\u1ebd t\u1ea1o ra nhi\u1ec1u thread \u0111\u1ec3 x\u1ee9 l\u00fd c\u00e1c request.<\/p>\n<ul>\n<li><strong>\u01afu \u0111i\u1ec3m<\/strong> : l\u00e0 c\u1ea3i ti\u1ebfn t\u1eeb mpm worker v\u1edbi m\u1ee5c ti\u1ec3u ch\u1ec9 s\u1eed d\u1ee5ng c\u00e1c lu\u1ed3ng cho c\u00e1c k\u1ebft n\u1ed1i c\u00f3 x\u1eed l\u00fd t\u00edch c\u1ef1c v\u00e0 l\u00e0 module nhanh nh\u1ea5t, s\u1eed d\u1ee5ng \u00edt t\u00e0i nguy\u00ean nh\u1ea5t.<\/li>\n<li><strong>Nh\u01b0\u1ee3c \u0111i\u1ec3m<\/strong> : Do x\u1eed l\u00fd ph\u1ee9c t\u1ea1p v\u00e0 x\u1eed l\u00fd nhi\u1ec1u ti\u1ebfn tr\u00ecnh h\u01a1n cho v\u1edbi 2 module tr\u00ean n\u00ean t\u00ednh \u1ed5n \u0111\u1ecbnh k\u00e9m nh\u1ea5t.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3>II. Ki\u1ec3m tra module MPM \u0111ang ch\u1ea1y tr\u00ean server<\/h3>\n<p>\u0110\u1ec3 ki\u1ec3m tra module mpm n\u00e0o \u0111ang ch\u1ea1y tr\u00ean server, Qu\u00fd kh\u00e1ch c\u00f3 th\u1ec3 th\u1ef1c hi\u1ec7n l\u1ec7nh sau:<\/p>\n<ul>\n<li><strong>Centos<\/strong>: httpd -V | grep -i mpm<\/li>\n<li><strong>Ubuntu<\/strong>: apachectl -V | grep -i mpm<img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-5996 aligncenter\" src=\"https:\/\/longvan.net\/cong-dong\/wp-content\/uploads\/2024\/08\/event.png\" alt=\"\" width=\"639\" height=\"77\" srcset=\"https:\/\/longvan.net\/cong-dong\/wp-content\/uploads\/2024\/08\/event.png 639w, https:\/\/longvan.net\/cong-dong\/wp-content\/uploads\/2024\/08\/event-300x36.png 300w\" sizes=\"auto, (max-width: 639px) 100vw, 639px\" \/><\/li>\n<\/ul>\n<h3>III. T\u00ednh to\u00e1n v\u00e0 thi\u1ebft l\u1eadp c\u00e1c th\u00f4ng s\u1ed1 \u0111\u1ec3 t\u1ed1i \u01b0u ph\u00f9 h\u1ee3p<\/h3>\n<ol>\n<li>T\u00ednh to\u00e1n c\u00e1c th\u00f4ng s\u1ed1:\n<ul>\n<li>C\u00e0i \u0111\u1eb7t python ps_mem.py\n<pre><em>wget https:\/\/raw.githubusercontent.com\/pixelb\/ps_mem\/master\/ps_mem.py<\/em>\n<em>chmod a+x ps_mem.py<\/em>\n<em>python ps_mem.py<\/em><\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-5995\" src=\"https:\/\/longvan.net\/cong-dong\/wp-content\/uploads\/2024\/08\/sasdsadxd-e1730193034960.png\" alt=\"\" width=\"600\" height=\"82\" srcset=\"https:\/\/longvan.net\/cong-dong\/wp-content\/uploads\/2024\/08\/sasdsadxd-e1730193034960.png 656w, https:\/\/longvan.net\/cong-dong\/wp-content\/uploads\/2024\/08\/sasdsadxd-e1730193034960-300x41.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><br \/>\nNh\u01b0 v\u00ed d\u1ee5 trong b\u00e0i vi\u1ebft n\u00e0y \u0111ang c\u00f3 3 process size apache (httpd) ti\u00eau th\u1ee5 4.6MB, v\u00ec v\u1eady m\u1ed7i apache process \u0111ang s\u1eed d\u1ee5ng kho\u1ea3ng 1.5MB RAM v\u00e0 m\u1ed7i PHP process size s\u1ebd s\u1eed d\u1ee5ng kho\u1ea3ng 4.5MB<\/li>\n<li><strong>C\u00f4ng th\u1ee9c t\u00ednh MaxrequestWorkers v\u00e0 ServerLimit:<br \/>\n<\/strong>MaxRequestWorkers = (Total RAM &#8211; Memory used for Linux, DB, etc.) \/ process size<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"wp-image-5993 aligncenter\" src=\"https:\/\/longvan.net\/cong-dong\/wp-content\/uploads\/2024\/08\/ram-e1730193174302.png\" alt=\"\" width=\"600\" height=\"84\" srcset=\"https:\/\/longvan.net\/cong-dong\/wp-content\/uploads\/2024\/08\/ram-e1730193174302.png 737w, https:\/\/longvan.net\/cong-dong\/wp-content\/uploads\/2024\/08\/ram-e1730193174302-300x42.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/>MaxRequestWorkers = (3770 &#8211; 925) \/ 1.5 = 1896<\/li>\n<li><strong>C\u00f4ng Th\u1ee9c t\u00ednh php-fpm max-children<br \/>\n<\/strong>Max-children = (T\u1ed5ng RAM &#8211; B\u1ed9 nh\u1edb \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng cho Linux, DB, v.v.) \/ PHP process zise<br \/>\nMax-children = (3770 &#8211; 925) \/ 4.5 = 632<\/li>\n<\/ul>\n<\/li>\n<li>\u0110i\u1ec1u ch\u1ec9nh c\u1ea5u h\u00ecnh\n<ul>\n<li>V\u00e0o file c\u1ea5u h\u00ecnh c\u1ee7a module MPM \u0111ang ch\u1ea1y \u0111\u1ec3 ch\u1ec9nh s\u1eeda v\u00ed d\u1ee5 trong b\u00e0i vi\u1ebft \u0111ang ch\u1ea1y MPM Event th\u00ec ta v\u00e0o \u0111\u01b0\u1eddng d\u1eabn &#8221; \/etc\/apache2\/mods-enabled\/mpm_event.conf &#8221;<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"wp-image-5997 aligncenter\" src=\"https:\/\/longvan.net\/cong-dong\/wp-content\/uploads\/2024\/08\/asdaxd-e1730193477112.png\" alt=\"\" width=\"650\" height=\"308\" srcset=\"https:\/\/longvan.net\/cong-dong\/wp-content\/uploads\/2024\/08\/asdaxd-e1730193477112.png 785w, https:\/\/longvan.net\/cong-dong\/wp-content\/uploads\/2024\/08\/asdaxd-e1730193477112-300x142.png 300w, https:\/\/longvan.net\/cong-dong\/wp-content\/uploads\/2024\/08\/asdaxd-e1730193477112-768x364.png 768w\" sizes=\"auto, (max-width: 650px) 100vw, 650px\" \/><\/li>\n<li>L\u01b0u \u00fd r\u1eb1ng c\u00e0i \u0111\u1eb7t m\u1eb7c \u0111\u1ecbnh kh\u00f4ng ch\u1ee9a &#8220;server limit \u201c, v\u00ec v\u1eady th\u00eam n\u00f3 v\u00e0o \u0111\u00e2y c\u00f2n c\u00e1c th\u00f4ng s\u1ed1 kh\u00e1c th\u00ec \u0111\u1ec3 m\u1eb7c \u0111\u1ecbnh.<\/li>\n<li>C\u1ea5u h\u00ecnh th\u00f4ng s\u1ed1 php-fpm (8.1 l\u00e0 version trong b\u00e0i\u00a0 vi\u1ebft n\u00e0y s\u1eed d\u1ee5ng), v\u00e0o file config c\u1ee7a php-fpm &#8220;\/etc\/php\/8.1\/fpm\/pool.d\/www.conf&#8221;\n<pre>pm = dynamic\npm.max_children = \u00a0640\npm.start_servers = (cpu cores * 4)\npm.min_spare_servers = \u00a0(cpu cores * 2)\npm.max_spare_servers = \u00a0(cpu cores * 4)\npm.max_requests = 1000<\/pre>\n<\/li>\n<li>L\u01b0u l\u1ea1i v\u00e0 restart service apache \u0111\u1ec3 \u00e1p d\u1ee5ng c\u1ea5u h\u00ecnh m\u1edbi.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p>Nh\u01b0 v\u1eady, Long V\u00e2n \u0111\u00e3 ho\u00e0n th\u00e0nh h\u01b0\u1edbng d\u1eabn Qu\u00fd kh\u00e1ch c\u00e1ch c\u1ea5u h\u00ecnh module mpm trong m\u00e1y ch\u1ee7 Apache. Ch\u00fac Qu\u00fd kh\u00e1ch th\u00e0nh c\u00f4ng!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I. Gi\u1edbi thi\u1ec7u v\u00e0 so s\u00e1nh s\u1ef1 kh\u00e1c nhau gi\u1eefa 3 mode ch\u00ednh Apache MPM l\u00e0 c\u00e1c module muti-processing quy\u1ebft \u0111\u1ecbnh c\u00e1ch th\u1ee9c m\u00e0 Apache s\u1ebd ti\u1ebfp nh\u1eadn v\u00e0 x\u1eed l\u00fd c\u00e1c request t\u1eeb client. MPM l\u00e0 module c\u1ee7a apache n\u00ean c\u00f3 th\u1ec3 enable hay disable trong file config c\u1ee7a apache. Apache t\u1eeb version 2.4 [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_oasis_is_in_workflow":0,"_oasis_original":0,"footnotes":""},"categories":[40],"tags":[288,296,365,5,363,148,364],"class_list":["post-5986","post","type-post","status-publish","format-standard","hentry","category-web-hosting","tag-apache-mpm","tag-centos","tag-event","tag-linux","tag-perfork","tag-ubuntu","tag-worker"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>H\u01b0\u1edbng d\u1eabn c\u1ea5u h\u00ecnh Apache MPM - Long V\u00e2n<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/longvan.net\/cong-dong\/huong-dan-cau-hinh-apache-mpm\/\" \/>\n<meta property=\"og:locale\" content=\"vi_VN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"H\u01b0\u1edbng d\u1eabn c\u1ea5u h\u00ecnh Apache MPM - Long V\u00e2n\" \/>\n<meta property=\"og:description\" content=\"I. Gi\u1edbi thi\u1ec7u v\u00e0 so s\u00e1nh s\u1ef1 kh\u00e1c nhau gi\u1eefa 3 mode ch\u00ednh Apache MPM l\u00e0 c\u00e1c module muti-processing quy\u1ebft \u0111\u1ecbnh c\u00e1ch th\u1ee9c m\u00e0 Apache s\u1ebd ti\u1ebfp nh\u1eadn v\u00e0 x\u1eed l\u00fd c\u00e1c request t\u1eeb client. MPM l\u00e0 module c\u1ee7a apache n\u00ean c\u00f3 th\u1ec3 enable hay disable trong file config c\u1ee7a apache. Apache t\u1eeb version 2.4 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/longvan.net\/cong-dong\/huong-dan-cau-hinh-apache-mpm\/\" \/>\n<meta property=\"og:site_name\" content=\"Long V\u00e2n\" \/>\n<meta property=\"article:published_time\" content=\"2024-08-13T00:30:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-10-29T09:23:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/longvan.net\/cong-dong\/wp-content\/uploads\/2024\/08\/event.png\" \/>\n\t<meta property=\"og:image:width\" content=\"639\" \/>\n\t<meta property=\"og:image:height\" content=\"77\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Mai V\u0103n Chung\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u0110\u01b0\u1ee3c vi\u1ebft b\u1edfi\" \/>\n\t<meta name=\"twitter:data1\" content=\"Mai V\u0103n Chung\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u01af\u1edbc t\u00ednh th\u1eddi gian \u0111\u1ecdc\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 ph\u00fat\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/longvan.net\\\/cong-dong\\\/huong-dan-cau-hinh-apache-mpm\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/longvan.net\\\/cong-dong\\\/huong-dan-cau-hinh-apache-mpm\\\/\"},\"author\":{\"name\":\"Mai V\u0103n Chung\",\"@id\":\"https:\\\/\\\/longvan.net\\\/cong-dong\\\/#\\\/schema\\\/person\\\/0f5bb4435e991d494ff8f4b132e5ed8b\"},\"headline\":\"H\u01b0\u1edbng d\u1eabn c\u1ea5u h\u00ecnh Apache MPM\",\"datePublished\":\"2024-08-13T00:30:00+00:00\",\"dateModified\":\"2024-10-29T09:23:24+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/longvan.net\\\/cong-dong\\\/huong-dan-cau-hinh-apache-mpm\\\/\"},\"wordCount\":1104,\"publisher\":{\"@id\":\"https:\\\/\\\/longvan.net\\\/cong-dong\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/longvan.net\\\/cong-dong\\\/huong-dan-cau-hinh-apache-mpm\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/longvan.net\\\/cong-dong\\\/wp-content\\\/uploads\\\/2024\\\/08\\\/event.png\",\"keywords\":[\"apache mpm\",\"centos\",\"Event\",\"Linux\",\"Perfork\",\"ubuntu\",\"Worker\"],\"articleSection\":[\"Web Hosting\"],\"inLanguage\":\"vi\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/longvan.net\\\/cong-dong\\\/huong-dan-cau-hinh-apache-mpm\\\/\",\"url\":\"https:\\\/\\\/longvan.net\\\/cong-dong\\\/huong-dan-cau-hinh-apache-mpm\\\/\",\"name\":\"H\u01b0\u1edbng d\u1eabn c\u1ea5u h\u00ecnh Apache MPM - Long V\u00e2n\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/longvan.net\\\/cong-dong\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/longvan.net\\\/cong-dong\\\/huong-dan-cau-hinh-apache-mpm\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/longvan.net\\\/cong-dong\\\/huong-dan-cau-hinh-apache-mpm\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/longvan.net\\\/cong-dong\\\/wp-content\\\/uploads\\\/2024\\\/08\\\/event.png\",\"datePublished\":\"2024-08-13T00:30:00+00:00\",\"dateModified\":\"2024-10-29T09:23:24+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/longvan.net\\\/cong-dong\\\/huong-dan-cau-hinh-apache-mpm\\\/#breadcrumb\"},\"inLanguage\":\"vi\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/longvan.net\\\/cong-dong\\\/huong-dan-cau-hinh-apache-mpm\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"vi\",\"@id\":\"https:\\\/\\\/longvan.net\\\/cong-dong\\\/huong-dan-cau-hinh-apache-mpm\\\/#primaryimage\",\"url\":\"https:\\\/\\\/longvan.net\\\/cong-dong\\\/wp-content\\\/uploads\\\/2024\\\/08\\\/event.png\",\"contentUrl\":\"https:\\\/\\\/longvan.net\\\/cong-dong\\\/wp-content\\\/uploads\\\/2024\\\/08\\\/event.png\",\"width\":639,\"height\":77},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/longvan.net\\\/cong-dong\\\/huong-dan-cau-hinh-apache-mpm\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Trang ch\u1ee7\",\"item\":\"https:\\\/\\\/longvan.net\\\/cong-dong\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"H\u01b0\u1edbng d\u1eabn c\u1ea5u h\u00ecnh Apache MPM\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/longvan.net\\\/cong-dong\\\/#website\",\"url\":\"https:\\\/\\\/longvan.net\\\/cong-dong\\\/\",\"name\":\"Long V\u00e2n\",\"description\":\"C\u1ed9ng \u0110\u1ed3ng\",\"publisher\":{\"@id\":\"https:\\\/\\\/longvan.net\\\/cong-dong\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/longvan.net\\\/cong-dong\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"vi\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/longvan.net\\\/cong-dong\\\/#organization\",\"name\":\"Long V\u00e2n\",\"url\":\"https:\\\/\\\/longvan.net\\\/cong-dong\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"vi\",\"@id\":\"https:\\\/\\\/longvan.net\\\/cong-dong\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/longvan.net\\\/cong-dong\\\/wp-content\\\/uploads\\\/2025\\\/11\\\/cropped-logo-longvancloudsolution.png\",\"contentUrl\":\"https:\\\/\\\/longvan.net\\\/cong-dong\\\/wp-content\\\/uploads\\\/2025\\\/11\\\/cropped-logo-longvancloudsolution.png\",\"width\":1300,\"height\":330,\"caption\":\"Long V\u00e2n\"},\"image\":{\"@id\":\"https:\\\/\\\/longvan.net\\\/cong-dong\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/longvan.net\\\/cong-dong\\\/#\\\/schema\\\/person\\\/0f5bb4435e991d494ff8f4b132e5ed8b\",\"name\":\"Mai V\u0103n Chung\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"vi\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/201def381d0ff0c15e626fc20b54d828d1d99708c72f9d8dc178c924cf993552?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/201def381d0ff0c15e626fc20b54d828d1d99708c72f9d8dc178c924cf993552?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/201def381d0ff0c15e626fc20b54d828d1d99708c72f9d8dc178c924cf993552?s=96&d=mm&r=g\",\"caption\":\"Mai V\u0103n Chung\"},\"sameAs\":[\"http:\\\/\\\/longvan.net\"],\"url\":\"https:\\\/\\\/longvan.net\\\/cong-dong\\\/author\\\/vanchung\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"H\u01b0\u1edbng d\u1eabn c\u1ea5u h\u00ecnh Apache MPM - Long V\u00e2n","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/longvan.net\/cong-dong\/huong-dan-cau-hinh-apache-mpm\/","og_locale":"vi_VN","og_type":"article","og_title":"H\u01b0\u1edbng d\u1eabn c\u1ea5u h\u00ecnh Apache MPM - Long V\u00e2n","og_description":"I. Gi\u1edbi thi\u1ec7u v\u00e0 so s\u00e1nh s\u1ef1 kh\u00e1c nhau gi\u1eefa 3 mode ch\u00ednh Apache MPM l\u00e0 c\u00e1c module muti-processing quy\u1ebft \u0111\u1ecbnh c\u00e1ch th\u1ee9c m\u00e0 Apache s\u1ebd ti\u1ebfp nh\u1eadn v\u00e0 x\u1eed l\u00fd c\u00e1c request t\u1eeb client. MPM l\u00e0 module c\u1ee7a apache n\u00ean c\u00f3 th\u1ec3 enable hay disable trong file config c\u1ee7a apache. Apache t\u1eeb version 2.4 [&hellip;]","og_url":"https:\/\/longvan.net\/cong-dong\/huong-dan-cau-hinh-apache-mpm\/","og_site_name":"Long V\u00e2n","article_published_time":"2024-08-13T00:30:00+00:00","article_modified_time":"2024-10-29T09:23:24+00:00","og_image":[{"width":639,"height":77,"url":"https:\/\/longvan.net\/cong-dong\/wp-content\/uploads\/2024\/08\/event.png","type":"image\/png"}],"author":"Mai V\u0103n Chung","twitter_card":"summary_large_image","twitter_misc":{"\u0110\u01b0\u1ee3c vi\u1ebft b\u1edfi":"Mai V\u0103n Chung","\u01af\u1edbc t\u00ednh th\u1eddi gian \u0111\u1ecdc":"6 ph\u00fat"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/longvan.net\/cong-dong\/huong-dan-cau-hinh-apache-mpm\/#article","isPartOf":{"@id":"https:\/\/longvan.net\/cong-dong\/huong-dan-cau-hinh-apache-mpm\/"},"author":{"name":"Mai V\u0103n Chung","@id":"https:\/\/longvan.net\/cong-dong\/#\/schema\/person\/0f5bb4435e991d494ff8f4b132e5ed8b"},"headline":"H\u01b0\u1edbng d\u1eabn c\u1ea5u h\u00ecnh Apache MPM","datePublished":"2024-08-13T00:30:00+00:00","dateModified":"2024-10-29T09:23:24+00:00","mainEntityOfPage":{"@id":"https:\/\/longvan.net\/cong-dong\/huong-dan-cau-hinh-apache-mpm\/"},"wordCount":1104,"publisher":{"@id":"https:\/\/longvan.net\/cong-dong\/#organization"},"image":{"@id":"https:\/\/longvan.net\/cong-dong\/huong-dan-cau-hinh-apache-mpm\/#primaryimage"},"thumbnailUrl":"https:\/\/longvan.net\/cong-dong\/wp-content\/uploads\/2024\/08\/event.png","keywords":["apache mpm","centos","Event","Linux","Perfork","ubuntu","Worker"],"articleSection":["Web Hosting"],"inLanguage":"vi"},{"@type":"WebPage","@id":"https:\/\/longvan.net\/cong-dong\/huong-dan-cau-hinh-apache-mpm\/","url":"https:\/\/longvan.net\/cong-dong\/huong-dan-cau-hinh-apache-mpm\/","name":"H\u01b0\u1edbng d\u1eabn c\u1ea5u h\u00ecnh Apache MPM - Long V\u00e2n","isPartOf":{"@id":"https:\/\/longvan.net\/cong-dong\/#website"},"primaryImageOfPage":{"@id":"https:\/\/longvan.net\/cong-dong\/huong-dan-cau-hinh-apache-mpm\/#primaryimage"},"image":{"@id":"https:\/\/longvan.net\/cong-dong\/huong-dan-cau-hinh-apache-mpm\/#primaryimage"},"thumbnailUrl":"https:\/\/longvan.net\/cong-dong\/wp-content\/uploads\/2024\/08\/event.png","datePublished":"2024-08-13T00:30:00+00:00","dateModified":"2024-10-29T09:23:24+00:00","breadcrumb":{"@id":"https:\/\/longvan.net\/cong-dong\/huong-dan-cau-hinh-apache-mpm\/#breadcrumb"},"inLanguage":"vi","potentialAction":[{"@type":"ReadAction","target":["https:\/\/longvan.net\/cong-dong\/huong-dan-cau-hinh-apache-mpm\/"]}]},{"@type":"ImageObject","inLanguage":"vi","@id":"https:\/\/longvan.net\/cong-dong\/huong-dan-cau-hinh-apache-mpm\/#primaryimage","url":"https:\/\/longvan.net\/cong-dong\/wp-content\/uploads\/2024\/08\/event.png","contentUrl":"https:\/\/longvan.net\/cong-dong\/wp-content\/uploads\/2024\/08\/event.png","width":639,"height":77},{"@type":"BreadcrumbList","@id":"https:\/\/longvan.net\/cong-dong\/huong-dan-cau-hinh-apache-mpm\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Trang ch\u1ee7","item":"https:\/\/longvan.net\/cong-dong\/"},{"@type":"ListItem","position":2,"name":"H\u01b0\u1edbng d\u1eabn c\u1ea5u h\u00ecnh Apache MPM"}]},{"@type":"WebSite","@id":"https:\/\/longvan.net\/cong-dong\/#website","url":"https:\/\/longvan.net\/cong-dong\/","name":"Long V\u00e2n","description":"C\u1ed9ng \u0110\u1ed3ng","publisher":{"@id":"https:\/\/longvan.net\/cong-dong\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/longvan.net\/cong-dong\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"vi"},{"@type":"Organization","@id":"https:\/\/longvan.net\/cong-dong\/#organization","name":"Long V\u00e2n","url":"https:\/\/longvan.net\/cong-dong\/","logo":{"@type":"ImageObject","inLanguage":"vi","@id":"https:\/\/longvan.net\/cong-dong\/#\/schema\/logo\/image\/","url":"https:\/\/longvan.net\/cong-dong\/wp-content\/uploads\/2025\/11\/cropped-logo-longvancloudsolution.png","contentUrl":"https:\/\/longvan.net\/cong-dong\/wp-content\/uploads\/2025\/11\/cropped-logo-longvancloudsolution.png","width":1300,"height":330,"caption":"Long V\u00e2n"},"image":{"@id":"https:\/\/longvan.net\/cong-dong\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/longvan.net\/cong-dong\/#\/schema\/person\/0f5bb4435e991d494ff8f4b132e5ed8b","name":"Mai V\u0103n Chung","image":{"@type":"ImageObject","inLanguage":"vi","@id":"https:\/\/secure.gravatar.com\/avatar\/201def381d0ff0c15e626fc20b54d828d1d99708c72f9d8dc178c924cf993552?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/201def381d0ff0c15e626fc20b54d828d1d99708c72f9d8dc178c924cf993552?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/201def381d0ff0c15e626fc20b54d828d1d99708c72f9d8dc178c924cf993552?s=96&d=mm&r=g","caption":"Mai V\u0103n Chung"},"sameAs":["http:\/\/longvan.net"],"url":"https:\/\/longvan.net\/cong-dong\/author\/vanchung\/"}]}},"_links":{"self":[{"href":"https:\/\/longvan.net\/cong-dong\/wp-json\/wp\/v2\/posts\/5986","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/longvan.net\/cong-dong\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/longvan.net\/cong-dong\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/longvan.net\/cong-dong\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/longvan.net\/cong-dong\/wp-json\/wp\/v2\/comments?post=5986"}],"version-history":[{"count":31,"href":"https:\/\/longvan.net\/cong-dong\/wp-json\/wp\/v2\/posts\/5986\/revisions"}],"predecessor-version":[{"id":6907,"href":"https:\/\/longvan.net\/cong-dong\/wp-json\/wp\/v2\/posts\/5986\/revisions\/6907"}],"wp:attachment":[{"href":"https:\/\/longvan.net\/cong-dong\/wp-json\/wp\/v2\/media?parent=5986"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/longvan.net\/cong-dong\/wp-json\/wp\/v2\/categories?post=5986"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/longvan.net\/cong-dong\/wp-json\/wp\/v2\/tags?post=5986"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}