Server-Side/Linux2010. 12. 20. 20:19
Add Dag RPM Repository
# vi /etc/yum.repos.d/Dag.repo
-----------------------------------
[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=0
enabled=1
protetc=0
-----------------------------------

Install & configure monit
# yum install monit
# vi /etc/monit.conf
-----------------------------------
set daemon 120
set logfile syslog facility log_daemon
set idfile /var/monit/id
set statefile /var/monit/state

set mailserver localhost
set alert your@email.com

set httpd port 80 and
     use address localhost
     allow localhost

check process apache with pidfile /usr/local/apache/logs/httpd.pid
    start program = "/etc/init.d/httpd start" with timeout 60 seconds
    stop program = "/etc/init.d/httpd stop"
    if cpu > 60% for 2 cycles then alert
    if cpu > 80% for 5 cycles then restart
    if totalmem > 200.0 MB for 5 cycles then restart
    if children > 250 then restart
    if loadavg(5min)greater than 10 for 8 cycles then stop
-----------------------------------

start monit
# service monit start




Posted by 준피
Server-Side/Linux2010. 9. 20. 19:04
(98) address already in use make_sock could not bind to address 80

아파치를 중복 설치 했을 때 이런 에러가 나기도 한다.

이런 경우 원상복구를 하기 위해서 다음과 같은 조치를 해주자.

# cp /usr/local/apache/bin/apachectl /etc/init.d/httpd

소스 디렉토리의 apachectl을 httpd로 파일명을 변경해서 복사하면 된다.

'Server-Side > Linux' 카테고리의 다른 글

[CentOS] php version update 5.1 to 5.2  (0) 2010.10.09
[CentOS] mysqli 설치  (0) 2010.10.09
netstat 사용법  (0) 2010.09.20
서버 상태 확인  (0) 2010.08.28
[CentOS] apache tomcat mod_jk 이용해서 연동하기  (0) 2010.08.27
Posted by 준피