摘自:http://blog.csdn.net/xmuyn/article/details/6002888
以下是自己的按照上述例子练习部分:
cp ~/fDbuild/freeDiameterd/freeDiameterd-1.1.5 ~/fDClient/freeDiameterClient
cp ~/freeDiameter/doc/freediameter.conf.sample ~/fDClient/client.conf
cp ~/fDbuild/freeDiameterd/freeDiameterd-1.1.5 ~/fDServer/freeDiameterServer
cp ~/freeDiameter/doc/freediameter.conf.sample ~/fDServer/server.conf
cp ~/fDbuild/extensions/test_app.fdx ~/fDClient/test_app.fdx
cp ~/freeDiameter/doc/test_app.conf.sample ~/fDClient/test_app.conf
cp ~/fDbuild/extensions/test_app.fdx ~/fDServer/test_app.fdx
cp ~/freeDiameter/doc/test_app.conf.sample ~/fDServer/test_app.conf
already 192.168.1.110
root user to add new ip.
ifconfig eth0:1 192.168.1.111 netmask 255.255.255.0
cd /home/ut/freeDiameter/contrib/PKI/ca_script2
make init topca=ca.test.ut
make newcert ca=ca.test.ut name=client.simple.test.ut
make newcert ca=ca.test.ut name=server.simple.test.ut
cp -rf /home/ut/freeDiameter/contrib/PKI/ca_script2/ca_data /home/ut/fDClient/ca_data
cp -rf /home/ut/freeDiameter/contrib/PKI/ca_script2/ca_data /home/ut/fDServer/ca_data
cp -rf /home/ut/fDServer/ca_data/ca.test.ut/clients/server.simple.test.ut /home/ut/fDServer/ca_data/ca.test.ut/clients/server_cert
cp -rf /home/ut/fDServer/ca_data/ca.test.ut/clients/client.simple.test.ut /home/ut/fDServer/ca_data/ca.test.ut/clients/client_cert
cp -rf /home/ut/fDClient/ca_data/ca.test.ut/clients/server.simple.test.ut /home/ut/fDClient/ca_data/ca.test.ut/clients/server_cert
cp -rf /home/ut/fDClient/ca_data/ca.test.ut/clients/client.simple.test.ut /home/ut/fDClient/ca_data/ca.test.ut/clients/client_cert
cp -rf /home/ut/fDServer/ca_data/ca.test.ut/clients/server_cert /home/ut/fDServer/server_cert
cp -rf /home/ut/fDClient/ca_data/ca.test.ut/clients/client_cert /home/ut/fDClient/client_cert
ln -s /home/ut/freeDiameter/contrib/PKI/ca_script2/ca_data/ca.test.ut/clients/client.simple.test.ut/ca.pem /home/ut/fDClient/client_cert/ca.pem
ln -s /home/ut/freeDiameter/contrib/PKI/ca_script2/ca_data/ca.test.ut/clients/server.simple.test.ut/ca.pem /home/ut/fDServer/server_cert/ca.pem
./freeDiameterClient -c client.conf
./freeDiameterServer -c server.conf
ps -ef | grep freeDiameter