Managing Services with systemctl

Managing Services with systemctl

systemctl is the standard tool for managing services on modern Linux distributions.

Check Service Status

systemctl status nginx

Start a Service

systemctl start nginx

Stop a Service

systemctl stop nginx

Restart a Service

systemctl restart nginx

Enable a Service to Start at Boot

systemctl enable nginx

Disable a Service from Starting at Boot

systemctl disable nginx

View All Running Services

systemctl list-units --type=service --state=running

Replace nginx with any service name (e.g., apache2, mysql, ssh).

  • 0 Корисниците го најдоа ова како корисно
Дали Ви помогна овој одговор?

Понудени резултати

Managing Users and Groups

Managing Users and Groups on Linux Proper user management is essential for server security. Avoid...

Monitoring Server Resources

Monitoring Server Resources Keeping an eye on your server's resource usage helps you identify...

Scheduling Tasks with Cron

Scheduling Tasks with Cron Cron allows you to schedule commands to run automatically at set...

Installing and Configuring Nginx

Installing and Configuring Nginx Nginx is a high-performance web server and reverse proxy widely...

Installing and Configuring Apache

Installing and Configuring Apache Apache is the world's most widely deployed web server, known...