MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

CLOUD COMPUTING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
The command to start any service in Amazon Linux is ____
A
Service
B
System
C
Start
D
Systemctl
Explanation: 

Detailed explanation-1: -systemctl command doesn’t work inside of amazonlinux:latest container.

Detailed explanation-2: -Now open the browser and enter http://ec2-ip or http://ec2-url you will see the default page. Enter the command “systemctl enable httpd” and then “systemctl start httpd” on AmazonLinux2. Now you can access the app on boot rather than running the app again and again. You are complete.

Detailed explanation-3: -To start a systemd service, executing instructions in the service’s unit file, use the start command. If you are running as a non-root user, you will have to use sudo since this will affect the state of the operating system: sudo systemctl start application .service.

Detailed explanation-4: -The systemctl command manages both system and service configurations, enabling administrators to manage the OS and control the status of services. Further, systemctl is useful for troubleshooting and basic performance tuning.

There is 1 question to complete.