In general, for Linux dedicated servers, there are two different types of programs running, one that requires user interaction and the other that performs tasks without user involvement. Programs running in the background are commonly known as "services" and "daemons" processes.

On servers there are many services running in the background, such as DB Server, Firewall, Web Server, DNS System, Mail Server, etc ... Due to the diversity of these services, it is very important to know the exact procedure of starting, stopping and restarting them.

The procedure of starting, stopping and restarting the services can be modified according to the Linux distributions. We recommend that you consider the following information for starting, stopping, and restarting services on CentOS dedicated servers.

There are two different methods by which you can start, stop and restart any desired service:

 

START a service

First method:

/etc/init.d/service-name start

Second method:

service service-name start

 

STOP a service

First method:

/etc/init.d/service-name stop

Second method:

service service-name stop

 

How to check the STATUS of a service (if it works or not)?

First method:

/etc/init.d/service-name status

Second method:

service service-name status

 

RESTART a service on a dedicated server

First method:

/etc/init.d/service-name restart

Second method:

service service-name restart

Some services may require additional command settings. To find the available ones, execute:

First method:

/etc/init.d/rsync [start, stop, reload, force-reload, restart, status]

Second method:

service rsync

 

For assistance in applying the above instructions on the HostX servers, please contact us. HostX offers the best Linux hosting and can assist you in solving your problems.

Byla tato odpověď nápomocná? 0 Uživatelům pomohlo (0 Hlasů)