CN116909645A - System starting method, device, equipment and storage medium - Google Patents

System starting method, device, equipment and storage medium Download PDF

Info

Publication number
CN116909645A
CN116909645A CN202310808404.2A CN202310808404A CN116909645A CN 116909645 A CN116909645 A CN 116909645A CN 202310808404 A CN202310808404 A CN 202310808404A CN 116909645 A CN116909645 A CN 116909645A
Authority
CN
China
Prior art keywords
target system
file
starting
configuration
determining
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
CN202310808404.2A
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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202310808404.2A priority Critical patent/CN116909645A/en
Publication of CN116909645A publication Critical patent/CN116909645A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44594Unloading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45562Creating, deleting, cloning virtual machine instances
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45575Starting, stopping, suspending or resuming virtual machine instances

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The application provides a system starting method, device, equipment and storage medium, and relates to the field of financial science and technology or other related fields. The method comprises the following steps: acquiring a target system starting request, wherein the system starting request is used for requesting to start a target system, and the target system is realized through Java language; closing the running program in the target system according to the system starting request; determining a dependence file and a configuration file of the target system, wherein the dependence file is used for storing general classes required for starting the target system, and the configuration file is used for storing environment configuration parameters required for starting the target system; and starting the target system according to the dependent file and the configuration file. The method overcomes the defects that more memory is occupied and maintenance is needed when middleware software starts the Java system, and achieves the aim of starting the Java system to be light.

Description

