Police system based on browser-server mode

文档序号:1398622 发布日期:2020-03-03 浏览:5次 中文

阅读说明:本技术 一种基于浏览器-服务器模式的警务系统 (Police system based on browser-server mode ) 是由 罗峤伊 于 2018-08-22 设计创作,主要内容包括:本发明提供一种基于浏览器-服务器模式的警务系统,包括至少4台服务器,Linux A和B上安装了keepalived,实现了虚拟IP,Linux A和B 2个服务器上的keepalived均指向同一个虚拟IP,并进行双向心跳检测;A配置为主机,接管虚拟IP,B作为备机,当A服务器进行停机维护或宕机时,B上的keepalived将自动接管虚拟IP;Linux C和D上安装了tomcat,部署接处警服务端程序,接处警程序实现了接处警的相关业务,进行数据库操作,同时完成了与其他外部程序的对接。(The invention provides a police service system based on a browser-server mode, which comprises at least 4 servers, wherein keepalive is installed on Linux A and Linux B, virtual IP is realized, keepalive on the Linux A and the keepalive on the Linux B2 servers both point to the same virtual IP, and bidirectional heartbeat detection is carried out; a is configured as a host machine, the virtual IP is taken over, B is used as a standby machine, and when the server A is in shutdown maintenance or downtime, the keepalived on B automatically takes over the virtual IP; and tomcat is installed on Linux C and Linux D, an alarm receiving and processing server program is deployed, the alarm receiving and processing program realizes the relevant service of alarm receiving and processing, database operation is carried out, and meanwhile, the butt joint with other external programs is completed.)

1. A police system based on a browser-server model, characterized by:

(1) comprises at least 4 servers, Linux A and B, Linux C and D; keepalived is installed on the Linux A and the Linux B, so that virtual IP is realized, keepalived on the Linux A and the Kepalived on the Linux B2 servers both point to the same virtual IP, and bidirectional heartbeat detection is performed;

(2) a is configured as a host machine, the virtual IP is taken over, B is taken as a standby machine at the moment, and when the server A is in shutdown maintenance or downtime, the keepalived on B automatically takes over the virtual IP to ensure that the service is available;

(3) nginx is installed on Linux A and Linux B, load balancing is achieved, and 2 Nginx are similar in configuration and are both configured to perform reverse proxy on a lower tomcat server;

(3) the balance strategy is configured into an IP hash so as to maintain the session of the client and the police system; (ii) a

(4) And tomcat is installed on Linux C and Linux D, an alarm receiving and processing server program is deployed, the alarm receiving and processing program realizes the related services of alarm receiving and processing, database operation is carried out, and meanwhile, the butt joint with other external programs is completed, wherein the butt joint comprises CTI (computer telephony integration)/recording/short message/PDT (digital television/planning) plans.

Technical Field

The invention belongs to the field of police receiving and processing systems and command and dispatch systems in public security informatization, and relates to a police service system based on a browser-server mode.

Background

With the rapid development of the internet technology, the deployment of the information system has higher functional requirements such as mobility, convenience, easy maintenance and the like. Meanwhile, the cloud migration work of the system is imminent. The original alarm receiving and processing systems all adopt a C/S architecture (client-side server-side architecture), and the traditional C/S architecture has a narrow application range; the user group is fixed, and the program can be used only by installation, so that the popularization and the deployment of the system are not facilitated; the maintenance cost is high, and if one-time upgrading occurs, the programs of all the clients need to be changed.

The original Client/Server structure is a more traditional and commonly used software system architecture, tasks are reasonably distributed to a Client (Client) end and a Server (Server) end, the deployment and maintenance costs of the system are high, and management operation can be performed only by installing the Client on site.

Disclosure of Invention

The invention aims to overcome the defects of the existing system and provides a police service system based on a Browser/Server (B/S) mode, wherein a B/S framework is applied to the deployment of an alarm receiving and processing system, clients of the alarm receiving and processing system are unified, and a core part for realizing system functions is centralized on a server, so that the development, maintenance and use of the system are simplified.

The technical scheme of the invention is as follows:

a police system based on a browser-server model, characterized by:

(1) comprises at least 4 servers, Linux A and B, Linux C and D; keepalived is installed on the Linux A and the Linux B, so that virtual IP is realized, keepalived on the Linux A and the Kepalived on the Linux B2 servers both point to the same virtual IP, and bidirectional heartbeat detection is performed;

