我要评分
获取效率
正确性
完整性
易理解

Starting Apache

  1. Check the log generation directory before the startup.
    ll /usr/local/apache2/logs/

    If you installed Apache in RPM mode on CentOS 8.1, run the following command:

    ll /var/log/httpd
  2. Start Apache.
    1
    /usr/local/apache2/bin/httpd -f /usr/local/apache2/conf/httpd.conf -k start
    

    If you installed Apache in RPM mode on CentOS 8.1, run the following command:

    systemctl start httpd
    ll /var/log/httpd