zoukankan      html  css  js  c++  java
  • 如何在 centos 7 编译安装 freediameter

    官方文档:

      http://www.freediameter.net/trac/wiki/Installation

    先安装所需的第三方库 : 

    sudo yum install postgresql-devel 
    sudo yum install gnutls-devel
    sudo yum install libgcrypt-devel
    sudo yum install libidn-devel

    如果没有, 下载并编译安装 cmake 

    下载freediameter源文件并解压到某路径 , in my case ,  is  : /home/liuyang/freeDiameter-1331

    到 freeDiameter-1331 文件夹 ,  执行 mkdir  fDbuild ,     cd  fDbuild 

    执行 

    cmake -DFLEX_EXECUTABLE:FILEPATH=/usr/bin/flex -DGNUTLS_LIBRARY:FILEPATH=/usr/lib64/libgnutls.so -DGNUTLS_INCLUDE_DIR:PATH=/usr/local/include/ -DDISABLE_SCTP:BOOL=ON -DBUILD_TEST_APP:BOOL=ON -DDIAMID_IDNA_IGNORE=ON -DDIAMID_IDNA_IGNORE=ON /home/liuyang/freeDiameter-1331

    其中 flex 和  libgnutls.so 的路径需根据各自的情况调整  。 

    然后  cd ..  ,   make  ,  sudo make install 

    Done  the  Freediameter Install . 

    =============================================================================

    接下来是如何配置运行 freediameter  ,成为一个 server  

    参考文章 : 

    https://stackoverflow.com/questions/27423043/how-to-configure-and-start-diameter-client-and-server-for-diameter-credit-contro

    http://blog.csdn.net/xmuyn/article/details/6002888

    http://blog.csdn.net/an_zhenwei/article/details/37561897

    http://www.freediameter.net/trac/wiki/Configuration

    http://www.freediameter.net/trac/wiki/Configuration#tls_tuto

    https://www.oreilly.co.jp/books/9784873117027/

    ============================================================================= 续: 安装之后

    运行 make install 之后, 会被安装到 

    /usr/local/include/freeDiameter

    /usr/local/lib/freeDiameter

    ----------------------------------------------------  如何运行 freediameter 自带的 test_app , 需要2台机器, 并有同样的域名  

    http://www.freediameter.net/documentation/fD_tuto_2e%20-%20Quickstart%20a%20testbed.pdf

    http://www.freediameter.net/trac/wiki/TBSimple#cli.simple.testbed.aaa

    ------------------------------------------------------ TLS  怎样设置

     http://www.freediameter.net/trac/wiki/Configuration

    ---------------------------------------------- 其他 extensions 的用途

  • 相关阅读:
    docker部署mysql
    docker安装nginx
    Linux查看日志-grep
    linux系统常用命令
    python爬虫
    unittest中常用的assert语句
    Linux 监控tcp连接数及状态
    linux top命令查看内存及多核CPU的使用讲述
    jmeter的时间戳函数使用
    influxdb基本SQL操作2
  • 原文地址:https://www.cnblogs.com/lthxk-yl/p/8556030.html
Copyright © 2011-2022 走看看