COMPUTER SCIENCE AND ENGINEERING
CLOUD COMPUTING
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Service
|
|
System
|
|
Start
|
|
Systemctl
|
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.