We will send you Latest technology Updates, Tips, Software How to's,. Enter your email address :

May 20, 2012

How to start and stop services in Linux/Ubuntu

Steps to start and stop services in Linux/Ubuntu

linuxIf you change a configuration file for a system service, it is usually necessary to stop and restart the service to make it read the new configuration. If you are reconfiguring the X server, it is often convenient to change from runlevel 2 to runlevel 1 to make testing easier and then switch back to runlevel 2 to re-enable the graphical login. If a service is improperly configured, it is easier to stop and restart it until you have it configured correctly than it is to reboot the entire machine.

The traditional way to manage a service (as root) is to call the service’s /etc/init.d name on the command line with an appropriate keyword, such as start, status, or stop. For example, to start the Apache web server, call the /etc/init.d/apache2 script like this:

sudo /etc/init.d/apache2 start

Starting apache 2.2 web server

The script will execute the proper program(s) and report the status of it. Stopping services is equally easy, using the stop keyword.

About

He is a chief evangelist of Tech-bit-N-Byte, He is an IT Pro, and full time blogger, He is the man behind the Nerdy Geeks and Growing Nerds. Always tailored in innovating something new..!!! Click to know more.
| More Posts
Follow me on : Facebook --- Twitter --- Google+
Contact : Email

Speak Your Mind

*