웹마스터 블로그

아파치, php를 윈도우서버상의 서비스로 등록하거나 삭제하는방법

아파치 웹 서비스를 윈도우가 부팅시 자동으로 실행되도록 설정하려면 서비스로 등록하면 되는데..

서비스 등록시:

sc.exe create <서비스 명> binPath= "<프로그램 디렉토리 & pass>"
ex:) sc create "Apache 2.42" binpath="c:/apache242/httpd.exe -k install -n"

서비스 삭제시:

sc delete "서비스 명" ex:) sc delete "Apache 2.42"

Related Posts:

comments powered by Disqus