惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

酷 壳 – CoolShell
酷 壳 – CoolShell
H
Hacker News: Front Page
P
Palo Alto Networks Blog
T
ThreatConnect
Apple Machine Learning Research
Apple Machine Learning Research
博客园_首页
T
True Tiger Recordings
P
Privacy & Cybersecurity Law Blog
B
Blog
IT之家
IT之家
Last Week in AI
Last Week in AI
F
Full Disclosure
Hacker News: Ask HN
Hacker News: Ask HN
C
Comments on: Blog
Microsoft Azure Blog
Microsoft Azure Blog
C
Cybersecurity and Infrastructure Security Agency CISA
Microsoft Security Blog
Microsoft Security Blog
博客园 - 【当耐特】
N
News and Events Feed by Topic
NISL@THU
NISL@THU
腾讯CDC
雷峰网
雷峰网
Security Latest
Security Latest
李成银的技术随笔
M
Microsoft Research Blog - Microsoft Research
L
LangChain Blog
L
Lohrmann on Cybersecurity
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
C
Check Point Blog
Y
Y Combinator Blog
Recent Announcements
Recent Announcements
博客园 - Franky
N
News | PayPal Newsroom
V
V2EX
A
About on SuperTechFans
The Register - Security
The Register - Security
月光博客
月光博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Google Online Security Blog
Google Online Security Blog
MyScale Blog
MyScale Blog
Cisco Talos Blog
Cisco Talos Blog
Vercel News
Vercel News
WordPress大学
WordPress大学
C
Cyber Attacks, Cyber Crime and Cyber Security
The Hacker News
The Hacker News
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
爱范儿
爱范儿
A
Arctic Wolf
L
LINUX DO - 最新话题
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

阿豪运维笔记

暂无文章

Alibaba Cloud Linux 4如何安装Linux Web可视化管理工具Cockpit
2026-04-13 · via 阿豪运维笔记

Cockpit是一款由红帽(Red Hat)开发的开源轻量级Linux Web可视化管理工具,依赖于systemd作为其核心服务管理器。它就像给Linux装了个网页版的控制面板,通过可视化界面监控系统资源使用情况、管理服务、配置网络、终端操作等功能

部署过程

1、安装 Cockpit

dnf install cockpit -y

2、安装所有插件

dnf -y install cockpit-*

3、启动并设置开机自启

systemctl enable --now cockpit.socket

4、开放防火墙端口并重新加载

firewall-cmd --permanent --add-service=cockpit
firewall-cmd --reload

创建普通用户登入Cockpit

5、创建普通用户,用户名自定义,这边使用cockpit

useradd -m cockpit

6、设置cockpit用户密码,密码建议设置强一点

passwd cockpit

7、将用户添加到 wheel 组

usermod -aG wheel cockpit

8、访问Cockpit

安装完成后,打开浏览器访问https://您的服务器IP地址:9090显示如下

PS:账号和密码为前面创建的普通账号和密码

首次访问时,浏览器可能会提示证书不安全,这是因为Cockpit默认使用自签名证书。点击“高级”并选择“继续访问”即可

image.png

功能说明

系统概要,普通账号登入后提示如下,如需切换到管理员模式,点击被限制的访问然后输入登入普通账号的密码的然后点击认证即可切换

image.png

系统日志

image.png

存储

image.png

网络

image.png

在线终端

image.png

总结

在生产环境中,建议不要使用root账户直接登录Cockpit。可以创建一个普通用户,并将其添加到wheel组以拥有sudo权限,然后使用该账户登录。当然也可以开启Root账号登入权限看自己喜欢,开启步骤如下

使用Root账号登入Cockpit

1、编辑配置文件启用root权限

vi /etc/cockpit/disallowed-users

2、注释掉 root 用户

在文件内容中,您会看到一行root。按i进入编辑在这一行的最前面加上一个#符号,将其注释掉,最后按键盘esc然后输入:wq保存

OK,教程到这已结束,喜欢的同学可以尝试部署体验。