參考
- 安裝和配置 OpenIMS Core
- OpenIMS客戶端傻瓜安裝指南
操做系統
- Ubuntu 11.10
下載源碼
- mkdir /opt/OpenIMSCore
- cd /opt/OpenIMSCore
-
- mkdir ser_ims
- svn checkout http://svn.berlios.de/svnroot/repos/openimscore/ser_ims/trunk ser_ims
-
- mkdir FHoSS
- svn checkout http://svn.berlios.de/svnroot/repos/openimscore/FHoSS/trunk FHoSS
安裝必要的軟件包
- sudo apt-get install bison flex libxml2 libxml2-dev bind9
- sudo apt-get install mysql-server libmysqlclient15-dev
- sudo apt-get install ant libcurl4-nss-dev
- sun-java5-jdk的安裝參考另一篇文檔
編譯
- 編譯JavaDiameterPeer生成jdp.jar, svn下載的jdp.jar有問題
- cd JavaDiameterPeer/trunk
- ant compile
- ant jar //在class目錄下生成jdp.jar
- 將編譯完的jdp.jar覆蓋OpenIMSCore/FHoSS/lib裏面的jdp.jar
-
- 編譯OpenIMSCore
- cd /opt/OpenIMSCore
- cd FHoSS
- ant compile deploy
- cd ..
- cd ser_ims
- make install-libs all
- cd ..
配置 DNS
- sudo cp /opt/OpenIMSCore/ser_ims/cfg/open-ims.dnszone /etc/bind/
- vi /etc/bind/named.conf.local
- zone 「open-ims.test」 {
- type master;
- file 「/etc/bind/open-ims.dnszone」;
- };
- sudo /etc/init.d/bind9 restart
配置 OpenIMSCore
- cd /opt/OpenIMSCore
- mysql -u root -p < FHoSS/scripts/hss_db.sql
- mysql -u root -p < FHoSS/scripts/userdata.sql
- mysql -u root -p < ser_ims/cfg/icscf.sql
- cp ser_ims/cfg/*.cfg .
- cp ser_ims/cfg/*.xml .
- cp ser_ims/cfg/*.sh .
運行 OpenIMS Core
- 修改域名及IP, 不然默認的服務偵聽IP地址爲127.0.0.1
- root@open-ims:/opt/OpenIMSCore#locate configurator.sh
- root@open-ims:/opt/OpenIMSCore# ./configurator.sh
- Domain Name:open-ims.test
- IP Adress: 192.168.1.202
- File to change[「all」 for everything, 「exit」 to quit]: all
- root@open-ims:/opt/OpenIMSCore#cd FHoSS/
- root@open-ims:/opt/OpenIMSCore/FHoSS#../configurator.sh
- Domain Name:open-ims.test
- IP Adress: 192.168.1.202
- File to change[「all」 for everything, 「exit」 to quit]: all
運行腳本
- /opt/OpenIMSCore/pcscf.sh
- /opt/OpenIMSCore/icscf.sh
- /opt/OpenIMSCore/scscf.sh
- /opt/OpenIMSCore/FHoSS/deploy/startup.sh
- 打開瀏覽器輸入 http://192.168.1.202:8080, 用戶名/密碼是:hss/hss