为什么我从局域网上的XEmacs gnuclient获得超时?


0

我在主机A上运行了XEmacs(和gnuserv)。我从主机B上的bash启动gnuclient但是得到了一个超时(strace输出结束见下文)。两个主机都在$ GNU_SECURE_FILE指向的文件中。这是在局域网上,我以前从未在不同的局域网上遇到过问题。

connect(3, {sa_family=AF_INET, sin_port=htons(46602), sin_addr=inet_addr("172.20.9.11")}, 16) = -1 ETIMEDOUT (Connection timed out)
dup(2)                                  = 4
fcntl(4, F_GETFL)                       = 0x8002 (flags O_RDWR|O_LARGEFILE)
fstat(4, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 15), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fcf4396c000
lseek(4, 0, SEEK_CUR)                   = -1 ESPIPE (Illegal seek)
write(4, "gnuclient: Connection timed out\n", 32gnuclient: Connection timed out
) = 32
close(4)                                = 0
munmap(0x7fcf4396c000, 4096)            = 0
write(2, "gnuclient: unable to connect to "..., 39gnuclient: unable to connect to remote
) = 39
exit_group(1)                           = ?

Answers:


0

超时的原因是主机B上的显示未正确设置。$DISPLAY环境变量必须设置为主机A的显示。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.