1 安装xrdp
# yum install epel-release
# yum install xrdp
2 安装 tigervnc
# yum install tigervnc tigervnc-server
3 配置SELinux , 否则可能无法启动xrdp服务,或者启动出错
chcon -t bin_t /usr/sbin/xrdp
chcon -t bin_t /usr/sbin/xrdp-sesman
4 启动xrdp服务,并设置为开机启动
# systemctl start xrdp
# systemctl enable xrdp
5 查看xrdp服务是否正常启动
# systemctl status xrdp.service //如果看到Active则说明正常
# netstat -antup|grep xrdp //看xrdp和xrdp-sesman是否正常启动
6 关闭防火墙,或者打开防火墙3389端口
# systemctl stop firewalld.service
# systemctl disable firewalld.servie
或者打开3389端口
# firewall-cmd --permanent --zone=public --add-port=3389/tcp
# firewall-cmd --reload