System starting method, device, equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a system startup method, apparatus, device, and storage medium.
Background
With the continuous development of computer technology, financial institutions are gradually applying it to production and living.
When a financial institution system with a relatively wide Java class is started, the tasks of file configuration, system start-stop, environment configuration parameter maintenance and the like need to be completed, and middleware software is generally adopted to complete the tasks. In the process of completing system starting by using middleware software, more memory is occupied, and meanwhile, the maintenance of the middleware software itself also consumes manpower and time.
At present, how to simply implement the starting of the Java system is a problem to be solved.
Disclosure of Invention
The application provides a system starting method, device, equipment and storage medium, which overcome the defects that more memory is occupied and maintenance is needed when middleware software starts a Java system, and fulfill the aim of starting the Java system to be light.
In one aspect, the present application provides a method for starting a system, including:
acquiring a target system starting request, wherein the system starting request is used for requesting to start a target system, and the target system is realized through Java language;
closing the running program in the target system according to the system starting request;
Determining a dependence file and a configuration file of the target system, wherein the dependence file is used for storing general classes required for starting the target system, and the configuration file is used for storing environment configuration parameters required for starting the target system;
and starting the target system according to the dependent file and the configuration file.
Optionally, determining the dependency file and the configuration file includes:
displaying a default configuration scheme and operation controls on a configuration page, wherein the default configuration scheme comprises a recommendation dependent file and recommendation configuration parameters, and the operation controls comprise a confirmation control and an editing control;
and determining the dependent file and the configuration file in response to clicking operation input to the operation control.
Optionally, the operation control is the editing control; and responding to clicking operation input to the operation control, determining the dependent file and the configuration file, wherein the method comprises the following steps:
responding to clicking operation input to the editing control, and displaying a text editing box of a dependent file and a text editing box of an environment configuration parameter;
acquiring a dependent file text input in the dependent file text editing box, and determining the dependent file according to the dependent file text;
And acquiring an environment parameter text input in the environment configuration parameter text editing box, determining the environment configuration parameters according to the environment parameter text, and determining the configuration file according to the environment configuration parameters.
Optionally, the operation control is the confirmation control; and responding to clicking operation input to the operation control, determining the dependent file and the configuration file, wherein the method comprises the following steps:
responding to clicking operation input to the confirmation control, and determining the configuration file according to the recommended environment configuration parameters;
and determining the dependent file according to the recommended dependent file.
Optionally, closing the running program in the target system according to the system start request includes:
acquiring a first number of running programs in the target system;
if the first number is not 0, executing a program closing command on the running program to close the running program.
Optionally, after the target system is started according to the dependency file and the configuration file, the method further includes:
acquiring a system restart request;
acquiring a second number of called programs in the target system;
If the second number is 0, sending a restart notification request to preset equipment;
and receiving a restart demand response, and restarting the target system according to the restart demand response, wherein the restart demand response comprises a confirmation result, and the confirmation result comprises a restart execution and a non-restart execution.
Optionally, restarting the target system according to the restart demand response includes:
if the confirmation result is that the execution is restarted, acquiring the current moment;
confirming whether the current moment is in a preset service time period or not;
and restarting the target system if the current moment is not in the preset service time period.
In another aspect, the present application provides a system start-up device, comprising:
the system comprises an acquisition module, a control module and a control module, wherein the acquisition module is used for acquiring a target system starting request, the system starting request is used for requesting to start a target system, and the target system is realized through Java language;
the closing module is used for closing the running program in the target system according to the system starting request;
the system comprises a determining module, a judging module and a judging module, wherein the determining module is used for determining a dependent file and a configuration file of the target system, the dependent file is used for storing general classes required by starting the target system, and the configuration file is used for storing environment configuration parameters required by starting the target system;
And the starting module is used for starting the target system according to the dependent file and the configuration file.
In a possible implementation manner, the determining module 503 is specifically configured to:
displaying a default configuration scheme and operation controls on a configuration page, wherein the default configuration scheme comprises a recommendation dependent file and recommendation configuration parameters, and the operation controls comprise a confirmation control and an editing control;
and determining the dependent file and the configuration file in response to clicking operation input to the operation control.
In a possible implementation manner, the determining module 503 is specifically configured to:
responding to clicking operation input to the editing control, and displaying a text editing box of a dependent file and a text editing box of an environment configuration parameter;
acquiring a dependent file text input in the dependent file text editing box, and determining the dependent file according to the dependent file text;
and acquiring an environment parameter text input in the environment configuration parameter text editing box, determining the environment configuration parameters according to the environment parameter text, and determining the configuration file according to the environment configuration parameters.
In a possible implementation manner, the determining module 503 is specifically configured to:
Responding to clicking operation input to the confirmation control, and determining the configuration file according to the recommended environment configuration parameters;
and determining the dependent file according to the recommended dependent file.
In one possible implementation, the shutdown module 502 is specifically configured to:
acquiring a first number of running programs in the target system;
if the first number is not 0, executing a program closing command on the running program to close the running program.
In one possible implementation, the starting module 504 is specifically configured to:
acquiring a system restart request;
acquiring a second number of called programs in the target system;
if the second number is 0, sending a restart notification request to preset equipment;
and receiving a restart demand response, and restarting the target system according to the restart demand response, wherein the restart demand response comprises a confirmation result, and the confirmation result comprises a restart execution and a non-restart execution.
In one possible implementation, the starting module 504 is specifically configured to:
if the confirmation result is that the execution is restarted, acquiring the current moment;
confirming whether the current moment is in a preset service time period or not;
And restarting the target system if the current moment is not in the preset service time period.
In a third aspect of the present application, there is provided an electronic apparatus comprising:
a processor and a memory;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored in the memory to cause the electronic device to perform the method of any one of the first aspects.
In a fourth aspect of the application, there is provided a computer readable storage medium having stored therein computer executable instructions which when executed by a processor are adapted to carry out the method of any of the first aspects.
In a fifth aspect of the application, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the method according to any of the first aspects.
The embodiment provides a system starting method, a device, equipment and a storage medium, wherein the method comprises the steps of firstly acquiring a target system starting request; secondly, closing the running program in the target system according to the system starting request; then, determining a dependent file and a configuration file of the target system; and finally, starting the target system according to the dependent file and the configuration file. According to the method, by closing the running program in the target system, the dependent file and the configuration file of the target system are determined, and the system is started according to the dependent file and the configuration file, so that the defects that more memory is occupied and maintenance is needed when middleware software starts the Java system are overcome, and the aim of starting the Java system to be light is fulfilled.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
FIG. 1 is a specific application scenario diagram of a system start method provided by the present application;
FIG. 2 is a flowchart of a method for starting up a system according to an embodiment of the present application;
FIG. 3a is a flowchart of a second method for starting up a system according to an embodiment of the present application;
FIG. 3b is a schematic diagram of a configuration page according to an embodiment of the present application;
FIG. 4 is a flowchart III of a method for starting a system according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a starting device of a system according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Specific embodiments of the present application have been shown by way of the above drawings and will be described in more detail below. The drawings and the written description are not intended to limit the scope of the inventive concepts in any way, but rather to illustrate the inventive concepts to those skilled in the art by reference to the specific embodiments.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of apparatus and methods consistent with aspects of the application as detailed in the accompanying claims.
It should be noted that, the user information (including but not limited to user equipment information, user personal information, etc.) and the data (including but not limited to data for analysis, stored data, presented data, etc.) related to the present application are information and data authorized by the user or fully authorized by each party, and the collection, use and processing of the related data need to comply with related laws and regulations and standards, and provide corresponding operation entries for the user to select authorization or rejection.
It should be noted that the method and apparatus for starting the system of the present application may be used in the field of financial technology, and may be used in any field other than the field of financial technology, and the application field of the method and apparatus for starting the system of the present application is not limited.
Fig. 1 is a specific application scenario diagram of a starting method of a system provided by the present application. As shown in fig. 1, the application scenario includes: middleware software and Java systems. Illustratively, the user needs to do so by middleware software when starting the Java system. The user receives the request to start the Java system by sending the request to the middleware software, and sends the request for starting the Java system to the Java system, and the Java system receives the request and starts.
Middleware software is basic software applied to a distributed system, is positioned between an application, an operating system and a database, is mainly used for solving the problems of data transmission, data access, application calling, system construction, system integration, flow management and the like in a distributed environment, and is a platform for supporting application development, operation and integration in the distributed environment. Software including Tomcat and WAS may be used when implementing the startup function of the Java system. The Tomcat is a Servlet container, realizes the support of servlets and JSPs, and provides some special functions as Web servers, such as Tomcat management and control platform, security domain management and Tomcat valve, etc. WAS is a security service for a web application program, and provides a targeted security solution based on the characteristics of the whole architecture of an application system and the personalized requirements of the application system, and becomes a security service required by a user through experience from first line, so that the security of the web application program is ensured, and immeasurable loss caused by security problems is effectively reduced.
The middleware software is used for completing the starting of the Java system, and more memory is required to be occupied. Meanwhile, middleware software needs maintenance work such as updating and upgrading, which consumes more time and effort of users.
The application provides a starting method of a system, which aims to solve the technical problems in the prior art.
The application provides a system starting method, which determines the dependent file and the configuration file of a target system by closing the running program in the target system, and starts the system according to the dependent file and the configuration file, thereby overcoming the defects that more memory is occupied and maintenance is required when middleware software starts a Java system, and completing the aim of starting the Java system to be light.
The following describes the technical scheme of the present application and how the technical scheme of the present application solves the above technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 2 is a flowchart of a method for starting up a system according to an embodiment of the present application. As shown in fig. 2, the method of the present embodiment includes:
s201, acquiring a target system starting request, wherein the system starting request is used for requesting to start a target system, and the target system is realized through Java language;
the execution body of the embodiment of the application can be electronic equipment or a starting device of a system arranged in the electronic equipment. Alternatively, the starting device of the system may be implemented by software, or may be implemented by a combination of software and hardware. The electronic device may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, or the like.
In this embodiment, the target system refers to a system that needs to be started, and the system may be a system in a financial institution. Meanwhile, the target system is realized through Java language. The operating environment of the system may be various linux systems. The target system starting request may include the identifier of the target system, starting operation, time when starting is required, and the like.
Compared with the starting process of the C++ program, the source code of the Java system is compiled once to become intermediate code, and the intermediate code is interpreted by an interpreter to be machine code. The intermediate code is a bytecode and the interpreter is provided in the JVM. JVM is an abbreviation for Java Virtual Machine (Java virtual machine), a specification for computing devices, which is an imaginary computer implemented by emulating various computer functions on an actual computer. Therefore, before starting the Java system process, an environment compatible with the Java system needs to be configured. Thereafter, as with programs in other languages, it is necessary to check whether or not a program of the system is running, set a boot port, configure a database, and the like.
In this embodiment, after the target system start request is obtained, the system that needs to be started can be determined, and for the financial institution, a plurality of systems are usually set because of the business needs. After the request is acquired, the target system can be determined in a plurality of systems according to the identification of the target system.
S202, closing a running program in a target system according to a system starting request;
in this embodiment, after the target system start request is acquired, the running program in the target system needs to be closed according to the system start request. Wherein the target system comprises at least one program. The purpose of shutting down the running program is to prevent the program from starting repeatedly during the system start-up, resulting in a program start-up failure or multiple identical programs being started up simultaneously.
For example, if two running programs of a and B are owned in the target system, and if the two programs are not closed, the system is directly restarted, the repeated opening of a or B will be caused, that is, two identical programs of A1 and A2 exist in the target system; it may also occur that a or B cannot be started normally when the target system starts up due to forced shutdown.
Alternatively, shutting down the running program in the target system according to the system start request may take a variety of forms. For example, the following means may be adopted:
acquiring a first number of running programs in a target system;
if the first number is not 0, a program shutdown command is executed on the running program to shutdown the running program.
Specifically, the number of programs running in the target system, i.e., the first number, is first acquired. The state of the current process may be displayed in various ways at this time, for example, using ps commands in Linux. Thereafter, an operation to shut down the program is determined based on the first number. Judging whether the first number is 0 or not, if the first number is not 0, indicating that the running program exists in the current target system, namely, the running program needs to be closed before starting; if the first number is 0, it indicates that there is no running program in the current target system, that is, there is no need to perform the operation of closing the program before starting.
On the basis of determining that the running program needs to be shut down, the running program may be shut down in a number of ways. The specified program is forced to terminate, for example, with a kill command in Linux. The working principle of the kill command is that a system operation signal and a process identification number of a certain program are sent to a kernel of the Linux system, and then the kernel of the system can operate a process designated by the process identification number.
The method has the advantages that whether the running program exists in the target system or not is simply and quickly determined through the first number, and then the running program is closed, so that program starting errors in the starting process are avoided.
S203, determining a dependent file and a configuration file of the target system, wherein the dependent file is used for storing general classes required by starting the target system, and the configuration file is used for storing environment configuration parameters required by starting the target system;
in this embodiment, the dependency file refers to a jar file, which is also called a jar dependency package. The jar file is known as Java Archive File, meaning a Java archive file, compatible with the usual ZIP compression files. The jar file is used to store related metadata and resource (text, picture, etc.) files, etc. to a file in addition to the general class required to start the target system, so as to develop Java platform application software or libraries.
The configuration file refers to a config. Txt file for storing environment configuration parameters required to start the target system. The environment configuration parameters herein include, but are not limited to, parameters such as boot port, configured JDBC string, etc. Where JDBC strings are expressions used to operate on a database. Among them, JDBC (Java Data Base Connectivity, java database connection) is a Java API for executing SQL statements, which can provide unified access to various relational databases, and is composed of a set of classes and interfaces written in Java language. In the database operation of JDBC, a transaction is an indivisible unit of work consisting of one or more expressions. The operation of the transaction is ended by either submitting commit () or rollback ().
In this embodiment, the dependent files of the target system may be set according to the service requirement, that is, all the dependent files are not needed, but the specified dependent files are determined according to the requirement, so that the memory of the target system may be saved, and the starting speed of the target system may be increased. The configuration file can be set according to the service requirement, and the program is not required to be modified at this time, but the environment configuration parameters in the configuration file are modified. The method has the advantage that when the environment configuration parameters need to be changed, the modification operation can be simply and efficiently performed.
S204, starting the target system according to the dependent file and the configuration file.
In this embodiment, the dependency files and configuration files of the target system are determined, that is, the dependency files such as the general class on which the target system is started are determined, and meanwhile, the environment configuration is determined according to the service requirement. On this basis, the target system can be started. Specifically, the method comprises the steps of compiling Java programs, creating virtual machines, creating class loaders such as boot class loader instances and JVM starter instances, obtaining instances and class loaders of current classes, calling and loading the classes to be operated, and completing starting of a target system after executing a main function.
Specifically, the steps may be performed in various manners, for example, writing a script, and performing the script. In addition to starting the target system, other timing tasks may be set in the script. The method has the advantages that a plurality of steps for starting the target system are completed by executing the script, the memory occupied by the script is small, meanwhile, the operation is simple when the dependent file and the configuration file are set according to the service requirement, the starting process of the target system is simplified, and meanwhile, the starting of the target system achieves the aim of light weight.
The embodiment provides a system starting method, which comprises the steps of firstly obtaining a target system starting request; secondly, closing the running program in the target system according to the system starting request; then, determining a dependent file and a configuration file of the target system; and finally, starting the target system according to the dependency file and the configuration file. According to the method, by closing the running program in the target system, the dependent file and the configuration file of the target system are determined, and the system is started according to the dependent file and the configuration file, so that the defects that more memory is occupied and maintenance is needed when middleware software starts the Java system are overcome, and the aim of starting the Java system to be light is fulfilled.
Fig. 3a is a flowchart of a second method for starting up a system according to an embodiment of the present application. As shown in fig. 3a, the method of the present embodiment describes in detail the process of determining the dependency files and the configuration files on the basis of the embodiment shown in fig. 2.
S301, displaying a default configuration scheme and an operation control on a configuration page, wherein the default configuration scheme comprises a recommendation dependency file and recommendation configuration parameters, and the operation control comprises a confirmation control and an editing control;
in this embodiment, the dependency files and the configuration files are determined by means of page entry. Fig. 3b is a schematic diagram of a configuration page provided in an embodiment of the present application, as shown in fig. 3b, in this process, a default configuration scheme and an operation control are first displayed on the configuration page. The default configuration scheme includes a recommendation dependency file and recommendation configuration parameters that need to be predetermined. An operation control refers to a control for operating a default configuration scheme, including confirming use of the scheme, or modifying the scheme. The operation controls thus include a confirmation control and an edit control.
Specifically, the determination of the default configuration scheme may be determined according to various manners, for example, according to big data, that is, through collecting data of the internet or the cloud, through algorithm processing, and through analysis and screening, the recommendation dependency file and the recommendation configuration parameter in the default configuration scheme are determined. Or may be determined based on a user's historical dependent files and environmental configuration parameters.
In this embodiment, after the running program in the target system is closed according to the system start request, the configuration page is displayed, so that the user can determine whether to use the default configuration scheme or modify the default configuration scheme according to the service requirement. The dependency files and configuration files may then be determined in response to a click operation entered on the operation control.
The proposal has the advantages of providing more choices for users, being convenient for the users to set the dependent files and the configuration files as much as possible, and being capable of fully utilizing big data and historical data.
S302, responding to click operation input to an editing control, and displaying a text editing box of a dependent file and a text editing box of an environment configuration parameter;
when the user clicks the editing control, that is, the operation control selected by the user to operate is the editing control, it is stated that the user does not need to adopt a default configuration scheme on the configuration page, but needs to set the dependent file and recommended configuration parameters, so as to determine the dependent file and the configuration file. Thus, in response to a click operation entered on the editing control, a dependent file text editing box and an environment configuration parameter text editing box are displayed. The user can input the identification of the dependent text in the text editing box of the dependent file, and input the environment configuration parameters to be configured in the text editing box of the environment configuration parameters.
Specifically, the text editing box of the file and the text editing box of the environment configuration parameters comprise functions of error checking and formatting, so that a user prompts when filling in errors, and simultaneously formats the text filled in by the user and processes the text into a uniform format.
S303, acquiring a dependent file text input in a dependent file text editing box, and determining a dependent file according to the dependent file text;
when the user fills in the dependency file text edit box on the configuration page, the dependency file text is acquired after the dependency file text is filled in, the dependency text identification selected by the user can be determined, and the corresponding dependency file can be determined according to the dependency text identification.
Alternatively, the dependency files support independent configuration and batch configuration, which may be performed when multiple dependency files need to be determined. The benefit of this approach is that the user can quickly and easily configure the dependent files.
S304, acquiring an environment parameter text input in an environment configuration parameter text editing box, determining environment configuration parameters according to the environment parameter text, and determining a configuration file according to the environment configuration parameters;
when the user fills in the environment configuration parameter text editing box on the configuration page, the environment configuration parameters selected by the user can be determined by acquiring the environment parameter text. On the basis, the configuration file is determined according to the obtained environment parameter text.
Alternatively, the environment configuration parameters support independent configuration and batch configuration, which may be performed when multiple environment configuration parameters need to be determined. The advantage of this solution is that the user can configure the configuration file quickly and easily.
S305, responding to clicking operation input to the confirmation control, and determining a configuration file according to recommended environment configuration parameters;
when the user clicks the confirmation control, namely the operation control selected by the user to operate is the confirmation control, the user is informed of adopting a default configuration scheme on the configuration page. At this time, the configuration file is quickly determined according to the recommended environmental configuration parameters in the default configuration scheme.
S306, determining the dependent file according to the recommended dependent file.
On the basis of determining that the user adopts the default configuration scheme on the configuration page, the dependence file can be determined according to the recommended dependence file.
The method has the advantages that the configuration page guides the user to set the dependent file and the environment configuration parameters, so that the operation of the user is convenient, the use threshold of the method is reduced, and the user experience is greatly improved.
Those skilled in the art will appreciate that the default configuration scheme, the operation controls, the file-dependent text edit box, and the setting and location of the environment configuration parameter text edit box in the configuration page are not limited to the embodiments described above.
The embodiment provides a system starting method, which comprises the steps of firstly displaying a default configuration scheme and operation controls on a configuration page; then, responding to click operation input to the editing control, displaying a text editing box of the dependent file and a text editing box of the environment configuration parameter; then, acquiring a dependent file text input in a dependent file text editing box, and determining a dependent file according to the dependent file text; secondly, acquiring an environment parameter text input in an environment configuration parameter text editing box, determining environment configuration parameters according to the environment parameter text, and determining a configuration file according to the environment configuration parameters; or, in response to clicking operation input to the confirmation control, determining a configuration file according to recommended environment configuration parameters; then, the dependent file is determined according to the recommended dependent file. According to the method, the dependence file and the configuration file are determined in a page input mode, and a default configuration scheme is provided, so that a user can simply and quickly modify the dependence file and the environment configuration parameters, and meanwhile, the default configuration scheme is provided, and user experience is greatly improved.
Fig. 4 is a flowchart of a method for starting a system according to an embodiment of the present application. As shown in fig. 4, the method of the present embodiment describes in detail the process of restarting the target system on the basis of the embodiment shown in fig. 2.
S401, acquiring a system restart request;
in this embodiment, after the target system is started according to the dependency file and the configuration file, the target system may be restarted. Restarting a target system refers to restarting the target system when the target system is running for various reasons, such as requiring maintenance of the system, updating of the system, and the like. The system restart request typically includes information such as an identification of the system that needs to be restarted and the time of the restart. The first step in restarting the target system is to determine the target system, and after a system restart request is acquired, the identification of the target system can be determined by analyzing the request.
S402, acquiring a second number of called programs in a target system;
in this embodiment, after the system restart request is acquired, it is required to determine whether there is a called program in the current target system according to the system restart request. This prevents some programs from being used by the customer, but the service is terminated due to the abrupt closure of the restart operation, reducing the customer's use experience.
In particular, determining whether there are called programs in the target system may be performed in a number of ways, for example, by detecting a flow request to determine the number of called programs, i.e., the second number. Thereafter, operation of restarting the target system is determined based on the second number.
S403, if the second number is 0, sending a restart notification request to preset equipment;
if the second number is 0, it indicates that there is no called program, that is, the condition for restarting the target system is satisfied. At this time, a restart notification request needs to be sent to the preset device. The purpose of this operation is to notify the relevant user that the target system needs to be restarted, and the relevant user determines whether a restart operation can be performed. Reasons for not being able to perform a restart operation include, but are not limited to: the target system needs to provide a service or the like at this time or a later time.
The method has the advantages that the application of the target system in actual production is fully considered, and the abrupt restarting is prevented from interrupting the service provided by the target system.
S404, receiving a restart demand response;
in this embodiment, after sending a restart notification request to a preset device, a restart demand response from the preset device is received, where the restart demand response includes a confirmation result, and the confirmation result includes performing a restart and not performing a restart. For example, when a user a wants to restart the target system, after determining that the second number is 0, the user a sends a restart notification request to the user B through the own computer a, and the user B decides whether to restart. Because the target system needs to provide a certain service in the subsequent designated time, if the target system does not agree with the restart, the computer B may send a restart request response including a confirmation result that the target system does not agree with the restart to the computer a through the preset device.
It should be noted that, the present embodiment does not limit how the execution body sends the restart notification request to the preset device and receives the restart demand response sent by the preset device. For example: the restart notification request can be sent to the preset device through a wide area network, the restart notification request can be sent to the preset device through a near field communication technology, the restart notification request can be sent to the preset device through a local area network, and the like. The above-mentioned near field communication technology may include, for example: bluetooth, wireless fidelity (Wireless Fidelity, abbreviated as WIFI), near field communication (Near Field Communication, abbreviated as NFC), infrared, ultraviolet, etc.
S405, if the confirmation result is that the restarting is executed, acquiring the current moment;
in this embodiment, when the confirmation result is that the restart is performed, the service period needs to be considered. The service period refers to a period of time during which the target system provides the primary service every day. For example, a financial institution system typically provides service from 7 a.k.a. To 23 a.d., where 7 a.k.a. To 23 a.d. is the service period. In view of the user experience, a restart or other operation is not typically performed during the service period, such as a financial institution system typically performing a restart upgrade maintenance operation in the early morning.
S406, confirming whether the current moment is in a preset service time period or not;
the present application further determines whether to perform a restart by determining whether the current time is within the service period. In fact, if the restart time in the system restart request is not the current time, whether to execute the restart is further determined according to whether the restart time is within the preset service period.
S407, restarting the target system if the current moment is not in the preset service time period.
If the current time is not within the preset service time period, the target system is not affected if the restart is executed, so that the target system can be restarted.
The method has the advantages that whether to restart the target system is determined by adopting a mode of two acknowledgements, so that the safety of the target system is ensured.
The embodiment provides a system starting method, which comprises the steps of firstly obtaining a system restarting request; subsequently, a second number of called programs in the target system is acquired; if the second number is 0, sending a restart notification request to preset equipment; then, receiving a restart demand response; if the confirmation result is that the restarting is executed, acquiring the current moment; then, confirming whether the current moment is within a preset service time period or not; and restarting the target system if the current moment is not within the preset service time period. The method determines whether to perform a restart operation by transmitting a restart notification request to a preset device and confirming whether it is within a preset service period, so that the security of a target system is ensured.
Fig. 5 is a schematic structural diagram of a starting device of a system according to an embodiment of the present application. The apparatus of this embodiment may be in the form of software and/or hardware. As shown in fig. 5, a system starting apparatus 500 provided in an embodiment of the present application includes an obtaining module 501, a closing module 502, a determining module 503 and a starting module 504,
the obtaining module 501 is configured to obtain a target system start request, where the system start request is used to request to start a target system, and the target system is implemented through Java;
a closing module 502, configured to close a running program in the target system according to a system start request;
a determining module 503, configured to determine a dependency file of the target system, where the dependency file is used to store a general class required for starting the target system, and a configuration file, where the configuration file is used to store an environmental configuration parameter required for starting the target system;
a starting module 504, configured to start the target system according to the dependency file and the configuration file.
In a possible implementation manner, the determining module 503 is specifically configured to:
displaying a default configuration scheme and an operation control on a configuration page, wherein the default configuration scheme comprises a recommendation dependent file and recommendation configuration parameters, and the operation control comprises a confirmation control and an editing control;
In response to a click operation entered on the operation control, a dependency file and a configuration file are determined.
In a possible implementation manner, the determining module 503 is specifically configured to:
responding to click operation input to the editing control, and displaying a text editing box of the dependent file and a text editing box of the environment configuration parameter;
acquiring a dependent file text input in a dependent file text editing box, and determining a dependent file according to the dependent file text;
the method comprises the steps of obtaining an environment parameter text input in an environment configuration parameter text editing box, determining environment configuration parameters according to the environment parameter text, and determining configuration files according to the environment configuration parameters.
In a possible implementation manner, the determining module 503 is specifically configured to:
responding to click operation input to the confirmation control, and determining a configuration file according to recommended environment configuration parameters;
and determining the dependent file according to the recommended dependent file.
In one possible implementation, the shutdown module 502 is specifically configured to:
acquiring a first number of running programs in a target system;
if the first number is not 0, a program shutdown command is executed on the running program to shutdown the running program.
In one possible implementation, the starting module 504 is specifically configured to:
Acquiring a system restart request;
acquiring a second number of called programs in the target system;
if the second number is 0, sending a restart notification request to preset equipment;
and receiving a restart demand response, restarting the target system according to the restart demand response, wherein the restart demand response comprises a confirmation result, and the confirmation result comprises the execution of the restart and the non-execution of the restart.
In one possible implementation, the starting module 504 is specifically configured to:
if the confirmation result is that the restarting is executed, acquiring the current moment;
confirming whether the current moment is within a preset service time period or not;
and restarting the target system if the current moment is not within the preset service time period.
The device for starting the system provided in this embodiment may be used to execute the above method embodiment, and its implementation principle and technical effects are similar, and this embodiment will not be described herein.
Referring to fig. 6, the electronic device 20 may include a processor 21 and a memory 22. The processor 21, the memory 22, and the like are illustratively interconnected by a bus 23.
Memory 22 stores computer-executable instructions;
the processor 21 executes computer-executable instructions stored in the memory 22 to cause the electronic device to perform a method of starting up a system as described above.
It should be understood that the processor 21 may be a central processing unit (in english: central Processing Unit, abbreviated as CPU), or may be other general purpose processors, digital signal processors (in english: digital Signal Processor, abbreviated as DSP), application specific integrated circuits (in english: application Specific Integrated Circuit, abbreviated as ASIC), or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present application may be embodied directly in a hardware processor for execution, or in a combination of hardware and software modules in a processor for execution. The memory 22 may include a high-speed random access memory (in english: random Access Memory, abbreviated as RAM), and may further include a Non-volatile memory (in english: NVM), such as at least one magnetic disk memory, and may also be a U-disk, a removable hard disk, a read-only memory, a magnetic disk, or an optical disk.
The embodiment of the application correspondingly provides a computer readable storage medium, wherein the computer readable storage medium stores computer execution instructions, and the computer execution instructions are used for realizing a starting method of the system when being executed by the processor.
The embodiment of the application correspondingly provides a computer program product, which comprises a computer program, and the computer program realizes the starting method of the system when being executed by a processor.
It should be noted that, the user information (including but not limited to user equipment information, user personal information, etc.) and the data (including but not limited to data for analysis, stored data, presented data, etc.) related to the present application are information and data authorized by the user or fully authorized by each party, and the collection, use and processing of the related data need to comply with the related laws and regulations and standards of the related country and region, and provide corresponding operation entries for the user to select authorization or rejection.
Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It is to be understood that the application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (11)

