当前位置:   article > 正文

Linux 安装Xrdp,实现RDP连接_linux rdp

linux rdp

linux 安装xrdp,RDP 连接,安装前提 root 权限

  1. [root@server-76 conf]# yum install xrdp # root 权限 安装 yum install xrdp
  2. Loaded plugins: fastestmirror, langpacks
  3. Loading mirror speeds from cached hostfile
  4. epel/x86_64/metalink | 6.8 kB 00:00:00
  5. * base: mirrors.aliyun.com
  6. * epel: mirrors.tuna.tsinghua.edu.cn
  7. * extras: mirrors.aliyun.com
  8. * updates: mirrors.aliyun.com
  9. base | 3.6 kB 00:00:00
  10. epel | 4.7 kB 00:00:00
  11. extras | 2.9 kB 00:00:00
  12. updates | 2.9 kB 00:00:00
  13. (1/4): epel/x86_64/group_gz | 99 kB 00:00:00
  14. (2/4): epel/x86_64/updateinfo | 1.0 MB 00:00:01
  15. (3/4): epel/x86_64/primary_db | 7.0 MB 00:00:04
  16. (4/4): updates/7/x86_64/primary_db | 19 MB 00:00:26
  17. Resolving Dependencies
  18. --> Running transaction check
  19. ---> Package xrdp.x86_64 1:0.9.21-1.el7 will be installed
  20. --> Processing Dependency: libImlib2.so.1()(64bit) for package: 1:xrdp-0.9.21-1.el7.x86_64
  21. --> Running transaction check
  22. ---> Package imlib2.x86_64 0:1.4.9-8.el7 will be installed
  23. --> Finished Dependency Resolution
  24. Dependencies Resolved
  25. =================================================================================================================================================================================
  26. Package Arch Version Repository Size
  27. =================================================================================================================================================================================
  28. Installing:
  29. xrdp x86_64 1:0.9.21-1.el7 epel 458 k
  30. Installing for dependencies:
  31. imlib2 x86_64 1.4.9-8.el7 epel 210 k
  32. Transaction Summary
  33. =================================================================================================================================================================================
  34. Install 1 Package (+1 Dependent package)
  35. Total download size: 669 k
  36. Installed size: 2.8 M
  37. Is this ok [y/d/N]: Y # Y
  38. Downloading packages:
  39. (1/2): imlib2-1.4.9-8.el7.x86_64.rpm | 210 kB 00:00:00
  40. (2/2): xrdp-0.9.21-1.el7.x86_64.rpm | 458 kB 00:00:00
  41. ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  42. Total 787 kB/s | 669 kB 00:00:00
  43. Running transaction check
  44. Running transaction test
  45. Transaction test succeeded
  46. Running transaction
  47. Warning: RPMDB altered outside of yum.
  48. ** Found 29 pre-existing rpmdb problem(s), 'yum check' output follows:
  49. yusurconnectionforward-2.0.2-1.x86_64 has missing requires of libACE.so.6.4.3()(64bit)
  50. yusurconnectionforward-2.0.2-1.x86_64 has missing requires of libACE_SSL.so.6.4.3()(64bit)
  51. yusurconnectionforward-2.0.2-1.x86_64 has missing requires of libaeron_client_shared.so()(64bit)
  52. yusurconnectionforward-2.0.2-1.x86_64 has missing requires of libmdc_gateway_client.so()(64bit)
  53. yusurconnectionforward-2.0.2-1.x86_64 has missing requires of libprotobuf.so.11()(64bit)
  54. yusurconnectionforward-2.0.2-1.x86_64 has missing requires of librdkafka++.so.1()(64bit)
  55. yusurconnectionforward-2.0.2-1.x86_64 has missing requires of librdkafka.so.1()(64bit)
  56. yusurconnectionforward-2.0.2-1.x86_64 has missing requires of libstdc++.so.6(CXXABI_1.3.11)(64bit)
  57. yusurconnectionforward-2.0.2-1.x86_64 has missing requires of libstdc++.so.6(CXXABI_1.3.9)(64bit)
  58. yusurconnectionforward-2.0.2-1.x86_64 has missing requires of libstdc++.so.6(GLIBCXX_3.4.20)(64bit)
  59. yusurconnectionforward-2.0.2-1.x86_64 has missing requires of libstdc++.so.6(GLIBCXX_3.4.21)(64bit)
  60. yusurconnectionforward-2.0.2-1.x86_64 has missing requires of libstdc++.so.6(GLIBCXX_3.4.22)(64bit)
  61. yusurriskcop-2.0.2-1.x86_64 has missing requires of libACE.so.6.4.3()(64bit)
  62. yusurriskcop-2.0.2-1.x86_64 has missing requires of libACE_SSL.so.6.4.3()(64bit)
  63. yusurriskcop-2.0.2-1.x86_64 has missing requires of libaeron_client_shared.so()(64bit)
  64. yusurriskcop-2.0.2-1.x86_64 has missing requires of libmdc_gateway_client.so()(64bit)
  65. yusurriskcop-2.0.2-1.x86_64 has missing requires of libprotobuf.so.11()(64bit)
  66. yusurriskcop-2.0.2-1.x86_64 has missing requires of librdkafka++.so.1()(64bit)
  67. yusurriskcop-2.0.2-1.x86_64 has missing requires of librdkafka.so.1()(64bit)
  68. yusurriskcop-2.0.2-1.x86_64 has missing requires of libstdc++.so.6(CXXABI_1.3.11)(64bit)
  69. yusurriskcop-2.0.2-1.x86_64 has missing requires of libstdc++.so.6(CXXABI_1.3.8)(64bit)
  70. yusurriskcop-2.0.2-1.x86_64 has missing requires of libstdc++.so.6(CXXABI_1.3.9)(64bit)
  71. yusurriskcop-2.0.2-1.x86_64 has missing requires of libstdc++.so.6(GLIBCXX_3.4.20)(64bit)
  72. yusurriskcop-2.0.2-1.x86_64 has missing requires of libstdc++.so.6(GLIBCXX_3.4.21)(64bit)
  73. yusurriskcop-2.0.2-1.x86_64 has missing requires of libstdc++.so.6(GLIBCXX_3.4.22)(64bit)
  74. yusurtoedaemon-0.1.0-1.x86_64 has missing requires of libstdc++.so.6(CXXABI_1.3.9)(64bit)
  75. yusurtoedaemon-0.1.0-1.x86_64 has missing requires of libstdc++.so.6(GLIBCXX_3.4.20)(64bit)
  76. yusurtoedaemon-0.1.0-1.x86_64 has missing requires of libstdc++.so.6(GLIBCXX_3.4.21)(64bit)
  77. yusurtoedaemon-0.1.0-1.x86_64 has missing requires of libstdc++.so.6(GLIBCXX_3.4.22)(64bit)
  78. Installing : imlib2-1.4.9-8.el7.x86_64 1/2
  79. Installing : 1:xrdp-0.9.21-1.el7.x86_64 2/2
  80. Verifying : imlib2-1.4.9-8.el7.x86_64 1/2
  81. Verifying : 1:xrdp-0.9.21-1.el7.x86_64 2/2
  82. Installed:
  83. xrdp.x86_64 1:0.9.21-1.el7
  84. Dependency Installed:
  85. imlib2.x86_64 0:1.4.9-8.el7
  86. Complete!
  87. #

Enable xrdp

  1. [root@server-76 conf]# systemctl enable xrdp && systemctl start xrdp
  2. Created symlink from /etc/systemd/system/multi-user.target.wants/xrdp.service to /usr/lib/systemd/system/xrdp.service.
  3. [root@server-76 conf]#

check xrdp status

  1. [root@server-76 conf]# systemctl status xrdp
  2. ● xrdp.service - xrdp daemon
  3. Loaded: loaded (/usr/lib/systemd/system/xrdp.service; enabled; vendor preset: disabled)
  4. Active: active (running) since Tue 2023-03-07 18:07:44 CST; 13s ago
  5. Docs: man:xrdp(8)
  6. man:xrdp.ini(5)
  7. Main PID: 130144 (xrdp)
  8. Tasks: 1
  9. CGroup: /system.slice/xrdp.service
  10. └─130144 /usr/sbin/xrdp --nodaemon
  11. Mar 07 18:07:44 server-76 systemd[1]: Started xrdp daemon.
  12. Mar 07 18:07:44 server-76 xrdp[130144]: [INFO ] starting xrdp with pid 130144
  13. Mar 07 18:07:44 server-76 xrdp[130144]: [INFO ] address [0.0.0.0] port [3389] mode 1
  14. Mar 07 18:07:44 server-76 xrdp[130144]: [INFO ] listening to port 3389 on 0.0.0.0
  15. Mar 07 18:07:44 server-76 xrdp[130144]: [INFO ] xrdp_listen_pp done
  16. [root@server-76 conf]#
  17. [root@server-76 conf]#

查看xrdp

  1. [root@server-76 conf]# netstat -tunlp
  2. Active Internet connections (only servers)
  3. Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
  4. tcp 0 0 127.0.0.1:6010 0.0.0.0:* LISTEN 17562/sshd: root@pt
  5. tcp6 0 0 :::3389 :::* LISTEN 130144/xrdp

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/你好赵伟/article/detail/402861
推荐阅读
相关标签
  

闽ICP备14008679号