0
0
Nginxdevops~10 mins

Starting, stopping, and reloading in Nginx - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the command to start the nginx service.

Nginx
sudo systemctl [1] nginx
Drag options to blanks, or click blank then click option'
Astart
Breload
Cstop
Drestart
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.
2fill in blank
medium

Complete the command to stop the nginx service.

Nginx
sudo systemctl [1] nginx
Drag options to blanks, or click blank then click option'
Areload
Benable
Cstop
Dstart
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.
3fill in blank
hard

Fix 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'
Areload
Bstop
Cstart
Ddisable
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'stop' will interrupt the service.
Using 'start' will not reload the configuration if service is running.
4fill in blank
hard

Fill 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'
Arestart
Breload
Cstatus
Dstop
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.
5fill in blank
hard

Fill 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'
Areload
Bstatus
Cenable
Dstop
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'stop' will turn off nginx instead of enabling it.
Checking status before reload may show old state.