免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4317 | 回复: 0
打印 上一主题 下一主题

关于openser administrator 安装方法 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-01-13 15:15 |只看该作者 |倒序浏览
经过两天的技术研究,总算将openser administrator安装成功,页面总算显示正常了。至于如何安装openser我就不再讲述了,我的blog里面已经有相关文章。
  1:关于openser administrator的介绍
  OpenSER Administrator started as an in-house project at Enhanced Telecommunications to provide and easy way to manage OpenSER and their VoIP network. SERweb was found to have different goals, and so this project was born
  意思为建立在openser的基础上,通过页面配置SIP的参数。通过上面的链接还可以看到ser系统,不过openser和ser可是不同的系统,至于哪方面不同,因为没有研究过ser.呵呵所以不清楚。只是看过简单的介绍。
2:openser administrator是通过ruby编写的程序。ruby是什么?我也没研究过,从INSTALL文件中要求系统安装ruby,通过ubuntu的apt安装了ruby的相关程序包。libruby1.8 ruby1.8 ruby1.8-dev。
3:解压缩openseradmin-0.3到相关目录,我是tar -xvzf openseradmin-0.3.tar.gz到/var/www/下
4:查看INSTALL文件
    GRANT ALL ON openser.* TO 'openser'@'dbhost' IDENTIFIED BY 'openserrw';
        USE openser;
        SOURCE path_to_openser_administrator_dir/db/database_tables.sql;
        EXIT
    告诉我们通过mysql命令去赋予openser这个用户只能读取openser数据库的权限,而且密码为openserrw,我的操作方法如下:
    root@bob-desktop: tar -xvzf openseradmin-0.3.tar.gz
    root@bob-desktop: cd openseradmin-0.3
    root@bob-desktop: mysql -u root
    Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 254 to server version: 5.0.22-Debian_0ubuntu6.06.2-log
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> GRANT ALL ON openser.* TO 'openser'@'dbhost' IDENTIFIED BY 'openserrw';
mysql>use openser;
mysql>source /var/www/openseradmin-0.3/db/database_tables.sql;
mysql>exit
这样就完成了openseradmin的数据导入功能 (前提,openser之前必须建立好,也就是说安装openser软交换的时候就将openser的数据库建立成功)
  5:做publick链接
  Now, link the public-example directory to public with: `ln -s public-example/
public`. This is done to allow each user to modify the public directory to his
or her needs without fear of new versions overwriting the old settings.
   root@bob-desktop: cd /var/www/openseradmin-0.3
    root@bob-desktop: ln -s /var/www/openseradmin-0.3/public-example/ public
  6:复制config/database.example文件为database.yml文件,并修改该database.yml文件
   Finally, configure OpenSER Administrator to use your database settings. First,
copy the example file `cp config/database.example config/database.yml`. Next,
open database.yml and fill in the settings you defined when you created your
MySQL user. In the above examples case, your database.yml should look like
this:
        development:
        adapter: mysql
        database: openser
        username: openser
        password: openserrw
        host: dbhost
        production:
        adapter: mysql
        database: openser
        username: openser
        password: openserrw
        host: dbhost  
使得你的配置文件如上,当然要留意你的openser用户名与密码是否与配置文件描写一致。
7:不要以为按照INSTALL文件就可以完成安装成功,还有几个包文件需要安装的。我当初就是因为这些文件包的缺少而头大。当你运行了./scprits/server的时候会报告缺少rubygems,必须自己手动安装。
    到http://www.rubyonrails.org/down 来下载rubygems,安装方法:
    root@bob-desktop:/home/bob/download/rubygems-0.9.0# ruby setup.rb
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP