#!/bin/bash
CHECK=`netstat -nltp |grep 80 |grep httpd |wc -l`
if [ $CHECK -ge "1" ]; then
echo ""
else
# apache restart
`/etc/init.d/apachectl restart`
fi
exit
#!/bin/bash
CHECK=`netstat -nltp |grep 80 |grep httpd |wc -l`
if [ $CHECK -ge "1" ]; then
echo ""
else
# apache restart
`/etc/init.d/apachectl restart`
fi
exit
번호 | 제목 | 날짜 | 조회 수 |
---|---|---|---|
157 | centos 버전 확인 | 2015.07.16 | 7614 |
156 | 리눅스 서버 백업 - Crontab | 2014.03.26 | 7619 |
155 | 긴급 스왑 메모리 추가 하기 | 2014.03.26 | 7622 |
154 | 리눅스,사용자계정(관련 파일,명령어) | 2014.10.30 | 7624 |
153 | Tomcat 6에 Datasource 설정하기 | 2017.03.11 | 7624 |
152 | yum (Yellowdog Updater Modified) 명령어 정리 | 2014.02.27 | 7625 |
151 | 컴파일을 이용하여 Apache 최신버전을 설치하자 | 2016.03.18 | 7632 |
150 | 리눅스 기본보안설정(1-8) | 2014.05.15 | 7636 |
149 | 리눅스/RAID 설정하기 2 | 2016.07.22 | 7645 |
148 | CentOS 7 Subversion(SVN) | 2015.07.17 | 7648 |
147 | Centos7 64bit 웹서버 만들기-mysql설치 CAP4 | 2015.07.17 | 7655 |
146 | 리눅스 해킹사고 분석 및 대응절차 | 2014.03.26 | 7662 |
145 | CentOS 7 에 php 설치하기 | 2015.07.16 | 7663 |
144 | iptables 접속 차단 스크립트 | 2014.04.23 | 7665 |
143 | apache, mod_ssl 설치 (apache 1.3.37버전) | 2014.02.27 | 7667 |
142 | Apache(아파치)를 사용해 redirect(리다이렉트) 하는 방법 7 | 2014.02.27 | 7667 |
141 | php http include | 2016.03.18 | 7685 |
140 | 리눅스 - 동시접속자 확인 방법 | 2014.02.27 | 7699 |
139 | CentOS 7 FTP Server 설치 | 2015.07.17 | 7701 |
138 | mariadb | my.cnf 설정. MariaDB(5.5.37) utf8 설정 | 2015.07.16 | 7711 |