CentOS安装桌面环境并通过Windows远程桌面连接
1:安装桌面环境
yum -y groups install "GNOME Desktop"
2:启动下
sudo startx
3:配置源
yum install epel* -y
4:安装xrdp
yum --enablerepo=epel -y install xrdp
5:启动xrdp并设置开机启动
systemctl start xrdp
systemctl enable xrdp
6:安装好了之后将防火墙关闭,或者开放3389端口
//开放3389端口
firewall-cmd --permanent --zone=public --add-port=3389/tcp
firewall-cmd --reload
我选的上面
======================或者关闭防火墙
//临时关闭
systemctl stop firewalld
//禁止开机启动
systemctl disable firewalld