Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to start the Elasticsearch service using systemctl.
Elasticsearch
sudo systemctl [1] elasticsearch Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'enable' instead of 'start' will not start the service immediately.
Using 'stop' will turn off the service, which is the opposite of starting.
✗ Incorrect
The start command launches the Elasticsearch service immediately.
2fill in blank
mediumComplete the command to check the status of the Elasticsearch service.
Elasticsearch
sudo systemctl [1] elasticsearch Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'restart' will restart the service instead of showing status.
Using 'stop' will stop the service, which is not checking status.
✗ Incorrect
The status command shows if Elasticsearch is running or stopped.
3fill in blank
hardFix the error in the command to install Elasticsearch on Debian-based systems.
Elasticsearch
sudo apt-get [1] elasticsearch Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'remove' deletes packages instead of installing.
Using 'update' refreshes package lists but does not install.
✗ Incorrect
The install command installs new packages like Elasticsearch.
4fill in blank
hardFill both blanks to create a user and group for Elasticsearch.
Elasticsearch
sudo [1] elasticsearch && sudo [2] elasticsearch
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Creating the user before the group can cause errors.
Using 'usermod' or 'groupmod' modifies existing users/groups, not create.
✗ Incorrect
First, create the group with groupadd, then create the user with useradd.
5fill in blank
hardFill all three blanks to configure Elasticsearch to start on boot and verify it.
Elasticsearch
sudo systemctl [1] elasticsearch && sudo systemctl [2] elasticsearch && sudo systemctl [3] elasticsearch
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Starting before enabling means it won't start on boot.
Checking status before starting shows it stopped.
✗ Incorrect
First, enable sets Elasticsearch to start on boot, then start runs it now, and status checks if it is running.