root@localhost:/tmp# startvnc Starting vnc server ... The current vnc port is 5902, and vnc address is localhost:5902 removed '/tmp/.X2-lock' removed '/tmp/.X11-unix/X2' sudo service dbus start * Starting system message bus dbus [ OK ] * dbus is not running Dbus is not running. 正在启动vnc服务,本机vnc地址 localhost:5902 IPv6地址 [::1]:5902 [2409:815c:e614:146:e0d9:6073:d069:871f]:5902 The LAN VNC address 局域网地址 192.168.1.113:5902 vnc pid: 19185 session pid: 19187 cat -n /root/.vnc/vnc.log 1 2 Xvnc TigerVNC 1.12.0 - built 2022-03-25 17:06 3 Copyright (C) 1999-2021 TigerVNC Team and many others (see README.rst) 4 Underlying X server release 12101003, X.Org 5 6 7 Sun Nov 6 07:33:19 2022 8 vncext: VNC extension running! 9 vncext: Listening for VNC connections on all interface(s), port 5902 10 vncext: created VNC server for screen 0
打开安装的VNC客户端,添加VNC服务器,地址写localhost:<刚才选的端口>,连接 显示像我这个图就成功了 这里直接移除插件就行 打开刚才我们安装idea的位置,解压出的文件中有个bin文件夹,里面有个idea.sh,运行即可启动IntelliJ IDEA