• Welcome to Web Hosting Community Forum for Webmasters - Web hosting Forum.
 

Recommended Providers

Fully Managed WordPress Hosting
lc_banner_leadgen_3
Fully Managed WordPress Hosting

WordPress Theme

Divi WordPress Theme
WPZOOM

Recent Topics

Forum Membership

Forum Membership

Commands to restart services on Linux server

Started by Kailash, July 21, 2009, 10:22:54 AM

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


brainpulse

thanks,

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

Mike_GoDaddy

A single command that I use to quickly check the status of all services on a box is:

service --status-all

This lists all services on the box and their current status. 
Mike
Go Daddy® Hosting Ambassador

pwhjenny

Hi,

There are following ways available to restart services on your cpanel/WHM server (Example of httpd service)

From SSH

1. /etc/init.d/httpd restart

2. /scripts/restartsrv_httpd

3. service httpd restart

From WHM

WHM >> Restart services >> http server.

---------------------------
Jenny - PrewebHost Managed Hosting Solutions.
cPanel, Windows Shared, Reseller & Dedicated server Hosting.
99.9% Uptime | 24x7x365 Friendly Support | USA Datacenter
http://www.prewebhost.com - Since 2010

Steve Smith

Yes its really helpful and useful..Thanks for the post..

kumkum

Thanks for the amazing information.... Commands are the difficult to learn and search and i am new in this field and by reading this i am happy to read and run all these commands on Linux server.