java web console,centos 8 如何开启 web console 界面?

开启命令如下

#当前为非 root 用户 lenovo

[lenovo@localhost ~]$ systemctl enable --now cockpit.socket

==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-unit-files ====

Authentication is required to manage system service or unit files.

Authenticating as: root

Password:

==== AUTHENTICATION COMPLETE ====

Created symlink /etc/systemd/system/sockets.target.wants/cockpit.socket → /usr/l ib/systemd/system/cockpit.socket.

==== AUTHENTICATING FOR org.freedesktop.systemd1.reload-daemon ====

Authentication is required to reload the systemd state.

Authenticating as: root

Password:

==== AUTHENTICATION COMPLETE ====

==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ====

启动“cockpit.socket”需要认证。

Authenticating as: root

Password:

==== AUTHENTICATION COMPLETE ====

[lenovo@localhost ~]$

非 root 用户需要输入认证。开启服务成功默认打开9090端口。

[wenjun@localhost ~]$ netstat -ntlp

(Not all processes could be identified, non-owned process info

will not be shown, you would have to be root to see it all.)

Active Internet connections (only servers)

Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name

tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN -

tcp 0 0 192.168.122.1:53 0.0.0.0:* LISTEN -

tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN -

tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN -

tcp6 0 0 :::111 :::* LISTEN -

tcp6 0 0 :::22 :::* LISTEN -

tcp6 0 0 ::1:631 :::* LISTEN -

tcp6 0 0 :::9090 :::* LISTEN -

[wenjun@localhost ~]$

本机 IP 为 192.168.110.111 ,浏览器地址输入 https://192.168.110.111:9090。打开如下界面

853d98315fd71f24ba59a46f0f238076.png

输入用户名密码即可进入 web 控制台界面。

b7943449aef23d8fda3b78f3016b454b.png

终端选项卡可输入各类命令。例如 uname -a

43a17715dd3e0f1eeb187110f08a39c4.png

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值