Web Hosting Main Forums > cPanel/WHM

Commands to restart services on Linux server

(1/2) > >>

Kailash:
Hi,

Some commands to restart services on Linux server:

DNS start/restart/stop/check current status:
starting: /etc/rc.d/init.d/named start
stopping: /etc/rc.d/init.d/named stop
restarting: /etc/rc.d/init.d/named restart
check status: /etc/init.d/named status

Restart/Start/stop MySQL:
/etc/init.d/mysql start
/etc/init.d/mysql stop
/etc/init.d/mysql restart

Start/Stop Spamassassin:
/etc/init.d/spamassassin start
/etc/init.d/spamassassin stop

Regards,

Kailash

digitalpoint:
Really useful commands. Thanks for sharing this!!

Digitalpoint

kvchosting:
if you want to restart all cpanel services

run service cpanel restart

/scripts/restartsrv_http   this is for apache

/etc/init.d/named reload  remember named should not be restarted it needs to be reloaded.


webhosting.am:
adorable information, thanks

brainpulse:
thanks,

interesting commands, This will helpful in reseller a/c........

Navigation

[0] Message Index

[#] Next page

Go to full version