1.首先安装 xdm软件:yum install xdm vi /etc/X11/xdm/Xaccess: * allow vi /etc/gdm/custom.conf: [security] AllowRemoteRoot=true [xdmcp] Enable=true Port=177