安装
离线的操作系统iso
中没有这个包,这里使用阿里的yum
原下载安装
# 备份本地源
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo_bak
# 配置阿里的
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
yum clean all
yum makecache
如果阿里域名无法解析,配置以下文件
cat >> /etc/resolv.conf <<EOF
nameserver 8.8.8.8
nameserver 8.8.4.4
EOF
开始安装,先安装扩展包epel-release
# 先安装扩展包源
yum install epel-release
yum install xrdp
启动
启动服务,并加入开机启动
[root@tcpipserver xrdp]# systemctl start xrdp
[root@tcpipserver xrdp]# systemctl enable xrdp
Created symlink from /etc/systemd/system/multi-user.target.wants/xrdp.service to /usr/lib/systemd/system/xrdp.service.
如果需要修改配置文件,配置文件为/etc/xrdp/xrdp.ini
远程连接需要关闭防火墙(或者只把端口放行)
[root@tcpipserver xrdp]# systemctl stop firewalld
远程连接
打开windows自带的远程桌面
输入IP和用户名,点击连接
选择是
输入密码,选择OK,即可成功连接。