CentOS 8 Essentials
上QQ阅读APP看书,第一时间看更新

7.2 Installing and Enabling Cockpit

Cockpit is generally not installed on CentOS 8 by default, but can be set up and enabled in a few simple steps. The first step is to install the Cockpit package as follows:

# dnf install cockpit

Next, the Cockpit socket service needs to be enabled:

# systemctl enable --now cockpit.socket

Finally, the necessary ports need to be opened on the firewall to allow remote browser connections to reach Cockpit:

# firewall-cmd --add-service=cockpit --permanent

# firewall-cmd --reload