Restarting Linux Services using Command Line

Wednesday, March 1, 2017

Restarting Linux Services using Command Line:-


How to restart some listed services using command line in Linux/Centos/Ubuntu Server.

Lot of Services Example here.

1. Plesk Control Panel
    You can restart the Plesk interface by logging into your server using SSH & using the following command.

   etc/init.d/sw-cp-server restart


2. Email Services
   You can restart the email service by running the following commands.

   1) Restart qmail

     etc/init.d/qmail restart

   2) Restart Postfix 

       postfix stop
       postfix start

    3) Restart IMAP

      /etc/init.d/courier-imap stop
      /etc/init.d/courier-imap start


3. Webservices
    You can restart your webservices like httpd/apache2 by using the following command.

    1) Ubuntu

       /etc/init.d/apache2 restart

    2) CentOS

       /etc/init.d/httpd restart


4. DNS Services
    IF your websites are not being displayed, subdomains not displaying, issues with IPv4 and IPv6 address or getting error messages relating to dnsmg. You can restart your DNS services by running the following command.

    /etc/init.d/bind9 restart


5. MySQL database Services
    you can restart the service by using the following command.

   /etc/init.d/mysql restart


6. Unsure what service to reset?
      The following command will restart several services together.

     /etc/init.d/psa restart

0 comments:

About This Blog

Lorem Ipsum

  © Copyright 2009 Linux-HelpLine.Blogspot.com

Back to TOP