CentOS 8.x cockpit install and enable

From Notes_Wiki
Revision as of 07:00, 9 February 2021 by Saurabh (talk | contribs) (Created page with "<yambe:breadcrumb self="cockpit install and enable">CentOS 8.x cockpit|cockpit</yambe:breadcrumb> =CentOS 8.x cockpit install and enable= We can install and enable cockpit on...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<yambe:breadcrumb self="cockpit install and enable">CentOS 8.x cockpit|cockpit</yambe:breadcrumb>

CentOS 8.x 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:



<yambe:breadcrumb self="cockpit install and enable">CentOS 8.x cockpit|cockpit</yambe:breadcrumb>