SDFP服务器进程-依赖及配置

时间:2022-12-14 19:59:15

1、直接运行rfp进程

# cat /etc/centos-release
CentOS Linux release 7.9.2009 (Core)
# pwd
/home/cdatc/AirNet/bin
[root@localhost bin]# ./rfp
./rfp: error while loading shared libraries: libpcap.so.1: cannot open shared object file: No such file or directory

2、打包拷贝/usr下AirNet库lib文件夹;拷贝/etc/ld.so.conf.d/*.conf文件;

# cat /etc/ld.so.conf
include ld.so.conf.d/*.conf
# cat /etc/ld.so.conf.d/AirNet.conf
/usr/AirNet/lib/AirNet
拷贝lib库:/usr/AirNet/lib/
# ldconfig
拷贝库文件:libpcap.so.1 libGL.so.1 libxcb-dri3.so.0 libxcb-xfixes.so.0 libxcb-present.so.0 libxcb-sync.so.1 libxshmfence.so.1 libXxf86vm.so.1
libglapi.so.0 libXext.so.6 libXdamage.so.1 libXfixes.so.3 libX11-xcb.so.1 libX11.so.6 libxcb.so.1 libxcb-glx.so.0 libxcb-dri2.so.0 libXau.so.6
# scp /usr/lib64/libXau.so.6 root@192.168.5.51:/usr/lib64/libXau.so.6
# ./rfp
[INFO] get hostname successfule [name]:localhost.localdom
20221214 06:22:02.381 ERROR ConfigXmlImpl:: /home/cdatc/AirNet/config/network.xml Error!
this pro is : rfp
read datatype : (1, 2, 3, 4, 6, 9)
read sharememdatatype : (1, 2, 3, 4, 6, 9)
read all_sendtype : (1, 2, 3, 4, 6, 9)
[ERROR] mid.xml is not exist
[ERROR] read mid.xml failed.
zmq_ctx_destroy my_zmq_context successful
Floating point exception

3、按提示拷贝network.xml、mid.xml,然后按提示安装redis(打包拷贝至/usr/local/redis)

# ./rfp 
[INFO] get hostname successfule [name]:localhost.localdom
this pro is : rfp
read datatype : (1, 2, 3, 4, 6, 9)
read sharememdatatype : (1, 2, 3, 4, 6, 9)
read all_sendtype : (1, 2, 3, 4, 6, 9)
[INFO] mid.xml document type normal, root node is 'root'
create socket : RecvdataFromProSocket
create socket : SenddataToMidSocket
create socket : Socket_lib_to_pro
[ERROR] Connect this Redis[6379] failed!
[ERROR] save data[9_0_0] failed, redis reconnect 10 times
[ERROR] writeAtcinfoSharemem failed! datatype=[9], row=[0], beginclo=[0]
[INFO] new thread call writedata , so creat new socket ,datatype=9,row=0,col=0
[INFO] new thread call writedatatomine , so creat new socket ,datatype=9,row=0,col=0
Floating point exception
#start redis move to rc.local实现开机启动
# /usr/local/redis/bin/redis-server /usr/local/redis/conf/redis.conf 1>/dev/null 2>&1
# /usr/local/redis/bin/redis-server /usr/local/redis/conf/redis_6378.conf 1>/dev/null 2>&1
# ./rfp
[INFO] get hostname successfule [name]:localhost.localdom
this pro is : rfp
read datatype : (1, 2, 3, 4, 6, 9)
read sharememdatatype : (1, 2, 3, 4, 6, 9)
read all_sendtype : (1, 2, 3, 4, 6, 9)
[INFO] mid.xml document type normal, root node is 'root'
create socket : RecvdataFromProSocket
create socket : Socket_lib_to_pro
create socket : SenddataToMidSocket
[INFO] new thread call writedata , so creat new socket ,datatype=9,row=0,col=0
[INFO] new thread call writedatatomine , so creat new socket ,datatype=9,row=0,col=0
Floating point exception

4、修改主机名,hostnamectl命令自动转换成小写;所以需要network配置文件(大写的主机名),然后按提示拷贝atc_global_offline.xml atc_sfp_radar_offline.xml atc_sfp_comparerule_offline.xml(/home/cdatc/AirNet/config/gconf/dbm/dbm_frame/atc/和/home/cdatc/AirNet/config两个目录下),然后rfp进程运行OK。

# hostnamectl set-hostname SDFP2
[root@localhost bin]# hostname
sdfp2
# hostname SDFP2
# hostname
SDFP2
# vi /etc/sysconfig/network
# Created by anaconda
HOSTNAME=SDFP2
# ./rfp
[INFO] get hostname successfule [name]:SDFP2
find this hostname : "SDFP2"
find this pro : "rfp"
this pro is : rfp
read datatype : (50, 202, 203, 212, 302, 303, 312, 1, 2, 3, 4, 6, 9)
read sharememdatatype : (1, 2, 3, 4, 6, 9)
read all_sendtype : (200, 201, 202, 203, 204, 205, 212, 248, 300, 301, 302, 303, 304, 305, 312, 348, 1, 2, 3, 4, 6, 9)
[INFO] mid.xml document type normal, root node is 'root'
create socket : RecvdataFromProSocket
create socket : SenddataToMidSocket
create socket : Socket_lib_to_pro
20221214 06:42:16.414 ERROR ConfigXmlImpl:: /home/cdatc/AirNet/config/atc_global_offline.xml Error!
20221214 06:42:16.414 ERROR ConfigXmlImpl:: /home/cdatc/AirNet/config/gconf/dbm/dbm_frame/atc/atc_global_offline.xml Error!
20221214 06:42:16.414 INFO initMembers:: m_fileName=/home/cdatc/AirNet/config/atc_global_offline.xml
20221214 06:42:16.414 INFO getAllConfig:: m_fileName=/home/cdatc/AirNet/config/atc_global_offline.xml, param=ATC_DEFAULT_MODE
20221214 06:42:16.414 ERROR setFilePath:: /home/cdatc/AirNet/config/atc_global_offline.xml Error!
然后运行日志如下:
# ./rfp
[INFO] get hostname successfule [name]:SDFP2
find this hostname : "SDFP2"
find this pro : "rfp"
this pro is : rfp
read datatype : (50, 202, 203, 212, 302, 303, 312, 1, 2, 3, 4, 6, 9)
read sharememdatatype : (1, 2, 3, 4, 6, 9)
read all_sendtype : (200, 201, 202, 203, 204, 205, 212, 248, 300, 301, 302, 303, 304, 305, 312, 348, 1, 2, 3, 4, 6, 9)
[INFO] mid.xml document type normal, root node is 'root'
create socket : RecvdataFromProSocket
create socket : SenddataToMidSocket
create socket : Socket_lib_to_pro
20221214 06:52:23.521 INFO initMembers:: m_fileName=/home/cdatc/AirNet/config/atc_global_offline.xml
20221214 06:52:23.521 INFO getAllConfig:: m_fileName=/home/cdatc/AirNet/config/atc_global_offline.xml, param=ATC_DEFAULT_MODE
20221214 06:52:23.521 INFO getFrameElementTip:: /home/cdatc/AirNet/config/gconf/dbm/dbm_frame/atc/atc_global_offline.xml tag=atcsysmode param=ATC_DEFAULT_MODE tip=系统参数
20221214 06:52:23.530 INFO initMembers:: m_fileName=/home/cdatc/AirNet/config/atc_sfp_radar_offline.xml
20221214 06:52:23.545 INFO initMembers:: m_fileName=/home/cdatc/AirNet/config/atc_sfp_comparerule_offline.xml
20221214 06:52:23.545 INFO getAllConfig:: m_fileName=/home/cdatc/AirNet/config/atc_sfp_comparerule_offline.xml, param=
create socket : do life time socket[ 140451218737856 ]
[ERROR] dolifetime failed ,recv data from mnt failed! proname =rfp,workstatus=NORMAL
[ERROR] dolifetime failed ,recv data from mnt failed! proname =rfp,workstatus=NORMAL
[INFO] new thread call writedata , so creat new socket ,datatype=6,row=0,col=0
[INFO] new thread call writedatatomine , so creat new socket ,datatype=6,row=0,col=0
create socket : Socket_lib_to_pro_
[INFO] create new socket,datatype = [202],set data chche size = [2048]