Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1373761
  • 博文数量: 140
  • 博客积分: 8518
  • 博客等级: 中将
  • 技术积分: 1822
  • 用 户 组: 普通用户
  • 注册时间: 2005-03-01 22:23
个人简介

嘿嘿!

文章分类
文章存档

2016年(2)

2015年(5)

2014年(6)

2013年(11)

2012年(11)

2011年(3)

2010年(4)

2009年(4)

2008年(8)

2007年(23)

2006年(26)

2005年(37)

分类: 系统运维

2006-12-06 14:14:17

  经过两天的技术研究,总算将openser administrator安装成功,页面总算显示正常了。至于如何安装openser我就不再讲述了,我的blog里面已经有相关文章。
  1:关于openser administrator的介绍
  OpenSER Administrator started as an in-house project at to provide and easy way to manage OpenSER and their . 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 IDENTIFIED BY 'openserrw';
        USE openser;
        SOURCE path_to_openser_administrator_dir/db/database_tables.sql;
        EXIT
    告诉我们通过mysql命令去赋予openser这个用户只能读取openser数据库的权限,而且密码为openserrw,我的操作方法如下:
     -xvzf openseradmin-0.3.tar.gz
    : cd openseradmin-0.3
    : 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 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.
   : cd /var/www/openseradmin-0.3
    : 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,必须自己手动安装。
    到 来下载rubygems,安装方法:
    # ruby setup.rb
 &
阅读(6088) | 评论(6) | 转发(0) |
给主人留下些什么吧!~~