cockpit集群_Linux的Cockpit Easy和基于Web的管理

cockpit集群

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 。 好的,似乎没有问题。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值