FMS介绍请看
fms 安装
sn:1373-5826-1109-4441-9925-6863 / 1373-5108-8261-3497-6292-0834 / 1373-5108-8261-3497-6292-0834
$ tar zxvf FlashMediaServer3.tar.gz
./installFMS
Default [1935,80]: 80
Default [1111]: 1115
Please enter the administrative username: admin
Please enter the user that the Adobe Flash Media Server service will run as Default user [nobody]:
Please enter a valid user group for the "nobody" user: Default group [nobody]:
Do you want to install apache? (y/n) Default [y]: n
Do you want to start the Adobe Flash Media Server after the installation is done? (y/n) Default [y]: n
./installFMS
Default [1935,80]: 80
Default [1111]: 1115
Please enter the administrative username: admin
Please enter the user that the Adobe Flash Media Server service will run as Default user [nobody]:
Please enter a valid user group for the "nobody" user: Default group [nobody]:
Do you want to install apache? (y/n) Default [y]: n
Do you want to start the Adobe Flash Media Server after the installation is done? (y/n) Default [y]: n
一般安装过程如上步骤,由于刚来公司,公司是做WEB游戏的,于是按照文档一步一步做下去了以前也没有接触过FMS,做了下
chkconfig --level 35 fms off
等所有东东都装上后发现,游戏并不能登录,原因是由于FMS问题,但安装FMS的时候并没有报错,
1)查看了下/var/log/messages文件也没有什么错误提示,日志如下:
Jun 6 09:36:12 mltest2 Adaptor[21665]: Listener started ( FCSAdminIpcProtocol ) : localhost:11110/v4
Jun 6 09:36:13 mltest2 Adaptor[21665]: Listener started ( FCSAdminAdaptor ) : 1112/v4
Jun 6 09:36:14 mltest2 Service[21665]: Server started (./conf/Server.xml).
Jun 6 09:36:13 mltest2 Adaptor[21665]: Listener started ( FCSAdminAdaptor ) : 1112/v4
Jun 6 09:36:14 mltest2 Service[21665]: Server started (./conf/Server.xml).
2)由于刚开始不弄明白,再一次次重装中,发现这不是办法,于是按自己的思维先想到是开发库的原因
gcc -v一把,发现gcc没装 yum install gcc后,重试了下,发现问题依旧;
无奈再次google baidu,看了下相关安装文档,找到了下面的一篇文档http://www.xspace.idv.tw/bo_blog/read.php?147
按照他的指示重来一把
先是rpm -qa|grep compat 发现该东东没装
yum install compat-libstdc++-33
./installFMS -platformWarnOnly
安装完毕,我不再使用/etc/init.d/fms start使用下面命令启动:
安装完毕,我不再使用/etc/init.d/fms start使用下面命令启动:
./fmsmgr server fms start
./fmsmgr adminserver start
./fmsmgr adminserver start
此时问题显示出来了,缺少nspr 包
yum install nspr (yum下载的nspr版本nspr-4.7.3-1.el4.i)
此时游戏运行正常
ps -ef|grep fms 查看fms进程 进程数有多个刚正常
yum 问题
由于公司文档要求需把安装好的linux系统得设语言,当然下面这个重设语言只是针对当前shell有效,如需更改可进入/etc/sysconfig/i18n修改,yum出现问题不能使用
[root@mltest2 qeedoodb]# LANG=en
[root@mltest2 qeedoodb]# yum
Traceback (most recent call last):
File "/usr/bin/yum", line 27, in ?
yummain.main(sys.argv[1:])
File "/usr/share/yum-cli/yummain.py", line 67, in main
locale.setlocale(locale.LC_ALL, '')
File "/usr/lib/python2.3/locale.py", line 381, in setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting
[root@mltest2 qeedoodb]# yum
Traceback (most recent call last):
File "/usr/bin/yum", line 27, in ?
yummain.main(sys.argv[1:])
File "/usr/share/yum-cli/yummain.py", line 67, in main
locale.setlocale(locale.LC_ALL, '')
File "/usr/lib/python2.3/locale.py", line 381, in setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting
些时可使用export LC_ALL=C即可使用yum正常运作
如更改了/etc/sysconfig/i18n那要把export LC_ALL=C放入当前用户的 .bash_profile 里面
本文转自 qwjhq 51CTO博客,原文链接:http://blog.51cto.com/bingdian/163464