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

7.17 Connecting to Multiple Servers

Cockpit can be configured to administer multiple servers from within a single session. This requires that the Cockpit dashboard be installed on the primary system (in other words the system to which the initial Cockpit session will be established) To install the Cockpit dashboard package, run the following command:

# dnf install cockpit-dashboard

Once the dashboard has been installed, sign out of Cockpit and then sign in again. The dashboard will now appear in the Cockpit interface as highlighted in Figure 7-15:

Figure 7-15

When selected, the dashboard page will display performance graphs for the current system and provide a list of currently connected systems:

Figure 7-16

To add another system, click on the + button highlighted in Figure 7-16 above, enter the IP address or host name of the other system and select a color by which to distinguish this server from any others added to Cockpit before clicking on the Add button:

Figure 7-17

Enter the user name and password to be used when connecting to the other system, then click on the log in button. The newly added server will now be listed in the Cockpit dashboard and will appear in graphs represented by the previously selected color:

Figure 7-18

To switch between systems when using Cockpit, simply use the drop down menu shown in Figure 7-19 below:

Figure 7-19