title: Cannot execute apache2 restart command in ubuntu21.10
body: <p>After I executed the command: <code>sudo systemctl restart apache2</code> in the terminal, it prompted an error:</p>
  <pre><code>Job for apache2.service failed because the control process exited with error code.
  See &quot;systemctl status apache2.service&quot; and &quot;journalctl -xeu apache2.service&quot; for details.
  </code></pre>
  <p>After executing the <code>systemctl status apache2.service</code> command according to the above prompt, I received this prompt:</p>
  <pre><code> × apache2.service - The Apache HTTP Server
           Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor prese&gt;
           Active: failed (Result: exit-code) since Mon 2021-12-20 09:50:13 +06; 9min&gt;
             Docs: https://httpd.apache.org/docs/2.4/
          Process: 14920 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/F&gt;
              CPU: 18ms
  Жел 20 09:50:13 RTT apachectl[14923]: [Mon Dec 20 09:50:13.739503 2021] [alias:&gt;
  Жел 20 09:50:13 RTT apachectl[14923]: AH00558: apache2: Could not reliably dete&gt;
  Жел 20 09:50:13 RTT apachectl[14923]: (98)Address already in use: AH00072: make&gt;
  Жел 20 09:50:13 RTT apachectl[14923]: (98)Address already in use: AH00072: make&gt;
  Жел 20 09:50:13 RTT apachectl[14923]: no listening sockets available, shutting &gt;
  Жел 20 09:50:13 RTT apachectl[14923]: AH00015: Unable to open logs
  Жел 20 09:50:13 RTT systemd[1]: apache2.service: Failed with result 'exit-code'.
  Жел 20 09:50:13 RTT apachectl[14920]: Action 'start' failed.
  Жел 20 09:50:13 RTT apachectl[14920]: The Apache error log may have more inform&gt;
  Жел 20 09:50:13 RTT systemd[1]: Failed to start The Apache HTTP Server.
  </code></pre>
  <p>After executing the <code>journalctl -xeu apache2.service</code> command according to the above prompt, I received this prompt:</p>
  <pre><code>The process' exit code is 'exited' and its exit status is 1.
  Жел 20 09:50:13 RTT apachectl[14923]: [Mon Dec 20 09:50:13.739503 2021] [alias:&gt;
  Жел 20 09:50:13 RTT apachectl[14923]: AH00558: apache2: Could not reliably dete&gt;
  Жел 20 09:50:13 RTT apachectl[14923]: (98)Address already in use: AH00072: make&gt;
  Жел 20 09:50:13 RTT apachectl[14923]: (98)Address already in use: AH00072: make&gt;
  Жел 20 09:50:13 RTT apachectl[14923]: no listening sockets available, shutting &gt;
  Жел 20 09:50:13 RTT apachectl[14923]: AH00015: Unable to open logs
  Жел 20 09:50:13 RTT systemd[1]: apache2.service: Failed with result 'exit-code'.
  ░░ Subject: Unit failed
  ░░ Defined-By: systemd
  ░░ Support: http://www.ubuntu.com/support
  ░░ 
  ░░ The unit apache2.service has entered the 'failed' state with result 'exit-co&gt;
  Жел 20 09:50:13 RTT apachectl[14920]: Action 'start' failed.
  Жел 20 09:50:13 RTT apachectl[14920]: The Apache error log may have more inform&gt;
  Жел 20 09:50:13 RTT systemd[1]: Failed to start The Apache HTTP Server.
  ░░ Subject: A start job for unit apache2.service has failed
  ░░ Defined-By: systemd
  ░░ Support: http://www.ubuntu.com/support
  ░░ 
  ░░ A start job for unit apache2.service has finished with a failure.
  ░░ 
  ░░ The job identifier is 3993 and the job result is failed.
  </code></pre>