122
Chapter 12
Starting, Stopping, and Restarting Services
Before we begin to work with these four crucial services, let’s start by exam-
ining
how to start, stop, and restart services in Linux.
Some services can be stopped and started via the GUI in Kali Linux,
much as you would on an operating system like Windows or Mac. However,
some services require use of the
command line, which we’ll look at here.
Here is the basic syntax for managing services:
service
servicename start|stop|restart
To start the apache2 service (web server or HTTP service), you would
enter the following:
kali >
service apache2 start
To
stop the Apache web server, enter:
kali >
service apache2 stop
Usually, when you make a configuration change to an application
or service by altering its plaintext configuration file, you need to restart
the
service to capture the new configuration. Thus, you would enter the
following:
kali >
service apache2 restart
Now that you understand how to start, stop, and restart services from
the command line, let’s move on to the four most critical Linux services to
hackers.
Do'stlaringiz bilan baham: