아파치(apache) 시작,중지,리스타트하기
아파치 시작,중지,리스타트는 httpd 또는 apachectl 을 사용.
아파치 시작
$ apachectl start
$ httpd start
아파치 중지
$ apachectl stop
$ httpd stop
아파치 리스타트
$ apachectl restart
$ httpd restart
위와 같이 했는데 안될 경우
아파치 시작
$ /etc/rc.d/init.d/httpd start
아파치 중지
$ /etc/rc.d/init.d/httpd stop
아파치 리스타트
$ /etc/rc.d/init.d/httpd restart
위치
# which apachectl
결과물
/usr/local/apache/bin/apachectl
httpd.conf 파일의 문법검사는
# apachectl configtest
이상 없을때의 결과물
Syntax OK
0 notes
nginx 설치 및 명령어
설치 $ brew install nginx
$ brew list – 현재 설치된 패키지 목록
$ brew list {패키지 명} – 설치된 패키지의 관련 폴더 목록
Nginx 간단 명령어
서버 시작 : $ nginx
서버 종료 : $ nginx -s stop
서버 재시작 : $ nginx -s reload
0 notes