
From cockpit-project.org, Cockpit is a web-based graphical interface for servers, intended for everyone, especially those who are:
- new to Linux (including Windows admins)
- familiar with Linux and want an easy, graphical way to administer servers
- expert admins who mainly use other tools but want an overview on individual systems
Thanks to Cockpit intentionally using system APIs and commands, a whole team of admins can manage a system in the way they prefer, including the command line and utilities right alongside Cockpit.
Why Cockpit?
- It’s Simple to use, Cockpit makes Linux discoverable.
- Compatible with your existing workflows, Cockpit uses the same system tooling you would use from the command line.
- Integrated, Cockpit uses APIs that already exist on the system
- Extendable, Cockpit also supports a large list of optional and third-party applications.
You can check more about Cockpit on their website on https://cockpit-project.org/
How To Install Cockpit
yum install cockpit -y
#Additional package
yum install cockpit-packagekit
yum install cockpit-storaged
yum install https://github.com/45Drives/cockpit-navigator/releases/download/v0.5.10/cockpit-navigator-0.5.10-1.el7.noarch.rpm
Then enable cockpit on start up and start cockpit with command:
systemctl enable cockpit.socket
systemctl start cockpit
Cockpit listen on Port 9090. You can open browser and go to https://server_ip:9090.
If you want Cockpit available from network, you need to open IP Tables or Firewalld.
firewall-cmd --add-service=cockpit
firewall-cmd --add-service=cockpit --permanent
firewall-cmd --reload
But, it is not secure. There are many brute force bot will attack your server. Better we run with nginx.
One thought on “How to install Cockpit on CentOS 7 / CentOS 9 Stream and configure Nginx reserve proxy”