How to start service automatically after reboot + Linux
Many time we have to restart few services after reboot. So we manually login to the server and then start the service manually every time the server reboot.
To avoid this manual intervention, we can run below commands to run any service (eg. Httpd) automatically after reboot.
Many time we have to restart few services after reboot. So we manually login to the server and then start the service manually every time the server reboot.
To avoid this manual intervention, we can run below commands to run any service (eg. Httpd) automatically after reboot.
This we can called as simple kind of automation :)
Commands:
- #systemctl status httpd à to checke status of httpd service. The status disabled shows that the service is not configured to start on boot.
- #systemctl enable
httpd - to enable httpd service to start after boot
- #systemctl status httpd - Recheck the httpd service, The status enabled will start service after boot.
No comments:
Post a Comment