SóProvas


ID
2995054
Banca
FCC
Órgão
SEMEF Manaus - AM
Ano
2019
Provas
Disciplina
Sistemas Operacionais
Assuntos

Um programador deseja reiniciar o Servidor HTTP Apache Versão 2.4 de forma que os visitantes ativos do site possam concluir os downloads em andamento antes de o servidor ser reiniciado. Para isso deve usar o comando

Alternativas
Comentários
  • apachectl is a front end to the Apache HyperText Transfer

       Protocol (HTTP) server. It is designed to help the adminis-

       trator control the functioning of the Apache httpd daemon.

    Gracefully restarts the Apache daemon by sending

             it a SIGWINCH. If the daemon is not running, it

             is started. This differs from a normal restart

             in that currently open connections are not

             aborted. A side effect is that old log files

             will not be closed immediately. This means that

             if used in a log rotation script, a substantial

             delay may be necessary to ensure that the old

             log files are closed before processing them.

             This command automatically checks the configura-

             tion files via configtest before initiating the

             restart to make sure Apache doesn't die.

  • O parâmetro -k envia um sinal de "graceful". Ou seja, os processos filhos, que não tiverem atendendo a alguma requisição, serão mantidos e os que não estão atendendo no momento serão reiniciados. Isso difere de uma reinicialização normal em que as conexões atualmente abertas não são abortadas.

  • A minha lógica para resolver, eu sei que o apachectl(/etc/init.d/apache) é para comandos, então eliminamos quase todas as questões, exceto a A e B, agora temos que entender que o restart mata o servidor e recomeça e o graceful recarrega os módulos sem reiniciar.