CentOS 8.x cockpit install and enable

From Notes_Wiki

Home > CentOS > CentOS 8.x > System Administration > cockpit > Install and enable

We can install and enable cockpit on CentOS 8.x using:

  1. Install cockpit packages:
    dnf -y install cockpit
  2. Enable cockpit socket in systemctl
    systemctl enable cockpit.socket
    systemctl start cockpit.socket
  3. Allow cockpit port (TCP/9090) in firewall
    firewall-cmd --add-service=cockpit --permanent
    firewall-cmd --reload
  4. Now it should be possible to connect on https://<ip-or-fqdn>:9090/ and login as root user to use cockpit

Note:

  • There is also cockpit.service apart from cockpit.socket. The above steps are for starting and enabling cockpit.socket
  • There is option to collect metrics and store them for historical graphs (CPU, Disk, Memory, etc.). This requires installing cockpit-pcp package
    yum -y install cockpit-pcp
    After this enable "Store metrics" option from cockpit web UI


Refer:



Home > CentOS > CentOS 8.x > System Administration > cockpit > Install and enable