查看日志
[root@host-172-16-16-234 ~]# tail -f /root/.vnc/host-172-16-16-234:2.log
Mon Dec 27 15:15:56 2021
vncext: VNC extension running!
vncext: Listening for VNC connections on all interface(s), port 5902
vncext: created VNC server for screen 0
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning: Unsupported high keycode 372 for name <I372> ignored
> X11 cannot support keycodes above 255.
> This warning only shows for the first high keycode.
Errors from xkbcomp are not fatal to the X server
/root/.vnc/xstartup:行5: /usr/bin/mate-session: 没有那个文件或目录
处理问题
安装缺失的组件
yum install mate-session-manager.aarch64 mate-desktop.aarch64 -y
赋权
chmod 777 /root/.vnc/xstartup
重启服务
systemctl restart vncserver@\:1.service
启动服务
vncserver
查看日志
[root@host-172-16-16-234 ~]# tail -f /root/.vnc/host-172-16-16-234:3.log
(mate-settings-daemon:5548): libmatemixer-alsa-WARNING **: 15:44:07.944: Failed to open ALSA control for default: 没有那个文件或目录
(mate-settings-daemon:5548): libmatemixer-alsa-WARNING **: 15:44:08.944: Failed to open ALSA control for default: 没有那个文件或目录
(mate-settings-daemon:5548): libmatemixer-alsa-WARNING **: 15:44:09.944: Failed to open ALSA control for default: 没有那个文件或目录
(mate-settings-daemon:5548): libmatemixer-alsa-WARNING **: 15:44:10.944: Failed to open ALSA control for default: 没有那个文件或目录
(mate-settings-daemon:5548): libmatemixer-alsa-WARNING **: 15:44:11.944: Failed to open ALSA control for default: 没有那个文件或目录
(mate-settings-daemon:5548): libmatemixer-alsa-WARNING **: 15:44:12.944: Failed to open ALSA control for default: 没有那个文件或目录
(mate-settings-daemon:5548): libmatemixer-alsa-WARNING **: 15:44:13.944: Failed to open ALSA control for default: 没有那个文件或目录
(mate-settings-daemon:5548): libmatemixer-alsa-WARNING **: 15:44:14.944: Failed to open ALSA control for default: 没有那个文件或目录
(mate-settings-daemon:5548): libmatemixer-alsa-WARNING **: 15:44:15.944: Failed to open ALSA control for default: 没有那个文件或目录
连接测试
连接成功,只是鼠标形状有个小黑点,其他正常