以下是Debian下TigerVNC故障排查指南:
sudo apt install tigervnc-standalone-server tigervnc-common
安装。sudo systemctl status vncserver@:端口号.service
,若未运行则手动启动。/etc/systemd/system/vncserver@:端口号.service
,确保User
和Group
设置正确。sudo ufw allow 端口号/tcp
开放端口。netstat -lntp | grep Xvnc
。vncpasswd
正确设置密码。~/.vnc/xstartup
文件是否存在且有执行权限,内容是否正确。