跳转到内容
KN郑某某

CentOS8安装xrdp

在 CentOS8 上安装配置 xrdp 远程桌面服务。

安装手册 1 分钟阅读

CentOS8 默认使用的包管理工具是 dnf,其他版本的可以使用 yum 安装

$ dnf install -y epel-release
$ dnf install -y xrdp

$ systemctl enable xrdp --now

$ firewall-cmd --add-port=3389/tcp --permanent
$ firewall-cmd --reload

如果需要修改xrdp的端口,配置文件为 /etc/xrdp/xrdp.ini。修改其中的 port参数即可,例如:

port=13389

  • 防火墙设置
$ firewall-cmd --add-port=13389/tcp --permanent
$ firewall-cmd --reload
  • 测试连接

使用windows下的远程桌面连接即可,默认使用3389端口,如果修改过的话使用新的端口连接即可。例如:

alt text

评论