![cockpit集群](https://i-blog.csdnimg.cn/blog_migrate/9e073267a5ebe6a4c0e893f30184ecbf.png)
cockpit集群
Cockpit is a web application that provides easy administration for Linux servers. It is mainly developed for Fedora but other distributions are OK too. Latest Cockpit version is 118 as writing this article.
Cockpit是一个Web应用程序,可轻松管理Linux服务器。 它主要是为Fedora开发的,但其他发行版也可以。 撰写本文时,最新的Cockpit版本是118。
Features:
特征:
- Cockpit provides easy container management 驾驶舱可简化集装箱管理
- Storage administration仓储管理
- Network configuration网络配置
- Inspection of logs etc.检查日志等
- Zero footprint and very little resource consumption.零足迹和极少的资源消耗。
安装驾驶舱 (Installing Cockpit)
We will install cockpit for Fedora 24 but it is similar for other distributions.
我们将为Fedora 24安装座舱,但与其他发行版相似。
$ sudo dnf install cockpit -y
Failed to set locale, defaulting to C
Fedora 24 - x86_64 - Updates 2.0 MB/s | 17 MB 00:08
Last metadata expiration check: 0:00:09 ago on Sat Oct 8 05:51:01 2016.
Dependencies resolved.
启动座舱 (Starting Cockpit)
We can start Cockpit different way but the most easy and convenient way is using systemctl
.
我们可以以不同的方式启动Cockpit,但最简单便捷的方法是使用systemctl
。
# systemctl start cockpit
# systemctl status cockpit
● cockpit.service - Cockpit Web Service
Loaded: loaded (/usr/lib/systemd/system/cockpit.service; static; vendor preset: disabled)
Active: active (running) since Sat 2016-10-08 06:03:17 UTC; 4s ago
Docs: man:cockpit-ws(8)
Process: 5249 ExecStartPre=/usr/sbin/remotectl certificate --ensure --user=root --group=cockpit-ws --selinux-type=etc_t (code=exite
Main PID: 5266 (cockpit-ws)
Tasks: 2 (limit: 512)
Memory: 5.5M
CPU: 168ms
CGroup: /system.slice/cockpit.service
└─5266 /usr/libexec/cockpit-ws
Oct 08 06:03:16 poftut3 systemd[1]: Starting Cockpit Web Service...
Oct 08 06:03:16 poftut3 remotectl[5249]: Generating temporary certificate using: openssl req -x509 -days 36500 -newkey rsa:2048 -keyo
Oct 08 06:03:17 poftut3 remotectl[5249]: /usr/bin/chcon: can't apply partial context to unlabeled file '/etc/cockpit/ws-certs.d/0-sel
Oct 08 06:03:17 poftut3 remotectl[5249]: remotectl: couldn't change SELinux type context 'etc_t' for certificate: /etc/cockpit/ws-cer
Oct 08 06:03:17 poftut3 systemd[1]: Started Cockpit Web Service.
Oct 08 06:03:17 poftut3 cockpit-ws[5266]: Using certificate: /etc/cockpit/ws-certs.d/0-self-signed.cert
We started Cockpit with systemctl start cockpit
and we checked status of the Cockpit service with systemctl status cockpit
. Ok There seems to be no problem.
我们使用systemctl start cockpit
启动Cockpit,并使用systemctl status cockpit
Cockpit服务的systemctl status cockpit
。 好的,似乎没有问题。