1. A method for starting up a system, comprising:
acquiring a target system starting request, wherein the system starting request is used for requesting to start a target system, and the target system is realized through Java language;
closing the running program in the target system according to the system starting request;
determining a dependence file and a configuration file of the target system, wherein the dependence file is used for storing general classes required for starting the target system, and the configuration file is used for storing environment configuration parameters required for starting the target system;
and starting the target system according to the dependent file and the configuration file.
2. The method of claim 1, wherein determining the dependency file and the configuration file comprises:
displaying a default configuration scheme and operation controls on a configuration page, wherein the default configuration scheme comprises a recommendation dependent file and recommendation configuration parameters, and the operation controls comprise a confirmation control and an editing control;
And determining the dependent file and the configuration file in response to clicking operation input to the operation control.
3. The method of claim 2, wherein the operational control is the editing control; and responding to clicking operation input to the operation control, determining the dependent file and the configuration file, wherein the method comprises the following steps:
responding to clicking operation input to the editing control, and displaying a text editing box of a dependent file and a text editing box of an environment configuration parameter;
acquiring a dependent file text input in the dependent file text editing box, and determining the dependent file according to the dependent file text;
and acquiring an environment parameter text input in the environment configuration parameter text editing box, determining the environment configuration parameters according to the environment parameter text, and determining the configuration file according to the environment configuration parameters.
4. The method of claim 2, wherein the operational control is the confirmation control; and responding to clicking operation input to the operation control, determining the dependent file and the configuration file, wherein the method comprises the following steps:
responding to clicking operation input to the confirmation control, and determining the configuration file according to the recommended environment configuration parameters;
And determining the dependent file according to the recommended dependent file.
5. The method of claim 1, wherein shutting down the running program in the target system in response to the system start-up request comprises:
acquiring a first number of running programs in the target system;
if the first number is not 0, executing a program closing command on the running program to close the running program.
6. The method of claim 1, further comprising, after starting the target system based on the dependency file and the configuration file:
acquiring a system restart request;
acquiring a second number of called programs in the target system;
if the second number is 0, sending a restart notification request to preset equipment;
and receiving a restart demand response, and restarting the target system according to the restart demand response, wherein the restart demand response comprises a confirmation result, and the confirmation result comprises a restart execution and a non-restart execution.
7. The method of claim 6, wherein restarting the target system in accordance with the restart demand response comprises:
If the confirmation result is that the execution is restarted, acquiring the current moment;
confirming whether the current moment is in a preset service time period or not;
and restarting the target system if the current moment is not in the preset service time period.
8. A system activation device, comprising:
the system comprises an acquisition module, a control module and a control module, wherein the acquisition module is used for acquiring a target system starting request, the system starting request is used for requesting to start a target system, and the target system is realized through Java language;
the closing module is used for closing the running program in the target system according to the system starting request;
the system comprises a determining module, a judging module and a judging module, wherein the determining module is used for determining a dependent file and a configuration file of the target system, the dependent file is used for storing general classes required by starting the target system, and the configuration file is used for storing environment configuration parameters required by starting the target system;
and the starting module is used for starting the target system according to the dependent file and the configuration file.
9. An electronic device, comprising: a processor and a memory;
the memory stores computer-executable instructions;
the processor executing computer-executable instructions stored in the memory to cause the electronic device to perform the method of any one of claims 1 to 7.
10. A computer readable storage medium having stored therein computer executable instructions which when executed by a processor are adapted to carry out a method of starting up a system according to any of claims 1 to 7.
11. A computer program product comprising a computer program which, when executed by a processor, implements the method of any of claims 1 to 7.
CN202310808404.2A 2023-07-03 2023-07-03 System starting method, device, equipment and storage medium Pending CN116909645A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310808404.2A CN116909645A (en) 2023-07-03 2023-07-03 System starting method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310808404.2A CN116909645A (en) 2023-07-03 2023-07-03 System starting method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116909645A true CN116909645A (en) 2023-10-20

