Answer for KodeKloud Question - Linux Run Levels

 New tools have been installed on the app server in Stratos Datacenter. Some of these tools can only be managed from the graphical user interface. Therefore, there are requirements for these app servers.

On all App servers in Stratos Datacenter change the default run level so that they can boot in GUI (graphical user interface) by default.

Answer:

# Check the defaut run level     

      systemctl get-default

#Check the graphical.target status 

    systemctl status graphical.target

#Now let set the run level to graphical.target 

    systemctl set-default graphical.target

#start and enable  the graphical.target

    systemctl start graphical.target

    systemctl enable graphical.target

#Now lets check the status again 

    systemctl status graphical.target

    systemctl get-default

* Do the above steps for all other App servers 

Note: ** The question copied for learning purposes.**Commands are correct but based on your question the server and user name, other details might differ so please do check.

No comments:

Post a Comment

Featured Post

Answer for Kodekloud DEVOPS Questions - Init container in Kubernetes

Question: 1. Create a Deployment named as ic-deploy-devops. 2. Configure spec as replicas should be 1 , labels app should be ic-devops , ...