Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1522509
  • 博文数量: 290
  • 博客积分: 3468
  • 博客等级: 中校
  • 技术积分: 3461
  • 用 户 组: 普通用户
  • 注册时间: 2010-12-28 22:21
文章分类

全部博文(290)

文章存档

2016年(13)

2015年(3)

2014年(42)

2013年(67)

2012年(90)

2011年(75)

分类: LINUX

2012-04-01 10:29:20

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 启动起来了

参考链接:
阅读(5760) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~