Mar 23, 2008

Restarting Services on a Linux server from command line

eLearning Series

by

If you have a slow server, sometimes restarting these services from the command line can clear up all of the issues.

Here’s the easy process: Please use caution when doing this… you could break things if you’re not careful.

Log into the command line via SSH, and then type in each of these commans and press enter. The system will display information on restarting the services on the Linux command line: /etc/rc.d/init.d/sendmail restart /etc/rc.d/init.d/xinetd restart

/etc/rc.d/init.d/syslog restart /etc/rc.d/init.d/poprelay restart /etc/rc.d/init.d/named restart

/etc/rc.d/init.d/mysqld restart /etc/rc.d/init.d/httpd restart /etc/rc.d/init.d/webppliance restart

/etc/rc.d/init.d/MailScanner restart /etc/rc.d/init.d/proftpd restart

Please use caution when doing this… you could break things if you’re not careful.