# allow a max of 10 clients to connect to this font server
client-limit = 10
# when a font server reaches its limit, start up a new one
clone-self = off
# alternate font servers for clients to use
#alternate-servers = foo:7101,bar:7102
# where to look for fonts
# Some of these are commented out, i.e. the TrueType and Type1
# directories in /usr/share, because they arent forced to be
# installed alongside X.
#
catalogue = /usr/X11R6/lib/X11/fonts/misc:unscaled,
/usr/X11R6/lib/X11/fonts/75dpi:unscaled,
/usr/X11R6/lib/X11/fonts/100dpi:unscaled,
/usr/X11R6/lib/X11/fonts/misc:unscaled,
/usr/X11R6/lib/X11/fonts/Type1,
/usr/X11R6/lib/X11/fonts/Speedo,
/usr/X11R6/lib/X11/fonts/mdk:unscaled,
/usr/share/fonts/default/Type1,
/usr/share/fonts/ttf/big5,
/usr/share/fonts/ttf/gb2312,
/usr/share/fonts/ttf/decoratives,
/usr/share/fonts/ttf/western
# in 12 points, decipoints
default-point-size = 120
# 100 x 100 and 75 x 75
default-resolutions = 75,75,100,100
# how to log errors
use-syslog = on
# For security, don't listen to TCP ports by default.
no-listen = tcp
在配置文件中可以定义最大客户端连接数量,这里缺省是10。配置文件中也指明了字体文件的位置,特别注意包含了中文字体,否则在客户端无法正确显示中文字体。
其中需将#no-listen = tcp的注释去掉,启用tcp监听,其默认端口为7100
[url=javascript:;]使用[/url]
如下命令来重启xfs:
service xfs stop
service xfs start
xfs启动成功后,可以使用netstat -ln命令来确认7100端口已绑定:
tcp 0 0 0.0.0.0:7100 0.0.0.0:* LISTEN