Chinaunix首页 | 论坛 | 博客
  • 博客访问: 7592868
  • 博文数量: 368
  • 博客积分: 9600
  • 博客等级: 上校
  • 技术积分: 18875
  • 用 户 组: 普通用户
  • 注册时间: 2009-01-01 00:00
文章分类

全部博文(368)

文章存档

2017年(9)

2016年(19)

2015年(3)

2014年(6)

2013年(8)

2012年(78)

2011年(66)

2010年(135)

2009年(44)

分类: LINUX

2010-05-22 10:08:54

一、electro-server简介
   ElectroServer 4 is multiplayer server product that facilitates interaction between many connected users. Having been tested with as many as 200,000 concurrent users, ElectroServer 4 is highly scalable.  In addition to multiplayer capabilities, ElectroServer is used for real-time audio and video streaming and recording. 

  ElectroServer works by allowing client applications, such as Flash, Java, or Silverlight, to connect via socket to it and log in. This connection is persisted as long as the client wants to stay connected. While connected the server can push data to the client or the client can make requests of the server at any time.

  Developers often find zones and rooms useful. A room is a collection of users that can all “see” each other. These users can easily communicate to achieve chatting or multiplayer game play. A zone is a collection of rooms. Chatting can occur as public messages sent to an entire room of users, or private messages that are sent to one or more specific users in any room. Users can add other users as buddies.  Users are informed when their buddies join and leave the server.

  The server is highly extensible using what are called extensions. An extension is a collection of 1 or more ActionScript or Java files/classes that are used to add more functionality to the server. These extensions can be used as server-level event handlers, such as the Login Event Handler, as Managed Objects which come in handy for things like database connection pooling, or as Plugins. Plugins are run at the server level or at the room level and are frequently used to execute game logic.

  The server is configured and maintained via a powerful web-based administration tool. This allows for management of things like user permission sets, language filters, extensions, and persistent rooms.

二、linux下的安装

1.      安装1.6 Java Virtual Machine(electro-server需要java平台的支持)下载jdk

     chmod +x jdk-6u20-linux-i586-rpm.bin

./jdk-6u20-linux-i586-rpm.bin(安装jdk)

ln -s /usr/java/jdk1.6.0_20/ /usr/java/jdk1.6

  vi /etc/profile

添加以下内容

export JAVA_HOME=/usr/java/jdk1.6
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:/usr/java/jdk1.6/lib/tools.jar:$CLASSPATH

至此java环境安装完毕!

 

2.         安装ElectroServer 4

下载ElectroServer源文件

下载最新的.tar.gz包,我下的是ElectroServer_4_0_5_unix.tar.gz

tar xzvf ElectroServer_4_0_5_unix.tar.gz

cd ElectroServer_4_0_5

nohup ./ElectroServer & (用这个命令来启动ElectroServer)

ps aux | grep 8080 启动不报什么错误,那你的ElectroServer就安装成功了!

就能登陆管理界面了,默认的管理装好和密码是:administrator/password

默认的开始只监听127.0.0.1,你可以通过更改ElectroServer_4_0_5/server/config/ ES4Configuration.xml文件来监听其他的IP或端口!

 

还有不明白的地方你查看:

http://www.electro-server.com/documentation/docs/es4/manual/index.html

 

阅读(3397) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~