我正在尝试让 xrdp 在 18.04 上运行,它似乎正在运行,但没有监听。
:~$ sudo /etc/init.d/xrdp restart
[ ok ] Restarting xrdp (via systemctl): xrdp.service.
:~$ tail /var/log/xrdp.log
[20190208-23:15:07] [DEBUG] Closed socket 11 (AF_VSOCK cid -1 port 3389)
[20190208-23:15:50] [DEBUG] Testing if xrdp can listen on 0.0.0.0 port 3389.
[20190208-23:15:50] [DEBUG] Closed socket 7 (AF_INET6 :: port 3389)
[20190208-23:15:52] [INFO ] starting xrdp with pid 887
[20190208-23:15:52] [INFO ] listening to port 3389 on 0.0.0.0
[20190208-23:43:45] [DEBUG] Closed socket 11 (AF_VSOCK cid -1 port 3389)
[20190208-23:43:45] [DEBUG] Testing if xrdp can listen on 0.0.0.0 port 3389.
[20190208-23:43:45] [DEBUG] Closed socket 7 (AF_INET6 :: port 3389)
[20190208-23:43:47] [INFO ] starting xrdp with pid 1707
[20190208-23:43:47] [INFO ] listening to port 3389 on 0.0.0.0
:~$ sudo lsof -i :3389
:~$ sudo netstat -an | grep "LISTEN " | grep ":3389"
:~$ sudo ufw status
Status: inactive
:~$ sudo systemctl list-units | grep xrdp
xrdp-sesman.service loaded active running xrdp session manager
xrdp.service loaded active running xrdp daemon
:~$ sudo netstat -antup | grep xrdp
tcp6 0 0 ::1:3350 :::* LISTEN 894/xrdp-sesman
知道我做错了什么吗?
答案1
您设置 xrdp 的步骤是什么?
您可以通过运行以下命令来检查 xrdp 不仅正在运行而且已启用:
sudo systemctl status xrdp
根据您的输出,它似乎尚未启用。要修复该问题,请使用:
sudo systemctl enable xrdp