标题: 关于openser administrator 安装方法 [打印本页] 作者: le4rnin9 时间: 2007-01-13 15:15 标题: 关于openser administrator 安装方法 经过两天的技术研究,总算将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