U S I N G A N D A B U S I N G S E R V I C E S




Download 7,3 Mb.
Pdf ko'rish
bet123/125
Sana14.05.2024
Hajmi7,3 Mb.
#232858
1   ...   117   118   119   120   121   122   123   124   125
Bog'liq
linuxbasicsforhackers

12
U S I N G A N D A B U S I N G S E R V I C E S
In Linux terminology, a service is an appli-
cation that runs in the background wait-
ing for you to use it. Your Linux system has 
dozens of services preinstalled. Of these, the 
most well known is the ubiquitous Apache Web Server, 
which is used for creating, managing, and deploying 
web servers, but there are so many more. For the pur-
poses of this chapter on services, I have selected just 
four that are of particular importance to the hacker: 
Apache Web Server, OpenSSH, MySQL/MariaDB, 
and PostgreSQL.
In this chapter, you’ll learn how to set up a web server with Apache, 
physically spy with OpenSSH, access data with MySQL/MariaDB, and store 
your hacking information with PostgreSQL


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 >

Download 7,3 Mb.
1   ...   117   118   119   120   121   122   123   124   125




Download 7,3 Mb.
Pdf ko'rish

Bosh sahifa
Aloqalar

    Bosh sahifa



U S I N G A N D A B U S I N G S E R V I C E S

Download 7,3 Mb.
Pdf ko'rish