Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the command to start the nginx service.
Nginx
sudo systemctl [1] nginx Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'stop' instead of 'start' will turn off the service.
Using 'reload' does not start the service if it is stopped.
✗ Incorrect
The start command tells systemctl to start the nginx service.
2fill in blank
mediumComplete the command to stop the nginx service.
Nginx
sudo systemctl [1] nginx Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'start' will turn on the service instead of stopping it.
Using 'reload' only refreshes the service without stopping it.
✗ Incorrect
The stop command tells systemctl to stop the nginx service.
3fill in blank
hardFix the command to reload nginx configuration without stopping the service.
Nginx
sudo systemctl [1] nginx Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'stop' will interrupt the service.
Using 'start' will not reload the configuration if service is running.
✗ Incorrect
The reload command tells systemctl to reload the nginx configuration without stopping the service.
4fill in blank
hardFill both blanks to restart nginx and check its status.
Nginx
sudo systemctl [1] nginx && sudo systemctl [2] nginx
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'reload' instead of 'restart' may not apply all changes.
Using 'stop' before 'status' will show service as inactive.
✗ Incorrect
restart stops and starts nginx to apply changes, and status shows if nginx is running.
5fill in blank
hardFill all three blanks to reload nginx, then check its status and enable it to start on boot.
Nginx
sudo systemctl [1] nginx && sudo systemctl [2] nginx && sudo systemctl [3] nginx
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'stop' will turn off nginx instead of enabling it.
Checking status before reload may show old state.
✗ Incorrect
This sequence reloads nginx configuration, checks if nginx is running, and enables nginx to start automatically on system boot.