Win2000에서 Apache 를 서비스로 등록하는 ?
작성자 정보
- 하늘미르 작성
- 작성일
컨텐츠 정보
- 1,515 조회
- 0 추천
- 목록
본문
제가 질문하고 제가 답을 하는군요...크크
아주 쉽네요...
그냥 apache 폴더에서 apache -i -n "service name" 하니까 되는군요..
아래는 원본 문서입니다.
Note: The -n option to specify a service name is only available with Apache 1.3.7 and later. Earlier versions of Apache only support the default service name 'Apache'. Only version 1.3.21 supports Windows 2000 ability to 'rename' the display name of a service.
You can install Apache as a Windows NT service as follows:
apache -i -n "service name"
To install a service to use a particular configuration, specify the configuration file when the service is installed:
apache -i -n "service name" -f "my serverconfmy.conf"
You can pass any other arguments, such as -d to change the default server root directory, -D, -C or -c to change config file processing, etc. Since these are stored in the registry and are difficult to modify, use this command to clear the options and replace them with a new list of options;
apache -k config -n "service name" -f "my serverconfmy.conf"
To remove an Apache service, use:
apache -u -n "service name"
The default "service name", if one is not specified, is "Apache".
Once a service is installed, you can use the -n option, in conjunction with other options, to refer to a service's configuration file. For example:
To test a service's configuration file and report the default options for the service (configured with -i, -k install or -k config) use:
apache -n "service name" -t
To start a console Apache using a service's configuration file and its default options, use:
apache -n "service name"
Effective with Apache release 1.3.15, the -k install option was added as an alias to -i, and the -k uninstall option was added as an alias to -u. The original -i and -u options are deprecated in Apache 2.0. These aliases were added to ease the transition for administrators running both versions.
관련자료
-
이전
-
다음