develog

[Apache] Windows 7, Apache 웹서버 설치 본문

Web & WAS/Apache

[Apache] Windows 7, Apache 웹서버 설치

냐옴 2016. 5. 3. 11:13

▶ Apache Lounge 접속

    - https://www.apachelounge.com/download/VC11/


▶  vcredist_x64/86.exe, 다운로드 및 설치

    - Microsoft Visual C++ 2012 Redistributable (x64) - 11.0.61030


▶ httpd-2.4.20-win64-VC11.zip, 다운로드 및 설치

    - Apache 2.4.20 Win64 (VC11)

    - 압축해제, C:\Apache24\


▶ httpd.conf 수정

    - ServerName localhost:80


▶ 실행되는지 확인

    - http://localhost/ 접속

    - 'It works!' 표시되는지 확인


▶ Windows 서비스로 등록, 해제

    - httpd.exe -k install

    - httpd.exe -k uninstall


▶ 시작, 종료

    - httpd.exe -k start

    - httpd.exe -k stop

    - httpd.exe -k restart


▶ httpd.exe 옵션

C:\Apache24\bin>httpd.exe /?

Usage: httpd.exe [-D name] [-d directory] [-f file]

                 [-C "directive"] [-c "directive"]

                 [-w] [-k start|restart|stop|shutdown] [-n service_name]

                 [-k install|config|uninstall] [-n service_name]

                 [-v] [-V] [-h] [-l] [-L] [-t] [-T] [-S] [-X]

Options:

  -D name            : define a name for use in <IfDefine name> directives

  -d directory       : specify an alternate initial ServerRoot

  -f file            : specify an alternate ServerConfigFile

  -C "directive"     : process directive before reading config files

  -c "directive"     : process directive after reading config files

  -n name            : set service name and use its ServerConfigFile and ServerRoot

  -k start           : tell Apache to start

  -k restart         : tell running Apache to do a graceful restart

  -k stop|shutdown   : tell running Apache to shutdown

  -k install         : install an Apache service

  -k config          : change startup Options of an Apache service

  -k uninstall       : uninstall an Apache service

  -w                 : hold open the console window on error

  -e level           : show startup errors of level (see LogLevel)

  -E file            : log startup errors to file

  -v                 : show version number

  -V                 : show compile settings

  -h                 : list available command line options (this page)

  -l                 : list compiled in modules

  -L                 : list available configuration directives

  -t -D DUMP_VHOSTS  : show parsed vhost settings

  -t -D DUMP_RUN_CFG : show parsed run settings

  -S                 : a synonym for -t -D DUMP_VHOSTS -D DUMP_RUN_CFG

  -t -D DUMP_MODULES : show all loaded modules

  -M                 : a synonym for -t -D DUMP_MODULES

  -t                 : run syntax check for config files

  -T                 : start without DocumentRoot(s) check

  -X                 : debug mode (only one worker, do not detach)


'Web & WAS > Apache' 카테고리의 다른 글

config test  (0) 2012.10.09
Comments