(2) a is configured as a host machine, the virtual IP is taken over, B is taken as a standby machine at the moment, and when the server A is in shutdown maintenance or downtime, the keepalived on B automatically takes over the virtual IP to ensure that the service is available;

(3) nginx is installed on Linux A and Linux B, load balancing is achieved, and 2 Nginx are similar in configuration and are both configured to perform reverse proxy on a lower tomcat server;

(3) the balance strategy is configured into an IP hash so as to maintain the session of the client and the police system;

(4) and tomcat is installed on Linux C and Linux D, an alarm receiving and processing server program is deployed, the alarm receiving and processing program realizes the related services of alarm receiving and processing, database operation is carried out, and meanwhile, the butt joint with other external programs is completed, wherein the butt joint comprises CTI (computer telephony integration)/recording/short message/PDT (digital television/planning) plans.

In order to realize the upgrading of the mode and the framework of the police service system, the invention fully utilizes new technologies such as HTML5, WebSocket protocol and the like, and provides a new generation of three-in-one joint police service system framework based on a B/S structure and formed by multiple redundant services so as to improve the characteristics of rapid deployment, light clients, multiple redundancies (link redundancy, data redundancy, service redundancy) and the like of the system. Therefore, the new generation alarm receiving and processing system is more convenient and efficient to deploy, maintain, upgrade and the like, and the beneficial effects of the system comprise the following aspects:

1. the client of the system does not need to be installed on site, and can be accessed by a Web browser and a website; the browser end of the alarm receiving and processing system adopts a sandbox mechanism, and is slightly influenced by the interference of other software environments;

2. no requirement on an operating system and cross-platform support. For example: the windows/linux can access the system;

3. after the B/S framework is deployed, a computer can access the system under the public security network environment under the condition that the computer has account number authority. If the leader is on business, the seat state can be monitored in real time, and the warning situation data can be checked;

4. the maintenance work is simple and convenient. When the system is upgraded, the B/S framework does not need to upgrade each client, only the server needs to be upgraded, and the upgraded client does not have the situation of version disorder;

5. and the service end performs a high-availability deployment mode on the B/S architecture. When the system is upgraded or a certain server is unavailable, the use of the system is not influenced;

6. the utilization rate of resources is greatly improved, and meanwhile, the load of the database can be reduced. The method is characterized in that a mode that each C # client side is directly connected with a database is changed into a mode that a server side uniformly uses a database connection pool to access the database;

7. after the B/S framework is used, data exchange is bound to pass through a server, cooperativity between seats (alarm receiving and receiving, alarm receiving and dealing, alarm dealing and dealing) is simpler and more convenient, and data consistency is high;

8. with the development of web technology and the maturity of web socket in server push technology, high-response functions, such as functions of accessing an alarm phone and ringing while popping up an alarm receiving list, data collaboration and the like, can be realized by using a browser.

Detailed Description

And opening the browser to log in and access the alarm receiving and processing system corresponding to the virtual IP. And after logging in, the relevant personnel use the corresponding functions of the system according to the distributed different roles (the receiver, the police, the conductor and the like). The use of part of functions depends on IP telephone, and the functions can be configured only in background without installing any software at the client.

And under the condition that resources allow, the server can also be expanded horizontally, so that the service capacity and the availability are further expanded.

A B/S architecture-based alarm receiving and processing system is specifically implemented as follows:

(1) comprises at least 4 servers, Linux A and B, Linux C and D; keepalived is installed on the Linux A and the Linux B, so that virtual IP is realized, keepalived on the Linux A and the Kepalived on the Linux B2 servers both point to the same virtual IP, and bidirectional heartbeat detection is performed;

(2) a is configured as a host machine, the virtual IP is taken over, B is taken as a standby machine at the moment, and when the server A is in shutdown maintenance or downtime, the keepalived on B automatically takes over the virtual IP to ensure that the service is available;

(3) nginx is installed on Linux A and Linux B, load balancing is achieved, and 2 Nginx are similar in configuration and are both configured to perform reverse proxy on a lower tomcat server;

(3) the balance strategy is configured into an IP hash so as to keep the session of the client and the alarm receiving and processing service; the static resource for the alarm receiving and processing program is also deployed into nginx;

(4) and tomcat is installed on Linux C and Linux D, an alarm receiving and processing server program is deployed, the alarm receiving and processing program realizes the related services of alarm receiving and processing, database operation is carried out, and meanwhile, the butt joint with other external programs is completed, wherein the butt joint comprises CTI (computer telephony integration)/recording/short message/PDT (digital television/planning) plans.

4页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:业务请求处理方法、装置及计算机可读存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类