前提: CentOS安装桌面,如果无桌面,请执行
# yum -y groups install "GNOME Desktop" # startx
配置源
# yum install epel* -y
安装xrdp
# yum --enablerepo=epel -y install xrdp
启动xrdp并设置开机启动
# systemctl start xrdp # systemctl enable xrdp