SóProvas


ID
2353150
Banca
FCC
Órgão
TRT - 11ª Região (AM e RR)
Ano
2017
Provas
Disciplina
Sistemas Operacionais
Assuntos

Para instalar o Apache HTTP Server como um serviço no Windows entra-se no diretório bin do Apache, a partir do prompt de comando do Windows, e digita-se

Alternativas
Comentários
  • Letra C.

    Ou seja, basta digitar o comando "httpd −k install" dentro do diretório bin, no prompt de comando.

    Dessa forma será criado o nome padrão.

    Para iniciar o serviço basta executar em seguida "httpd −k start".

     

    " If you use the first command without any special parameters except -k install, the service will be called Apache2.4 and the configuration will be assumed to be conf\httpd.conf. "

    Fonte: https://httpd.apache.org/docs/2.4/platform/windows.html#winsvc

  • You can install Apache as a Windows NT service as follows from the command prompt at the Apache bin subdirectory:

    httpd.exe -k install

    If you need to specify the name of the service you want to install, use the following command. You have to do this if you have several different service installations of Apache on your computer. If you specify a name during the install, you have to also specify it during any other -k operation.

    httpd.exe -k install -n "MyServiceName"

    If you need to have specifically named configuration files for different services, you must use this:

    httpd.exe -k install -n "MyServiceName" -f "c:\files\my.conf"

     

    Fonte:

    https://httpd.apache.org/docs/2.4/platform/windows.html#winsvc