【Linux】使用Cockpit进行主机管理
2024-08-30 03:35:13
Cockpit 进行主机监控
版本信息
针对Red Hat
[root@master ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.3 (Maipo)
安装步骤
sudo subscription-manager repos --enable rhel-7-server-extras-rpms
sudo yum install cockpit
sudo systemctl enable --now cockpit.socket
在okd集群环境中使用
查询组件
[root@master cockpit]# yum makecache fast
[root@master cockpit]# yum search cockpit
已加载插件:fastestmirror, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Loading mirror speeds from cached hostfile
========================================================================== N/S matched: cockpit ==========================================================================
cockpit-bridge.x86_64 : Cockpit bridge server-side component
cockpit-composer.noarch : Composer GUI for use with Cockpit
cockpit-dashboard.x86_64 : Cockpit remote servers and dashboard
cockpit-doc.x86_64 : Cockpit deployment and developer guide
cockpit-docker.x86_64 : Cockpit user interface for Docker containers
cockpit-kdump.noarch : Cockpit user interface for kernel crash dumping
cockpit-kubernetes.x86_64 : Cockpit user interface for Kubernetes cluster
cockpit-machines.x86_64 : Cockpit user interface for virtual machines
cockpit-machines-ovirt.noarch : Cockpit user interface for oVirt virtual machines
cockpit-networkmanager.noarch : Cockpit user interface for networking, using NetworkManager
cockpit-packagekit.x86_64 : Cockpit user interface for package updates
cockpit-pcp.x86_64 : Cockpit PCP integration
cockpit-selinux.noarch : Cockpit SELinux package
cockpit-sosreport.noarch : Cockpit user interface for diagnostic reports
cockpit-storaged.noarch : Cockpit user interface for storage, using udisks
cockpit-subscriptions.noarch : Cockpit subscription user interface package
cockpit-system.noarch : Cockpit admin interface package for configuring and troubleshooting a system
cockpit-tests.x86_64 : Tests for Cockpit
cockpit-ws.i686 : Cockpit Web Service
cockpit-ws.x86_64 : Cockpit Web Service
subscription-manager-cockpit.noarch : Subscription Manager Cockpit UI
cockpit.x86_64 : A user interface for Linux servers
安装
# 只能做管理, 无法做预警
# cockpit + k8s: https://access.redhat.com/solutions/2206041
# 改端口: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html-single/getting_started_with_cockpit/index#changing_the_cockpit_port
sudo yum install -y cockpit cockpit-docker cockpit-kubernetes cockpit-dashboard
sudo systemctl start cockpit
sudo systemctl enable cockpit
# https://localhost:9090
# 分发密匙
# ssh-copy-id -i /root/.ssh/id_rsa root@node
最新文章
- KETTLE实现数据的删除和更新
- 一次莽撞的行为:在phpmyadmin中修改MySQL root密码后无法操作数据库
- SqlServer2008R2附件数据库失败
- oracle 大字段clob检索
- Incorrect string value: '\xF0\xA1\xA1\x92' for column 'herst' at row 1
- IOS 改变导航栏返回按钮的标题
- Machine Learning for hackers读书笔记(二)数据分析
- poj 2409(polya定理模板)
- Spark RDD/Core 编程 API入门系列 之rdd案例(map、filter、flatMap、groupByKey、reduceByKey、join、cogroupy等)(四)
- 关于C语言指针的问题
- mysql中如何更新一个字段的值为它本身的值连接上一个字符串
- 【 D3.js 入门系列 --- 10.2 】 你可以拖动地图
- RF接口测试本地环境部署
- Ioc在重构代码中的应用
- 基于spark和sparkstreaming的word2vec
- http常见状态码(转载)
- JUnit4测试出错(一)
- 解决IE8下CSS3选择器 :nth-child() 不兼容的问题
- CSS的应用下
- SHELL脚本--expr命令全解