. WIKIMERIONET
Merion Mertics , ,

-
-
CRM

, Linux

Start - Stop - Restart - Reload

3

Linux systemd systemctl. , , , . Debian, CentOS Ubuntu, , , systemd.

 ,      Linux

, , Linux.


systemctl

systemctl:

systemctl [command] [service_name]

, sudo.


, Linux

, , :

sudo systemctl status SERVICE_NAME	

SERVICE_NAME .

- Apache.

: Ubuntu Debian Apache apache2. CentOS RedHat Apache httpd httpd.service
sudo systemctl status apache2

Apache. , (), :

status

Linux, :

sudo systemctl restart SERVICE_NAME

SERVICE_NAME - .

. status

Apache :

sudo systemctl restart apache2
restart

, :

sudo systemctl reload SERVICE_NAME

status .

Apache, :

sudo systemctl reload apache2
reload

Linux , :

sudo systemctl start SERVICE_NAME

, Apache:

sudo systemctl start apache2

Linux, :

sudo systemctl stop SERVICE_NAME

sudo systemctl stop apache2

, status. , - inactive (dead)

stop

, :

sudo systemctl enable SERVICE_NAME

Apache , :

sudo systemctl enable apache2
enable

:

sudo systemctl disable SERVICE_NAME

:

sudo systemctl disable apache2

?


: