[root@localhost root]# yum install xrdp
Repository extras is listed more than once in the configuration
Last metadata expiration check: 0:05:46 ago on Mon 27 Feb 2023 05:42:23 PM CST.
No match for argument: xrdp
Error: Unable to find a match: xrdp
[root@localhost root]#
[root@localhost root]#
[root@localhost root]# yum install -y epel-release
Repository extras is listed more than once in the configuration
Last metadata expiration check: 0:06:26 ago on Mon 27 Feb 2023 05:42:23 PM CST.
Dependencies resolved.
==========================================================================================================================================================================================================================
Package Architecture Version Repository Size
==========================================================================================================================================================================================================================
Installing:
epel-release noarch 8-11.el8 extras 24 k
Transaction Summary
==========================================================================================================================================================================================================================
Install 1 Package
Total download size: 24 k
Installed size: 35 k
Downloading Packages:
epel-release-8-11.el8.noarch.rpm 104 kB/s | 24 kB 00:00
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 104 kB/s | 24 kB 00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : epel-release-8-11.el8.noarch 1/1
Running scriptlet: epel-release-8-11.el8.noarch 1/1
Verifying : epel-release-8-11.el8.noarch 1/1
Installed:
epel-release-8-11.el8.noarch
Complete!
[root@localhost root]# yum install -y xrdp
Repository extras is listed more than once in the configuration
Extra Packages for Enterprise Linux 8 - x86_64 1.6 MB/s | 14 MB 00:08
Extra Packages for Enterprise Linux Modular 8 - x86_64 572 kB/s | 733 kB 00:01
Last metadata expiration check: 0:00:01 ago on Mon 27 Feb 2023 05:49:11 PM CST.
Dependencies resolved.
==========================================================================================================================================================================================================================
Package Architecture Version Repository Size
==========================================================================================================================================================================================================================
Installing:
xrdp x86_64 1:0.9.21-1.el8 epel 472 k
Installing dependencies:
imlib2 x86_64 1.4.9-8.el8 epel 222 k
Installing weak dependencies:
xrdp-selinux x86_64 1:0.9.21-1.el8 epel 24 k
Transaction Summary
==========================================================================================================================================================================================================================
Install 3 Packages
Total download size: 718 k
Installed size: 2.9 M
Downloading Packages:
(1/3): xrdp-0.9.21-1.el8.x86_64.rpm 1.1 MB/s | 472 kB 00:00
(2/3): imlib2-1.4.9-8.el8.x86_64.rpm 289 kB/s | 222 kB 00:00
(3/3): xrdp-selinux-0.9.21-1.el8.x86_64.rpm 3.2 kB/s | 24 kB 00:07
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 92 kB/s | 718 kB 00:07
Extra Packages for Enterprise Linux 8 - x86_64 1.6 MB/s | 1.6 kB 00:00
Importing GPG key 0x2F86D6A1:
Userid : "Fedora EPEL (8) <epel@fedoraproject.org>"
Fingerprint: 94E2 79EB 8D8F 25B2 1810 ADF1 21EA 45AB 2F86 D6A1
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : imlib2-1.4.9-8.el8.x86_64 1/3
Installing : xrdp-selinux-1:0.9.21-1.el8.x86_64 2/3
Running scriptlet: xrdp-selinux-1:0.9.21-1.el8.x86_64 2/3
Installing : xrdp-1:0.9.21-1.el8.x86_64 3/3
Running scriptlet: xrdp-1:0.9.21-1.el8.x86_64 3/3
Verifying : imlib2-1.4.9-8.el8.x86_64 1/3
Verifying : xrdp-1:0.9.21-1.el8.x86_64 2/3
Verifying : xrdp-selinux-1:0.9.21-1.el8.x86_64 3/3
Installed:
imlib2-1.4.9-8.el8.x86_64 xrdp-1:0.9.21-1.el8.x86_64 xrdp-selinux-1:0.9.21-1.el8.x86_64
Complete!
[root@localhost root]# systemctl enable xrdp && systemctl start xrdp
Created symlink /etc/systemd/system/multi-user.target.wants/xrdp.service → /usr/lib/systemd/system/xrdp.service.
[root@localhost root]# systemctl status xrdp
● xrdp.service - xrdp daemon
Loaded: loaded (/usr/lib/systemd/system/xrdp.service; enabled; vendor preset: disabled)
Active: active (running) since Mon 2023-02-27 17:49:52 CST; 17s ago
Docs: man:xrdp(8)
man:xrdp.ini(5)
Main PID: 9482 (xrdp)
Tasks: 1 (limit: 202346)
Memory: 1.1M
CGroup: /system.slice/xrdp.service
└─9482 /usr/sbin/xrdp --nodaemon
Feb 27 17:49:52 localhost.localdomain systemd[1]: Started xrdp daemon.
Feb 27 17:49:52 localhost.localdomain xrdp[9482]: [INFO ] starting xrdp with pid 9482
Feb 27 17:49:52 localhost.localdomain xrdp[9482]: [INFO ] address [0.0.0.0] port [3389] mode 1
Feb 27 17:49:52 localhost.localdomain xrdp[9482]: [INFO ] listening to port 3389 on 0.0.0.0
Feb 27 17:49:52 localhost.localdomain xrdp[9482]: [INFO ] xrdp_listen_pp done
[root@localhost root]# netstat -tunlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1201/sshd
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 1206/cupsd
tcp 0 0 127.0.0.1:6010 0.0.0.0:* LISTEN 2544/sshd: songpy@p
tcp 0 0 127.0.0.1:6011 0.0.0.0:* LISTEN 6892/sshd: songpy@p
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1/systemd
tcp 0 0 192.168.122.1:53 0.0.0.0:* LISTEN 2117/dnsmasq
tcp6 0 0 ::1:3350 :::* LISTEN 9481/xrdp-sesman
tcp6 0 0 :::22 :::* LISTEN 1201/sshd
tcp6 0 0 ::1:631 :::* LISTEN 1206/cupsd
tcp6 0 0 ::1:6010 :::* LISTEN 2544/sshd: songpy@p
tcp6 0 0 ::1:6011 :::* LISTEN 6892/sshd: songpy@p
tcp6 0 0 :::3389 :::* LISTEN 9482/xrdp
tcp6 0 0 :::111 :::* LISTEN 1/systemd
tcp6 0 0 :::8080 :::* LISTEN 4462/java
udp 0 0 0.0.0.0:43342 0.0.0.0:* 993/avahi-daemon: r
udp 0 0 192.168.122.1:53 0.0.0.0:* 2117/dnsmasq
udp 0 0 0.0.0.0:67 0.0.0.0:* 2117/dnsmasq
udp 0 0 0.0.0.0:111 0.0.0.0:* 1/systemd
udp 0 0 0.0.0.0:5353 0.0.0.0:* 993/avahi-daemon: r
udp6 0 0 :::111 :::* 1/systemd
udp6 0 0 :::33376 :::* 993/avahi-daemon: r
udp6 0 0 :::5353 :::* 993/avahi-daemon: r
[root@localhost root]#
使用工具MobaXterm