skip to Main Content

when I try to restart the apache server I got following response.

Redirecting to /bin/systemctl start apache2.service

Failed to start apache2.service: Unit not found.

2

Answers


  1. You are using different service of apache.

    run this if you are using the same service.

    systemctl restart httpd
    

    or

    apachectl restart
    
    Login or Signup to reply.
  2. If you are using latest Linux try following
    – Check your service name using following command

     # systemctl list-units --type service 
    

    Above command will list all the services, find the right service name you want to restart
    – use following to restart or reload service
    e.g I use my restart service httpd24-httpd.service

    # systemctl restart httpd24-httpd.service
    or # systemctl reload httpd24-httpd.service
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search