您的位置:首页 > 运维架构

rdesktop,xrdp 使用问题记录

2013-02-01 14:33 267 查看
server 操作系统:ubuntu 10.04.4-server
client 操作系统:ubuntu 10.04.4-desktop
xrdp 版本:0.4.x
rdesktop 版本: rdesktop-1.6

client:
loongson@loongson:~$ rdesktop 192.168.1.58
Autoselected keyboard map en-us
ERROR: 192.168.1.58: unable to connect

loongson@loongson:~$ ping 192.168.1.58
PING 192.168.1.58 (192.168.1.58) 56(84) bytes of data.
64 bytes from 192.168.1.58: icmp_seq=1 ttl=64 time=8.91 ms
说明网络不是问题

server:(通过 ssh 进来)
root@loongson:~# /etc/init.d/xrdp restart //启动 xrdp 服务,结果出错
Stopping xrdp: sesman xrdp.
Starting xrdp: It looks like xrdp is allready running,
if not delete the xrdp.pid file and try again
xrdp sesman.

解决方法:

查看是否还有xrdp 进程在运行
root@loongson:~# ps -A | grep sesman
13644 pts/3 00:00:00 sesman
root@loongson:~# ps -A | grep xrdp

显示没有xrdp 进程在运行,启动 xrdp 进程
root@loongson:~# /etc/init.d/xrdp start //依然出错
Starting xrdp: It looks like xrdp is allready running,
if not delete the xrdp.pid file and try again

删除 xrdp.pid 文件再启动
root@loongson:~# rm /var/run/xrdp/xrdp.pid
root@loongson:~# # /etc/init.d/xrdp start
Starting xrdp: xrdp sesman.

root@loongson:/var/run/xrdp# netstat -tnl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:3389 0.0.0.0:* LISTEN

出现有上面的 3389 端口监听,则说明 xrdp 启动起来了

参考链接:https://bugs.launchpad.net/ubuntu/+source/xrdp/+bug/339032本文出自 “prothes blog” 博客,请务必保留此出处http://prothesman.blog.51cto.com/8610862/1411473
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: