CN111522579A - Version environment process detection method, device and storage medium - Google Patents

Version environment process detection method, device and storage medium Download PDF

Info

Publication number
CN111522579A
CN111522579A CN202010576855.4A CN202010576855A CN111522579A CN 111522579 A CN111522579 A CN 111522579A CN 202010576855 A CN202010576855 A CN 202010576855A CN 111522579 A CN111522579 A CN 111522579A
Authority
CN
China
Prior art keywords
version
database
environment
detection method
process information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010576855.4A
Other languages
Chinese (zh)
Inventor
曹成盼
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Tonglian Financial Services Co Ltd
Original Assignee
Shanghai Tonglian Financial Services Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Tonglian Financial Services Co Ltd filed Critical Shanghai Tonglian Financial Services Co Ltd
Priority to CN202010576855.4A priority Critical patent/CN111522579A/en
Publication of CN111522579A publication Critical patent/CN111522579A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The application discloses a version environment process detection method, a device and a storage medium, wherein the method comprises the following steps: acquiring a user name and an IP of each node from a database; acquiring all process information from each background environment node according to the acquired user name and IP and storing the process information; acquiring all current process information of the database from the database, wherein the process information comprises a process name, a version number and an enabling mark; and analyzing and comparing the acquired database process information with the process information of each background environment and feeding back a result. The application provides a version environment process detection method which can be used for process verification after month version upgrading of a production environment, and comprises a process state and a process version number.

Description

Version environment process detection method, device and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, and a storage medium for detecting a version environment process.
Background
Production environment month versions need to be upgraded frequently, but at present, a process verification method after version upgrading is lacked, and the state of a process and the version number of the process are difficult to verify.
Disclosure of Invention
In view of this, embodiments of the present application provide a method, an apparatus, and a storage medium for detecting a version environment process, so as to solve the problem.
In a first aspect, an embodiment of the present application provides a version environment process detection method, including:
step S100: acquiring a user name and an IP of each node from a database;
step S200: acquiring all process information from each background environment node according to the acquired user name and IP and storing the process information;
step S300: acquiring all current process information of the database from the database, wherein the process information comprises a process name, a version number and an enabling mark;
step S400: and analyzing and comparing the acquired database process information with the process information of each background environment and feeding back a result.
In the preferred embodiment of the present application, step S100 is to obtain the user name and IP of each node from the database node table.
In the preferred embodiment of the present application, step S200 acquires jsvc process information.
In the preferred embodiment of the present application, step S300 obtains all current process information of the database from the database process table.
In the preferred embodiment of the present application, step S400 uses the process unique identifier to compare whether there is a difference between the processes of the analysis database and the background environment.
In a preferred embodiment of the present application, step S400 includes:
step S401: judging whether the unique process identification is different from the processes of the database and the background environment;
if yes, go to step S402; if not, judging whether the starting mark is started, if so, determining that starting is abnormal, and if not, determining that verification passes;
step S402: judging whether the state of the database is running or not;
if yes, go to step S403; if not, determining that the state is abnormal;
step S403: judging whether the starting mark is started;
if yes, go to step S404; if not, determining to start the exception;
step S404: judging whether the version numbers are consistent;
if yes, the verification is passed; if not, the version is determined to be abnormal.
In the preferred embodiment of the present application, the version environment process detection method is executed in a manner of not logging in a server of other node in a secret manner.
In a second aspect, an embodiment of the present application provides a computer device, including: a processor and a memory; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, so that the processor executes the version environment process detection method.
In a third aspect, an embodiment of the present application provides a readable storage medium, where a computer executing instruction is stored in the readable storage medium, and when a processor executes the computer executing instruction, the version environment process detection method described above is implemented.
The embodiment of the application adopts at least one technical scheme which can achieve the following beneficial effects:
the application provides a version environment process detection method which can be used for process verification after month version upgrading of a production environment, and comprises a process state and a process version number.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a flowchart illustrating a version environment process detection method according to an embodiment of the present application.
Fig. 2 is a logic diagram of analysis and comparison of a version environment process detection method according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment provides a version environment process detection method. The method of the embodiment comprises the following steps:
step S100: the user name (username) and ip (host) of each NODE are obtained from the database NODE table (gmp. tm _ NODE).
Step S200: and acquiring all jsvc process information from each background environment node according to the acquired user name (username) and the IP (host), and temporarily storing the jsvc process information for subsequent analysis and comparison.
Step S300: acquiring all current PROCESS information of the database from a database PROCESS table (GMP. TM _ PROCESS), wherein the information comprises a PROCESS name (artifact _ id), a version number (artifact _ version) and a starting flag (use _ flag).
Step S400: and analyzing and comparing the database process information acquired in the steps with the process information of each background environment, and feeding back a result.
And comparing whether the processes of the analysis database and the background environment are different or not by using a process unique identifier (process _ id).
For each GMP _ PROCESS record a match exists for the corresponding background PROCESS.
Specifically, the method comprises the following steps:
step S401: and judging whether the unique process identification is different from the processes of the database and the background environment.
If yes, go to step S402; if not, judging whether the enabling mark is yes (Y), if so, determining that the enabling is abnormal, otherwise, determining that the check is passed.
Step S402: and judging whether the database state is running (running).
If yes, go to step S403; if not, the state is determined to be abnormal.
Step S403: it is determined if the enable flag is yes (Y).
If yes, go to step S404; if not, the enable exception is asserted.
Step S404: and judging whether the version numbers are consistent.
If yes, the verification is passed; if not, the version is determined to be abnormal.
It should be noted that the above version environment process detection method is implemented by a script, the script needs to be executed on a server capable of logging in to other nodes without secret, the AIC version can be executed on the coreapp01 and coreapp02 nodes, and the MT version can be executed on the corecom01 and corecom02 nodes. Only abnormal information is printed in the detection process, and the detection is passed if no abnormal information exists.
The embodiment provides a computer device corresponding to the method, wherein the computer device comprises a processor and a memory; wherein the memory is configured to store one or more computer instructions that are executed by the processor to implement the above-described method.
The device may further comprise a bus through which the processor and the memory are connected.
The Memory may include a high-speed Random Access Memory (RAM) and may also include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The bus may be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc.
The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component. The methods, steps disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method of the foregoing embodiment in combination with hardware thereof.
The present embodiments provide a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, may implement the above-described method.
The computer-readable storage medium in this embodiment may be any available medium that can be accessed by a computer or a data storage device such as a server, a data center, etc. that is integrated with one or more available media, and the available media may be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., DVDs), or semiconductor media (e.g., SSDs), etc.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (9)

1. A version environment process detection method is characterized by comprising the following steps:
step S100: acquiring a user name and an IP of each node from a database;
step S200: acquiring all process information from each background environment node according to the acquired user name and IP and storing the process information;
step S300: acquiring all current process information of the database from the database, wherein the process information comprises a process name, a version number and an enabling mark;
step S400: and analyzing and comparing the acquired database process information with the process information of each background environment and feeding back a result.
2. The version environment process detection method according to claim 1, wherein step S100 is to obtain a user name and an IP of each node from a database node table.
3. The version environment process detection method according to claim 1, wherein step S200 acquires jsvc process information.
4. The version environment process detecting method according to claim 1, wherein step S300 obtains all current process information of the database from the database process table.
5. The version environment process detecting method of claim 1, wherein step S400 uses a process unique identifier to compare whether there is a difference between the processes of the analysis database and the background environment.
6. The version environment process detecting method according to claim 1, wherein step S400 comprises:
step S401: judging whether the unique process identification is different from the processes of the database and the background environment;
if yes, go to step S402; if not, judging whether the starting mark is started, if so, determining that starting is abnormal, and if not, determining that verification passes;
step S402: judging whether the state of the database is running or not;
if yes, go to step S403; if not, determining that the state is abnormal;
step S403: judging whether the starting mark is started;
if yes, go to step S404; if not, determining to start the exception;
step S404: judging whether the version numbers are consistent;
if yes, the verification is passed; if not, the version is determined to be abnormal.
7. The version environment process detection method according to claim 1, wherein the version environment process detection method is executed in a secure manner by logging onto a server of another node.
8. A computer device, comprising:
a processor and a memory;
the memory stores computer-executable instructions;
the processor executes the computer-executable instructions stored in the memory, so that the processor executes the version environment process detection method according to any one of claims 1 to 7.
9. A readable storage medium, wherein the readable storage medium stores computer executable instructions, and when a processor executes the computer executable instructions, the version environment process detection method according to any one of claims 1 to 7 is implemented.
CN202010576855.4A 2020-06-22 2020-06-22 Version environment process detection method, device and storage medium Pending CN111522579A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010576855.4A CN111522579A (en) 2020-06-22 2020-06-22 Version environment process detection method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010576855.4A CN111522579A (en) 2020-06-22 2020-06-22 Version environment process detection method, device and storage medium

Publications (1)

Publication Number Publication Date
CN111522579A true CN111522579A (en) 2020-08-11

Family

ID=71910280

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010576855.4A Pending CN111522579A (en) 2020-06-22 2020-06-22 Version environment process detection method, device and storage medium

Country Status (1)

Country Link
CN (1) CN111522579A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521099A (en) * 2011-11-24 2012-06-27 深圳市同洲视讯传媒有限公司 Process monitoring method and process monitoring system
CN105512027A (en) * 2015-11-26 2016-04-20 珠海多玩信息技术有限公司 Process state monitor method and device
CN105771238A (en) * 2014-12-24 2016-07-20 北京奇虎科技有限公司 Operating method and device of game auxiliary functions
CN107844320A (en) * 2017-09-27 2018-03-27 国网福建省电力有限公司 State's net software version information management system and implementation method
CN107943591A (en) * 2017-12-05 2018-04-20 郑州云海信息技术有限公司 A kind of method of more host processes management based on linux
CN108717360A (en) * 2018-08-24 2018-10-30 江苏神州信源系统工程有限公司 A kind of software version updating method and device
US20190018670A1 (en) * 2017-07-13 2019-01-17 Vmware, Inc. Method to deploy new version of executable in node based environments
WO2019028992A1 (en) * 2017-08-09 2019-02-14 上海壹账通金融科技有限公司 Multi-module version dependency relationship construction method, device, server and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521099A (en) * 2011-11-24 2012-06-27 深圳市同洲视讯传媒有限公司 Process monitoring method and process monitoring system
CN105771238A (en) * 2014-12-24 2016-07-20 北京奇虎科技有限公司 Operating method and device of game auxiliary functions
CN105512027A (en) * 2015-11-26 2016-04-20 珠海多玩信息技术有限公司 Process state monitor method and device
US20190018670A1 (en) * 2017-07-13 2019-01-17 Vmware, Inc. Method to deploy new version of executable in node based environments
WO2019028992A1 (en) * 2017-08-09 2019-02-14 上海壹账通金融科技有限公司 Multi-module version dependency relationship construction method, device, server and storage medium
CN107844320A (en) * 2017-09-27 2018-03-27 国网福建省电力有限公司 State's net software version information management system and implementation method
CN107943591A (en) * 2017-12-05 2018-04-20 郑州云海信息技术有限公司 A kind of method of more host processes management based on linux
CN108717360A (en) * 2018-08-24 2018-10-30 江苏神州信源系统工程有限公司 A kind of software version updating method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
LEBRON_ZHB: "linux免密码登录节点服务器", 《CSDN HTTPS://BLOG.CSDN.NET/QQ_42906907/ARTICLE/DETAILS/82684139?》 *
RANGER2: "使用jsvc启动java进程", 《CSDN HTTPS://BLOG.CSDN.NET/RANGER2/ARTICLE/DETAILS/106341260?》 *

Similar Documents

Publication Publication Date Title
US10019240B2 (en) Method and apparatus for detecting code change
CN107122296B (en) Method and apparatus for data assertion for test interface
CN108427731B (en) Page code processing method and device, terminal equipment and medium
CN110659256B (en) Multi-computer room synchronization method, computing device and computer storage medium
CN106708704B (en) Method and device for classifying crash logs
CN110096314B (en) Interface initialization method, device, equipment and computer readable storage medium
CN107066519B (en) Task detection method and device
WO2019227641A1 (en) Application testing method, apparatus, terminal device and medium
CN111104246B (en) Method, device, computer equipment and storage medium for improving verification efficiency of error detection and correction of DRAM
WO2015103917A1 (en) Management method and apparatus of wireless routing device
CN111615688A (en) Assertion verification code binding method and device
CN110909361A (en) Vulnerability detection method and device and computer equipment
CN110008758B (en) ID obtaining method and device, electronic equipment and storage medium
CN110851207A (en) State transition management method and device, electronic equipment and computer readable storage medium
US10567549B2 (en) Distributed database transaction processing method, device based on GPS atomic clock server
CN111522579A (en) Version environment process detection method, device and storage medium
CN109740336B (en) Method and device for identifying verification information in picture and electronic equipment
CN108647516B (en) Method and device for defending against illegal privilege escalation
CN116305322A (en) Program signature verification method and device, storage medium and electronic equipment
CN111371818B (en) Data request verification method, device and equipment
US11507367B2 (en) Firmware update method and firmware update system thereof
CN110740062B (en) Breakpoint resume method and device
US20200311169A1 (en) Apparatus and method for determining types of uniform resource locator
CN112328288A (en) Method, system, equipment and storage medium for updating server component
CN112256465A (en) Method and device for repairing memory bank errors

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200811