A system administrator has just installed the nginx web server package on a Linux server that uses systemd. The administrator needs to start the web server immediately to test its configuration, but does not want it to automatically restart upon the next system boot. Which of the following commands should the administrator use?
The correct command is systemctl start nginx. This command starts the specified service unit immediately in the current session. The systemctl enable nginx command would configure the service to start automatically at boot by creating symbolic links, but it does not start the service in the current session. The systemctl activate nginx and systemctl begin nginx commands are incorrect because activate and begin are not valid subcommands for starting a service with systemctl.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the difference between `systemctl start` and `systemctl enable`?
Open an interactive chat with Bash
What does `systemctl` do in Linux?
Open an interactive chat with Bash
What are some common `systemctl` commands a Linux administrator should know?
Open an interactive chat with Bash
CompTIA Linux+ XK0-006 (V8)
Services and User Management
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access