centos7.3 1611:
yum install -y epel-release
yum install -y xrdp tigervnc tigervnc-server
systemctl start xrdp
systemctl enable xrdp
firewall-cmd --permanent --zone=public --add-port=3389/tcp
firewall-cmd --reload
systemctl status xrdp
当你遇到如下问题后。
"Oh no! Something has gone wrong.
A problem has occurred and the system can't recover.
Please log out and try again."
请删除对应用户家目录下的.config/ 文件夹重新登录即可。
若依然不行。请删除/tmp 以及 /tmp/.X11/ 目录下的所有对应用户所属的文件以及文件夹,
若依然不行。重复以上操作并重启xrdp:
systemctl restart xrdp
若依然不行,那我就没招了。