Linux 管理工具 Cockpit 安装及使用
首页 专栏 linux 文章详情
0

Linux 管理工具 Cockpit 安装及使用

小伍 发布于 3 月 9 日

Cockpit 的安装

# RHEL8系统已经默认安装cockpit
yum list|grep cockpit

# 查看cockpit是否已经设置开机启动
systemctl list-unit-files|grep cockpit

# 设置cockpit开机启动
systemctl enable --now cockpit.socket

# 查看cockpit运行状态
systemctl status cockpit.service

# 启动服务
systemctl start cockpit.service

# 查看cockpit运行状态
systemctl status cockpit.service

# 查看cockpit端口9090是否已经监听
netstat -nltp|grep 9090
# 系统防火墙添加放行服务
firewall-cmd --add-service=cockpit --permanent

# 重启防火墙
firewall-cmd --reload

访问:https://IP:9090,要求较高版本的浏览器才能正常使用。本地账户的用户名和密码均可登录。

Cockpit 常用操作

关闭防火墙。

配置网络。

配置网络需要通过localhost访问,否则不生效。

依次点击 网络 - ens160 - IPv4:

地址:手动
192.168.1.3  255.255.255.0  192.168.1.2

关闭SELinux。

linux centos
阅读 49 发布于 3 月 9 日
收藏
分享
本作品系原创, 采用《署名-非商业性使用-禁止演绎 4.0 国际》许可协议
avatar
小伍
22 声望
0 粉丝
关注作者
0 条评论
得票 时间
提交评论
avatar
小伍
22 声望
0 粉丝
关注作者
宣传栏
目录

Cockpit 的安装

# RHEL8系统已经默认安装cockpit
yum list|grep cockpit

# 查看cockpit是否已经设置开机启动
systemctl list-unit-files|grep cockpit

# 设置cockpit开机启动
systemctl enable --now cockpit.socket

# 查看cockpit运行状态
systemctl status cockpit.service

# 启动服务
systemctl start cockpit.service

# 查看cockpit运行状态
systemctl status cockpit.service

# 查看cockpit端口9090是否已经监听
netstat -nltp|grep 9090
# 系统防火墙添加放行服务
firewall-cmd --add-service=cockpit --permanent

# 重启防火墙
firewall-cmd --reload

访问:https://IP:9090,要求较高版本的浏览器才能正常使用。本地账户的用户名和密码均可登录。

Cockpit 常用操作

关闭防火墙。

配置网络。

配置网络需要通过localhost访问,否则不生效。

依次点击 网络 - ens160 - IPv4:

地址:手动
192.168.1.3  255.255.255.0  192.168.1.2

关闭SELinux。