If httpd and msql service do not start with system boot (cannot access localhost or local httpd server or mysql), it is probably because the services are disabled.
Getting to know current status of services
To get status of the services, we would have to use systemctl.> sudo systemctl list-unit-files | grep httpd
> sudo systemctl list-unit-files | grep mysqldThe output would show the current status of service. If any of the service is desabled, it means that we would have to manually start it each time we login.
Enabling services
To enable a service, we can use systemctl (linux service manager).
> sudo systemctl enable httpd.service
> sudo systemctl enable mysqld.service
No comments:
Post a Comment