Family

ID=88366006

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310808404.2A Pending CN116909645A (en) 2023-07-03 2023-07-03 System starting method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116909645A (en)

Similar Documents

Publication Publication Date Title
US11853820B2 (en) Cross-process communication method, apparatus, and device
EP3128421B1 (en) Method, device, and system for achieving java application installation by cloud compilation
US10949191B2 (en) Patch-upgrade-based file processing method and apparatus, terminal, and storage medium
US9116776B2 (en) Updating software objects
US9690562B2 (en) Detecting computing processes requiring reinitialization after a software package update
US8316120B2 (en) Applicability detection using third party target state
US11556348B2 (en) Bootstrapping profile-guided compilation and verification
US11599654B2 (en) Method and apparatus for authority control, computer device and storage medium
EP2307977A1 (en) System and method for dynamic partitioning of applications in client-server environments
AU2013208203B2 (en) Contextual solicitation in a starter application
WO2020014926A1 (en) Patch package generation method and device
CN107220074A (en) To the access of supporting layer software function, upgrade method and device
CN108958785B (en) Application program upgrading method and device
CN113835723A (en) System on chip, upgrading system and method for vehicle electronic control unit
CN116909645A (en) System starting method, device, equipment and storage medium
CN113791824B (en) Peripheral driver loading method, system and medium of terminal equipment
CN109960522B (en) Software upgrading method and device
WO2015196524A1 (en) Software upgrade processing method and device, terminal and server
CN113050962B (en) Mobile service upgrading method, device and terminal
WO2022120640A1 (en) Electron-based updating method and system
CN111966413A (en) Configuration method and device
CN109298880B (en) Multi-version code generation method and device and electronic device
CN112988192A (en) Version updating method and device, electronic equipment and storage medium
CN114579167A (en) Method, device and storage medium for downloading application upgrade file
EP4276663A1 (en) Methods and systems for monitoring the behavior of a process

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