架设SmartFoxServer的方法


1、安装SFSPRO_win_1.6.6.exe
2、在开始菜单中启动服务器
3、这样服务器就启动了,9339端口就已经打开了
4、在Program Files/SmartFoxServerPRO_1.6.6/Server/中修改config.xml增加zone,对应客户端连接的zone
客户端代码为smartfox.login(zone,name,pass);第一个参数就是zone名字
5、注意Zone必须有<Rooms>结点,否则服务器报错,说是配置文件错误无法启动

你可能感兴趣的:(服务器)