查看是否安装开源资源库

查看是否已经的安装epel
[root@vantech ~]# rpm -qa|grep epel
epel-release-7-11.noarch

  1. 没有安装进行yum安装

yum install epel-release

  1. 安装xrtp软件yum install xrdp

最新不用再安装

[root@vantech ~]# yum install xrdp
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile

  1. base: mirrors.aliyun.com
  2. epel: mirrors.tuna.tsinghua.edu.cn
  3. extras: mirrors.aliyun.com
  4. updates: mirrors.aliyun.com

Package 1:xrdp-0.9.9-1.el7.x86_64 already installed and latest version
Nothing to do

安装tigervnc服务yum install tigervnc-server

为用户root设置vnc密码,命令为:vncpasswd root

查询/usr/sbin/sestatus -v 关闭seliunx和防火墙

由于是测试,所以在此直接关闭防火墙,命令为:systemctl stop firewalld.service
如果需要开机关闭,则命令为 : systemctl disable firewalld.servie

启动服务命令:systemctl start xrdp
开机启动命令:systemctl enable xrdp

查询xrdp的运行状态

  1. 启动远程并连接
  2. 输入用户名密码即可
Last modification:December 2nd, 2020 at 11:50 pm
如果觉得我的文章对你有用,请随意赞赏