DEV Community

Cover image for How to Install Cockpit on CentOS 7
Mohammad Zakery
Mohammad Zakery

Posted on • Edited on

How to Install Cockpit on CentOS 7

Cockpit is available in CentOS 7 and later :

1.Install cockpit :

sudo yum install cockpit
Enter fullscreen mode Exit fullscreen mode

2.Enable cockpit :

sudo systemctl enable --now cockpit
Enter fullscreen mode Exit fullscreen mode

3.Open up your web browser and login with root :

https://IP_ADDRESS_OF_MACHINE:9090
Enter fullscreen mode Exit fullscreen mode

4.it did not work? you can open up the firewall with the following commands :
‍‍‍

sudo firewall-cmd --permanent --zone=public --add-service=cockpit
sudo firewall-cmd --reload
Enter fullscreen mode Exit fullscreen mode

5.Use the following code to connect to virtual machines :

sudo apt install cockpit-machines
Enter fullscreen mode Exit fullscreen mode

Top comments (0)