변군이글루

[apache] 아파치 prefork- worker 변경 본문

및___APM

[apache] 아파치 prefork- worker 변경

변군 변군이글루 2015.01.21 18:35

 

아파치 prefork- worker 변경

 

[prefork]

[root@rvm01 ~]# /usr/sbin/apachectl -l

Compiled in modules:

  core.c

  prefork.c

  http_core.c

  mod_so.c.

 

[root@rvm01 ~]# ps -ef | grep httpd

root     25973     1  0 17:34 ?        00:00:00 /usr/sbin/httpd

nobody   25975 25973  0 17:34 ?        00:00:00 /usr/sbin/httpd

nobody   25976 25973  0 17:34 ?        00:00:00 /usr/sbin/httpd

nobody   25977 25973  0 17:34 ?        00:00:00 /usr/sbin/httpd

nobody   25978 25973  0 17:34 ?        00:00:00 /usr/sbin/httpd

nobody   25979 25973  0 17:34 ?        00:00:00 /usr/sbin/httpd

root     27527 27293  0 18:22 pts/0    00:00:00 grep --color=auto httpd

 

[root@rvm01 ~]# file /etc/sysconfig/httpd

/etc/sysconfig/httpd: ASCII English text

 

[root@rvm01 ~]# vi /etc/sysconfig/httpd

# Configuration file for the httpd service.

 

#

# The default processing model (MPM) is the process-based

# 'prefork' model.  A thread-based model, 'worker', is also

# available, but does not work with some modules (such as PHP).

# The service must be stopped before changing this variable.

#

HTTPD=/usr/sbin/httpd.worker #주석제거

 

#

# To pass additional options (for instance, -D definitions) to the

# httpd binary at startup, set OPTIONS here.

#

#OPTIONS=

 

[root@rvm01 ~]# service httpd stop

httpd 를 정지 중:                                          [  OK  ]

 

[root@rvm01 ~]# service httpd start

httpd ()를 시작 중:                                      [  OK  ]

 

[worker]

[root@rvm01 ~]# /usr/sbin/apachectl -l

Compiled in modules:

  core.c

  worker.c

  http_core.c

mod_so.c

 

[root@rvm01 ~]# ps -ef | grep httpd

root     27793     1  0 18:26 ?        00:00:00 /usr/sbin/httpd.worker

nobody   27908 27793  0 18:26 ?        00:00:00 /usr/sbin/httpd.worker

root     27937 27293  0 18:26 pts/0    00:00:00 grep --color=auto httpd

 

[root@rvm01 ~]# ps -efL | grep httpd

root     27793     1 27793  0    1 18:26 ?        00:00:00 /usr/sbin/httpd.worker

nobody   27908 27793 27908  0   27 18:26 ?        00:00:00 /usr/sbin/httpd.worker

nobody   27908 27793 27910  0   27 18:26 ?        00:00:00 /usr/sbin/httpd.worker

nobody   27908 27793 27911  0   27 18:26 ?        00:00:00 /usr/sbin/httpd.worker

nobody   27908 27793 27935  0   27 18:26 ?        00:00:00 /usr/sbin/httpd.worker

nobody   27908 27793 27912  0   27 18:26 ?        00:00:00 /usr/sbin/httpd.worker

 

'및___APM' 카테고리의 다른 글

[APM] APM 설치  (1) 2015.02.08
[apache] mod_slotmem_shm 모듈 에러  (0) 2015.02.05
[apache] 아파치 prefork- worker 변경  (0) 2015.01.21
[mysql] MySQL Replication 설정  (0) 2014.04.12
[기사] HeartBeat를 이용한 MySQL HA 구성  (0) 2014.01.14
[HTTP] HTTP 상태 코드  (0) 2014.01.02
0 Comments
댓글쓰기 폼