What are the steps taken to start and stop the services running on a linux server?
Please suggest me some detailed steps.
What are the steps taken to start and stop the services running on a linux server?
Please suggest me some detailed steps.
In linux servers, two different types of programs run, the ones that run tasks in the background are generally called as "Services" and "daemons". Many services are required to run the background like DB server, firewall, dns system, etc... and because of those services, it is very necessary to know the exact steps to start and stop the services running the background.
It is possible that the process of starting and stopping the services may change according to the linux distributions.
The services running on the Linux server can be started and stopped using two different methods. Follow the steps given below:
Before you start or stop any service, you should check the status of the service by entering the following commands:
Checking Service Status:
Method One:
/etc/init.d/service-name status
Method Two:
service service-name status
Starting a Service:
Method One:
/etc/init.d/service-name start
Method Two:
service service-name start
Stopping a Service:
Method One:
/etc/init.d/service-name stop
Method Two:
service service-name stop
Bookmarks