# Cockpit管理工具

## 安裝cockpit

```
apt install cockpit cockpit-dashboard cockpit-docker cockpit-packagekit cockpit-storaged cockpit-networkmanager
```

修改IP

![](/files/-LrWhVhIHMb6prtdn9hN)

![](/files/-LrWmLM0tOHsW1E2gHxu)

修改hostname<img src="https://blobscdn.gitbook.com/v0/b/gitbook-28427.appspot.com/o/assets%2F-Lh81JtaIQ84bwQqz_Wh%2F-LrWmj_j2PljO4zSmS-b%2F-LrWmoI40sap_EcOW1mF%2Fimage.png?alt=media&#x26;token=b29de7b5-64de-4ac0-8f8c-507045f8f9da" alt="" data-size="original">

## 如何添加遠端主機&#x20;

我們必須在所有遠端Linux服務器上安裝Cockpit，以便進行監視。轉到>>DashBoard>>輸入遠程服務器IP >>Add，它將使用系統默認的登錄詳細信息自動將遠程服務器添加到cockpit中。

![](/files/-LrX-m7QF2KvfDTNpFr7)

![](/files/-LrX0-9TekH5VQ6mg5C5)

![](/files/-LrX0KT2iRWoRgBf3Nj0)

![](/files/-LrX0l0H7T784a3gFO4k)

```
#在 node1 主機
ssh-keygen
ssh-copy-id root@10.99.0.2
ssh-copy-id root@10.99.0.3
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://kawsing.gitbook.io/opensystem/andoid-shou-ji/pomoxve/xu-ni-ji-shi-zhan-ying-yong-jian-gou-ceph-chu-cun-cong-ji/untitled.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
