가끔 서버작업할때 자주 사용하는 명령어라 기록차원에서 적어본다.
1. 서비스 상태 확인, 시작, 중지, 재시작 명령어
1-1. 우분투 (서비스명: apache2)
systemctl status apache2 // 아파치 상태 확인
systemctl start apache2 // 아파치 시작
systemctl stop apache2 // 아파치 정지
systemctl restart apache2 // 아파치 재시작
systemctl reload apache2 // 아파치 리로드
1-2. CentOS (서비스명: httpd)
systemctl status httpd // 아파치 상태 확인
systemctl start httpd // 아파치 시작
systemctl stop httpd // 아파치 정지
systemctl restart httpd // 아파치 재시작
systemctl reload httpd // 아파치 리로드
2. 버전확인
[root]# /usr/sbin/httpd -v
Server version: Apache/2.2.3
Server built: Aug 19 2011 11:19:08
'Linux' 카테고리의 다른 글
ORA-28001 : the password has expired (오라클 비밀번호 만료 ) (0) | 2022.02.11 |
---|
댓글