一、安装CentOS桌面
yum upgrade
yum -y groupinstall "X Window System"
yum -y groupinstall "GNOME Desktop"
startx
二、安装xrdp
yum install epel* -y
yum --enablerepo=epel -y install xrdp
三、添加防火墙
firewall-cmd --permanent --zone=public --add-port=3389/tcp
firewall-cmd --reload
四、启动服务
systemctl start xrdp
systemctl enable xrdp
netstat -tnlp | grep xrdp