赞
踩
[root@localhost ~]# systemctl stop firewalld
#临时关闭防火墙
[root@localhost ~]# systemctl disable firewalld.service
#永久关闭防火墙
[root@localhost ~]# setenforce 0
#临时关闭selinux
[root@localhost ~]# sed -i 's/enforcing/disabled/g' /etc/selinux/config
#永久关闭selinux
[root@localhost ~]# yum group list
[root@localhost ~]# yum groupinstall "Server with GUI" -y
[root@localhost ~]# systemctl set-default graphical
[root@localhost ~]# yum install -y epel-release xrdp
[root@localhost ~]# yum install -y tigervnc-server
[root@localhost ~]# systemctl stsrt xrdp
[root@localhost ~]# systemctl enable xrdp
8、查看xrdp程序、端口是否启动
[root@localhost ~]# systemctl status xrdp
[root@localhost ~]# netstat -antpl | grep 3389
#查看3389端口是否启动
二、在win电脑上面mstsc远程桌面连接centos7的地址
略
[root@localhost ~]# yum install "Server with GUI" --downloadonly --downloaddir=/opt/GUI
#–downloadonly --downloaddir=/opt/GUI 只下载不安装 GUI所需要的rpm包到/opt/GUI
[root@localhost ~]# yum install epel-release --downloadonly --downloaddir=/opt/epel
# 分别下载到/opt/对应的目录epel、xrdp、tigervnc
[root@localhost GUI]# pwd
/opt/GUI
[root@localhost GUI]# rpm -ivh *.rpm --force --nodeps
# --force --nodeps 强制安装
在分别去opt下这三个目录epel、xrdp、tigervnc安装对应的rpm包
[root@localhost ~]# systemctl set-default graphical
[root@localhost ~]# systemctl stsrt xrdp
[root@localhost ~]# systemctl enable xrdp
[root@localhost ~]# systemctl status xrdp
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。