CN109189499A - Management method, device, computer equipment and the storage medium of java applet - Google Patents
Management method, device, computer equipment and the storage medium of java applet Download PDFInfo
- Publication number
- CN109189499A CN109189499A CN201810919781.2A CN201810919781A CN109189499A CN 109189499 A CN109189499 A CN 109189499A CN 201810919781 A CN201810919781 A CN 201810919781A CN 109189499 A CN109189499 A CN 109189499A
- Authority
- CN
- China
- Prior art keywords
- java applet
- configuration information
- starting
- pretrigger
- self
- 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.)
- Granted
Links
- 238000007726 management method Methods 0.000 title claims abstract description 30
- 238000012795 verification Methods 0.000 claims abstract description 40
- 230000007613 environmental effect Effects 0.000 claims description 42
- 238000004590 computer program Methods 0.000 claims description 18
- 230000006870 function Effects 0.000 abstract description 17
- 238000011161 development Methods 0.000 abstract description 12
- 238000000034 method Methods 0.000 description 15
- 238000001514 detection method Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 239000000203 mixture Substances 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 230000010485 coping Effects 0.000 description 1
- 230000009849 deactivation Effects 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000005538 encapsulation Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000002708 enhancing effect Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000012856 packing Methods 0.000 description 1
- 230000037452 priming Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
- G06F9/4451—User profiles; Roaming
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
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 invention discloses a kind of management method of java applet, device, computer equipment and storage mediums, which comprises receives the configuration information of java applet;Legitimacy verifies are carried out to the configuration information;If the configuration information verification passes through, preset script template is configured according to the configuration information, obtains target script;The target script is registered as to the self-starting service of linux system.Technical solution of the present invention provides a kind of mode of the booting self-starting of the realization java applet of simplicity, improves development efficiency, avoids some urgent functions from needing artificial starting after power-off due to run delay, lead to unpredictable mistake occur.
Description
Technical field
The present invention relates to field of computer technology more particularly to a kind of management method of java applet, device, computer to set
Standby and storage medium.
Background technique
Linux system has high efficiency and open source property, and developer generally uses linux system in project development process
It works, and in Java project development process, often have demand java applet being arranged under linux system, and
It is required that the java applet is able to maintain and runs always, so as to the normal execution of project development work.
If the case where encountering server power-off at present needs through manual type manually after server restarting
Deactivation java applet causes some urgent functions to need artificially to be started after power-off and postponed, Huo Zhexu
It writes complicated script java applet is registered in system self-starting service, but this is held by way of writing script
The case where addition self-starting serv-fail is easily caused because of the missing of configuration data or mistake, to influence the exploitation work of project
Make efficiency.
Summary of the invention
Based on this, it is necessary to which in view of the above technical problems, providing one kind can be according to successful configuration information be verified, automatically
Generate script, it is ensured that the correctness of script successfully realizes the booting self-starting of java applet, improves the Java of development efficiency
Management method, device, computer equipment and the storage medium of program.
A kind of management method of java applet, comprising:
Receive the configuration information of java applet;
Legitimacy verifies are carried out to the configuration information;
If the configuration information verification passes through, preset script template is configured according to the configuration information, is obtained
To target script;
The target script is registered as to the self-starting service of linux system.
A kind of managing device of java applet, comprising:
Information receiving module, for receiving the configuration information of java applet;
Information checking module, for carrying out legitimacy verifies to the configuration information;
Script generation module, if passing through for configuration information verification, according to the configuration information to preset foot
This template is configured, and target script is obtained;
Service register module, for the target script to be registered as to the self-starting service of linux system.
A kind of computer equipment, including memory, processor and storage are in the memory and can be in the processing
The computer program run on device, the processor realize the management method of above-mentioned java applet when executing the computer program
The step of.
A kind of computer readable storage medium, the computer-readable recording medium storage have computer program, the meter
The step of calculation machine program realizes the management method of above-mentioned java applet when being executed by processor.
Management method, device, computer equipment and the storage medium of above-mentioned java applet, by receiving matching for java applet
Confidence breath, and legitimacy verifies are carried out to configuration information, if detecting, configuration information is illegal, being capable of the letter of output error in time
Breath, so that user modifies according to error message, avoids causing configuration information mistake because of artificial fault, leads to Java journey
The case where sequence booting self-starting failure, carries out preset script template according to configuration information if configuration information verification passes through
Configuration obtains target script, and target script is registered in the self-starting service of linux system, it is ensured that java applet exists
The success rate of the booting self-starting of linux system, avoids some urgent functions from needing artificial starting after power-off due to run
Delay, leads to unpredictable mistake occur, to provide a kind of mode for realizing java applet booting self-starting of simplicity, mentions
High development efficiency.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention
Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention
Example, for those of ordinary skill in the art, without any creative labor, can also be according to these attached drawings
Obtain other attached drawings.
Fig. 1 is an application environment schematic diagram of the management method of java applet in one embodiment of the invention;
Fig. 2 is a flow chart of the management method of java applet in one embodiment of the invention;
Fig. 3 is to be verified in the management method of the java applet provided in the embodiment of the present invention to environmental variance parameter
One specific flow chart;
Fig. 4 is to execute parameter to program in the management method of the java applet provided in the embodiment of the present invention to be verified
One specific flow chart;
Fig. 5 is a specific flow chart of step S4 in Fig. 2;
Fig. 6 is a functional block diagram of the managing device of java applet in one embodiment of the invention;
Fig. 7 is a schematic diagram of computer equipment in one embodiment of the invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
The management method of java applet provided by the present application can be applicable in the application environment such as Fig. 1, the application environment packet
Include server-side and client, wherein be attached between server-side and client by network, user is carried out by client
The configuration information of java applet inputs, and the configuration information that server-side inputs user verifies, and is generated according to configuration information
Script is registered as the self-starting service of linux system by script.Client specifically can be, but not limited to be various individual calculus
Machine, laptop, smart phone, tablet computer and portable wearable device, server-side can specifically use independent service
The server cluster of device or multiple servers composition is realized.The embodiment of the present invention provides the method application of the management of java applet
In server-side.
In one embodiment, Fig. 2 shows a flow chart of the management method of java applet in the present embodiment, this method applications
Server-side in Fig. 1 inputs the configuration information of java applet for verifying user, it is ensured that the legitimacy of configuration information, and it is raw
It is registered as the self-starting service of linux system at script, improves development efficiency.As shown in Fig. 2, the pipe of the java applet
Reason method includes step S1 to step S4, and details are as follows:
S1: the configuration information of java applet is received.
In the present embodiment, Java is a kind of Programming language, and java applet is the application write using Java language
Program realizes the application program of product concrete function in Java project development.
Specifically, server-side receives user in the configuration information of the input of client, which is to need to be set as
The configuration information of the java applet of booting self-starting, since the java applet needs to keep long-play in linux system,
So as to the normal execution of development, therefore the java applet is arranged to be switched on after self-starting, can be switched in server
Starting in time afterwards, avoids some urgent functions from needing artificial starting after power-off due to run delay, causes appearance can not be pre-
The situation for the mistake estimated.
Further, user carries out configuration information according to the environment of java applet actual motion and the title of java applet
Input, configuration information can specifically include environmental variance parameter and program and executes parameter, and environmental variance parameter includes JDK
The catalogue in (Java Development Kit, Java development kit) path and java applet, program execute parameter and include
The letter of Java main program information, JVM (Java Virtual Machine, Java Virtual Machine) start-up parameter and database user
Breath.
Wherein, JDK is the exploitation environment of Java project, and the path JDK is the peace of Java context variable configuration in linux system
Path is filled, the catalogue of java applet is to the catalogue where the java applet of self-starting, and Java main program information is java applet
Principal function method class and java applet call jar packet, jar packet be packing store general class, JVM is Java language
Operation platform, belongs to an abstract computer, and the information of database user includes database user name and password, the user name
It is the username and password for starting the database for needing to access in java program process with password.
S2: legitimacy verifies are carried out to configuration information.
In the present embodiment, to configuration information carry out legitimacy verifies include to the legitimacy verifies of environmental variance parameter and
The legitimacy verifies that parameter is executed to program, when environmental variance parameter and program, which execute parameter, is all determined as legal parameter,
Then configuration information verification passes through, otherwise, when environmental variance parameter or program, which execute parameter, is determined as illegal parameter, then
It is illegal to identify configuration information, is determined as verification failure.
Further, according to user input configuration information, verification user input environmental variance parameter whether with Linux
Whether the environmental variance parameter of system setting is consistent, if the environmental variance parameter one of environmental variance parameter and linux system setting
Cause, it is determined that environmental variance parameter be it is legal, otherwise, if environmental variance parameter and linux system setting environmental variance join
Number is inconsistent, then it represents that and environmental variance parameter is illegal, meanwhile, whether the program of verification user's input executes parameter and can
Java applet is successfully started up, if java applet can be successfully started up, it is determined that pass through for verification, it is to close that representation program, which executes parameter,
Method, otherwise, if java applet cannot be started by executing parameter according to program, then it represents that it is illegal that program, which executes parameter,.
S3: if configuration information verification passes through, preset script template is configured according to configuration information, obtains target
Script.
In the present embodiment, script template is the shell script of editor's setting in advance, by doing at encapsulation to script template
Reason, the code of hidden function module, and easy interface is provided, will pass through the interface in predeterminated position in script template
Appearance is configured, and after configuration information verification passes through, the interface provided by script template fills out the configuration information that user inputs
It writes in script template on corresponding predeterminated position, so as to automatically generate target script, as booting self-starting service
Script.
S4: target script is registered as to the self-starting service of linux system.
Specifically, target script is stored to preset destination folder, which is opening certainly for linux system
The connection catalogue of launching process in dynamic project, and the booting that the title of target script is added to linux system is started into clothes automatically
It is engaged in list, executable permission is assigned to target script, so that the self-starting that target script is registered as linux system be taken
Business, and determine that the starting runlevel of the self-starting service, service open serial number and the information such as serial number are closed in service, wherein from
Start the smaller more preferential operation of starting runlevel of service, serial number is opened in service and service closes serial number size 00 to 99
Double figures in range under same starting runlevel, opens serial number by service when linux system starting up service
Sequence from small to large carries out starting self-starting service, when linux system shuts down service out of service, runs in same starting
Under rank, the sequence self-starting service out of service of serial number from big to small is closed by service.
In embodiments of the present invention, by receiving the configuration information of java applet, and legitimacy school is carried out to configuration information
Test, if detecting, configuration information is illegal, can timely output error message so that user modifies according to error message,
The case where avoiding causing configuration information mistake because of artificial fault, leading to java applet booting self-starting failure, if matching confidence
Breath verification passes through, then configures according to configuration information to preset script template, obtain target script, and target script is infused
Volume is into the self-starting service of linux system, it is ensured that java applet is kept away in the success rate of the booting self-starting of linux system
Exempt from some urgent functions to need artificial starting after power-off due to run delay, leads to unpredictable mistake occur, thus
A kind of mode for realizing java applet booting self-starting of simplicity is provided, development efficiency is improved.
In one embodiment, as shown in figure 3, when configuration information is environmental variance parameter, pair mentioned in step S2
Configuration information carries out legitimacy verifies, specifically comprises the following steps:
S211: environmental variance parameter is verified using preset regular expression.
In the present embodiment, environmental variance parameter includes the catalogue of the path JDK and java applet, and server-side receives user and exists
After the path JDK of client input and the catalogue of java applet, the path JDK and Java are verified using preset regular expression
Whether the catalogue of program is legal.
Specifically, the particular content of regular expression can be set in advance as var lnxPath=/^ ([/] [w-]+) *
$/, for verify the path JDK whether with linux system installation the path JDK it is consistent, and verification java applet catalogue exist
Linux system whether there is.
S212: if in linux system matching less than with the consistent information of environmental variance parameter, it is determined that for verification lose
It loses, and output error message, so that user modifies to environmental variance parameter according to error message.
Specifically, if matching is less than the catalogue with the consistent information in the path JDK or java applet in linux system
It is not present, it is determined that the failure of environmental variance parameter verification, and output error message, for example, output " path JDK is the illegal route "
Or the error messages such as " directory information mistake ", and user is prompted to re-start input.
It is understood that prompt of the user according to error message, can in time modify to environmental variance parameter, from
And it avoids due to the illegal of environmental variance parameter and causes java applet run-time error.
S213: if being matched in linux system and the consistent information of environmental variance parameter, it is determined that pass through for verification.
Specifically, it if the path JDK is consistent with the path JDK that linux system is installed, and is matched in linux system
The directory information of java applet, then it represents that user input environmental variance parameter be it is legal, determine environmental variance parameter verification
Pass through.
In the present embodiment, when configuration information is environmental variance parameter, by using preset regular expression to ring
Border variable parameter is verified, detection user input environmental variance parameter legitimacy, if in linux system matching less than
With the consistent information of environmental variance parameter, it is determined that fail for verification, and output error message, so that user is according to error message
It modifies to environmental variance parameter, avoids the environmental variance parameter of the carelessness due to user and input error, cause to cause
Java applet start when there is mistake, if be matched in linux system with the consistent information of environmental variance parameter, really
It is set to verification to pass through, it is ensured that the correctness of target script.
In one embodiment, as shown in figure 4, when configuration information is that program executes parameter, pair mentioned in step S2
Configuration information carries out legitimacy verifies, specifically comprises the following steps:
S221: executing parameter according to program, carries out pretrigger to java applet.
In the present embodiment, it includes Java main program information, JVM start-up parameter and database user that program, which executes parameter,
Information.
Specifically, server-side receives Java main program information, JVM start-up parameter and the database that user inputs in client
After the information of user, using the JVM installed in JVM start-up parameter starting linux system, existed according to Java main program information
Java applet is run in JVM, and database manipulation is carried out by the database that the connection of the information of database user needs to access, it should
Database manipulation refers to the operation carried out to the data on database, including but not limited to reads data, writes data, more new data
Or the operation such as deletion data, parameter is executed according to program, pretrigger is carried out to java applet, whether to verify java applet
It can successfully start up.
S222: if java applet pretrigger fails, it is determined that fail for verification, and exports pretrigger failure information, so that
User executes parameter to program according to pretrigger failure information and modifies.
In the present embodiment, if java applet pretrigger in JVM fails, it is determined that program executes parameter verification failure,
And java applet pretrigger failure information is exported, it is repaired so that user executes parameter to program according to pretrigger failure information
Change, the self-starting that is illegal and causing java applet due to configuration information is avoided to fail.
S223: if the success of java applet pretrigger, it is determined that pass through for verification.
In the present embodiment, if java applet being capable of the successful operation in JVM, then it represents that the configuration information of user's input is
Legal, determine that program executes parameter verification and passes through.
In the present embodiment, when configuration information is that program executes parameter, by executing parameter according to program, to Java journey
Sequence carries out pretrigger, and the program of detection user's input executes the legitimacy of parameter, if java applet pretrigger fails, it is determined that be
Verification failure, and pretrigger failure information is exported, it is repaired so that user executes parameter to program according to pretrigger failure information
Change, if the success of java applet pretrigger, it is determined that pass through for verification, handled by the pretrigger to java applet, it is ensured that used
The legitimacy of the configuration information of family input avoids due to artificial fault and has input wrong configuration information, causes Java
The case where starting failure of program, improve the booting self-starting success rate of java applet.
In one embodiment, as shown in figure 5, in step S4, i.e., target script is registered as to the self-starting of linux system
Service, specifically comprises the following steps:
S41: target script is added to the booting of linux system automatically in starting project, and can to the imparting of target script
The permission of execution generates self-starting service corresponding with java applet.
In the present embodiment, target script is stored to preset destination folder, and the title of target script is added
Booting to linux system starts in service list automatically, executable permission is assigned to target script, in linux system
Registration generates corresponding with java applet self-starting service, and when server is switched on again after a loss of power, java applet can be
Server starts and runs automatically when being switched on, without being started by artificial mode.
It is, for example, possible to use the chkconfig order of management system service by target script be registered to linux system from
In starting service, concrete implementation instruction are as follows:
#!/bin/sh
#chkconfig:2345 85 90
#description:
chmod+x a.sh
chkconfig--add a.sh
chkconfig a.sh on
Wherein, " #!/ bin/sh " is the path of target script, and " #chkconfig:2345 85 90 " indicates service 2/
Serial number S85 is opened in the starting of 3/4/5 runlevel, service, and serial number K90 is closed in service, and " #description: " is service
Description information, " chmod+x a.sh " are expressed as target script and assign executable permission, and " chkconfig--add a.sh " is indicated
The booting that the title of target script is added to system is started in service list automatically, " chkconfig a.sh on " is indicated will
Service is set as booting self-starting state.
S42: the port numbers that the self-starting service is opened in distribution are serviced for self-starting.
In the present embodiment, server-side is distributed by the service condition of detection linux system middle port for self-starting service
One is opened the idle port numbers of the self-starting service, so that java applet binds the port numbers, avoids the weight of java applet
Multiple starting.
For example, server-side is that be assigned with an idle port numbers be 3248 for self-starting service, which is to use
It, will in port 3248 when starting the self-starting corresponding java applet of service in the port numbers of control self-starting service operation
Start a serve port, which is intended merely to not receive any network connection for occupying port 3248.It opens every time
When dynamic java applet, server-side will test a unique java applet whether is only started in linux system, if Linux system
In system and the inactive mistake java applet, then the java applet can normally start operation;If being had been started up in linux system
The java applet, in the identical java applet being again started up, java applet opens again in the port that it is assigned to 3248
When dynamic serve port will throw exception, indicate that port 3248 is occupied, whereby it was confirmed that have opened in linux system
The java applet has been moved, and has exited the operation of starting java applet.
In the present embodiment, by the way that target script to be added to the booting of linux system automatically in starting project, and to mesh
It marks script and assigns executable permission, generate self-starting service corresponding with java applet, java applet is registered to Linux system
In the self-starting service of system, java applet is realized in the booting self-starting function of linux system, guarantees java applet starting
Timeliness, meanwhile, the port numbers of the self-starting service are opened for self-starting service distribution, avoid the repeated priming of java applet,
Save system resource.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process
Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit
It is fixed.
In one embodiment, a kind of managing device of java applet, the managing device of the java applet and above-mentioned reality are provided
The management method for applying java applet in example corresponds.As shown in fig. 6, the managing device of the java applet includes: that information receives
Module 61, information checking module 62, script generation module 63 and service register module 64.Detailed description are as follows for each functional module:
Information receiving module 61, for receiving the configuration information of java applet;
Information checking module 62, for carrying out legitimacy verifies to configuration information;
Script generation module 63, if passing through for configuration information verification, according to configuration information to preset script template
It is configured, obtains target script;
Service register module 64, for target script to be registered as to the self-starting service of linux system.
Further, configuration information includes that environmental variance parameter and program execute parameter.
Further, when configuration information is environmental variance parameter, information checking module 62 includes:
Route matching unit 6211, for verifying environmental variance parameter using preset regular expression;
It fails to match unit 6212, if in linux system matching less than with the consistent information of environmental variance parameter,
Then it is determined as verification failure, and output error message, so that user modifies to environmental variance parameter according to error message;
Successful match unit 6213, if for be matched in linux system with the consistent information of environmental variance parameter,
It is determined as verification to pass through.
Further, when configuration information is that program executes parameter, information checking module 62 includes:
Pretrigger verification unit 6221 carries out pretrigger to java applet for executing parameter according to program;
Pretrigger failure unit 6222, if failing for java applet pretrigger, it is determined that fail for verification, and export pre-
Start failure information, modifies so that user executes parameter to program according to pretrigger failure information;
Pretrigger success unit 6223, if for the success of java applet pretrigger, it is determined that pass through for verification.
Further, service register module 64 includes:
Adding unit 641 is serviced, for target script to be added to the booting of linux system automatically in starting project, and
Executable permission is assigned to target script, generates self-starting service corresponding with java applet;
Port binding unit 642, for servicing the port numbers that the self-starting service is opened in distribution for self-starting.
The specific of managing device about java applet limits the management method that may refer to above for java applet
Restriction, details are not described herein.Modules in the managing device of above-mentioned java applet can be fully or partially through software, hard
Part and combinations thereof is realized.Above-mentioned each module can be embedded in the form of hardware or independently of in the processor in computer equipment,
It can also be stored in a software form in the memory in computer equipment, execute the above modules in order to which processor calls
Corresponding operation.
In one embodiment, a kind of computer equipment is provided, which can be server, internal junction
Composition can be as shown in Figure 7.The computer equipment include by system bus connect processor, memory, network interface and
Database.Wherein, the processor of the computer equipment is for providing calculating and control ability.The memory packet of the computer equipment
Include non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system, computer program and data
Library.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating
The network interface of machine equipment is used to communicate with external terminal by network connection.When the computer program is executed by processor with
Realize a kind of management method of java applet.
In one embodiment, a kind of computer equipment is provided, including memory, processor and storage are on a memory
And the computer program that can be run on a processor, processor realize above-described embodiment java applet when executing computer program
Step in management method, such as step S1 shown in Fig. 2 to step S4, alternatively, processor is realized when executing computer program
The function of each module/unit of the managing device of java applet in above-described embodiment, such as module 61 shown in Fig. 6 is to module 64
Function.To avoid repeating, which is not described herein again.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated
Machine program realizes the step in the management method of above-described embodiment java applet, such as step shown in Fig. 2 when being executed by processor
Rapid S1 to step S4, alternatively, processor realizes the managing device of java applet in above-described embodiment when executing computer program
The function of each module/unit, such as module 61 shown in Fig. 6 is to the function of module 64.To avoid repeating, which is not described herein again.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer
In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein,
To any reference of memory, storage, database or other media used in each embodiment provided herein,
Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM
(PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include
Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms,
Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing
Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM
(RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function
Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing
The all or part of function of description.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality
Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each
Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified
Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all
It is included within protection scope of the present invention.
Claims (10)
1. a kind of management method of java applet, which is characterized in that the management method includes:
Receive the configuration information of java applet;
Legitimacy verifies are carried out to the configuration information;
If the configuration information verification passes through, preset script template is configured according to the configuration information, obtains mesh
Mark script;
The target script is registered as to the self-starting service of linux system.
2. the management method of java applet as described in claim 1, which is characterized in that the configuration information includes environmental variance
Parameter and program execute parameter.
3. the management method of java applet as claimed in claim 2, which is characterized in that when the configuration information is the environment
It is described to include: to the configuration information progress legitimacy verifies when variable parameter
The environmental variance parameter is verified using preset regular expression;
If in the linux system matching less than with the consistent information of environmental variance parameter, it is determined that for verification failure,
And output error message, so that user modifies to the environmental variance parameter according to the error message;
If being matched in the linux system and the consistent information of environmental variance parameter, it is determined that pass through for verification.
4. the management method of java applet as claimed in claim 2, which is characterized in that when the configuration information is described program
It is described to include: to the configuration information progress legitimacy verifies when executing parameter
Parameter is executed according to described program, pretrigger is carried out to the java applet;
If the java applet pretrigger failure, it is determined that fail for verification, and export pretrigger failure information, so that user's root
Parameter is executed to described program according to the pretrigger failure information to modify;
If the java applet pretrigger success, it is determined that pass through for verification.
5. such as the management method of the described in any item java applets of Claims 1-4, which is characterized in that described by the target
The self-starting service that script is registered as linux system includes:
The target script is added to the booting of the linux system automatically in starting project, and the target script is assigned
Executable permission is given, self-starting service corresponding with the java applet is generated;
The port numbers that the self-starting service is opened in distribution are serviced for the self-starting.
6. a kind of managing device of java applet, which is characterized in that the managing device of the java applet includes:
Information receiving module, for receiving the configuration information of java applet;
Information checking module, for carrying out legitimacy verifies to the configuration information;
Script generation module, if passing through for configuration information verification, according to the configuration information to preset script mould
Plate is configured, and target script is obtained;
Service register module, for the target script to be registered as to the self-starting service of linux system.
7. the managing device of java applet as claimed in claim 6, which is characterized in that the information checking module includes:
Pretrigger verification unit carries out pretrigger to the java applet for executing parameter according to described program;
Pretrigger failure unit, if failing for the java applet pretrigger, it is determined that fail for verification, and export pretrigger
Failure information is modified so that user executes parameter to described program according to the pretrigger failure information;
Pretrigger success unit, if for java applet pretrigger success, it is determined that pass through for verification.
8. the managing device of java applet as claimed in claims 6 or 7, which is characterized in that the service register module includes:
Adding unit is serviced, for the target script to be added to the booting of the linux system automatically in starting project, and
Executable permission is assigned to the target script, generates self-starting service corresponding with the java applet;
Port binding unit, for servicing the port numbers that the self-starting service is opened in distribution for the self-starting.
9. a kind of computer equipment, including memory, processor and storage are in the memory and can be in the processor
The computer program of upper operation, which is characterized in that the processor realized when executing the computer program as claim 1 to
The step of management method of any one of 5 java applets.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists
In the management method of realization java applet as described in any one of claim 1 to 5 when the computer program is executed by processor
The step of.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810919781.2A CN109189499B (en) | 2018-08-14 | 2018-08-14 | Java program management method, java program management device, computer device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810919781.2A CN109189499B (en) | 2018-08-14 | 2018-08-14 | Java program management method, java program management device, computer device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109189499A true CN109189499A (en) | 2019-01-11 |
CN109189499B CN109189499B (en) | 2024-02-02 |
Family
ID=64921308
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810919781.2A Active CN109189499B (en) | 2018-08-14 | 2018-08-14 | Java program management method, java program management device, computer device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109189499B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110457063A (en) * | 2019-07-15 | 2019-11-15 | 中国平安人寿保险股份有限公司 | The packaging method and device of shell script, electronic equipment, readable storage medium storing program for executing |
CN110868720A (en) * | 2019-12-24 | 2020-03-06 | 西安闻泰电子科技有限公司 | Method and device for identifying base station message, mobile terminal and storage medium |
CN111586171A (en) * | 2020-05-07 | 2020-08-25 | 广州虎牙信息科技有限公司 | Server operation method and device, electronic equipment and storage medium |
CN113918181A (en) * | 2021-10-11 | 2022-01-11 | 文思海辉元辉科技(大连)有限公司 | Applet registration method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101963912A (en) * | 2010-10-12 | 2011-02-02 | 浪潮电子信息产业股份有限公司 | Implementation method for storing and checking hardware configuration information of system |
CN105045689A (en) * | 2015-06-25 | 2015-11-11 | 浪潮电子信息产业股份有限公司 | Method for monitoring and alarming hard disks by using RAID card batch detection |
CN107491338A (en) * | 2017-09-29 | 2017-12-19 | 郑州云海信息技术有限公司 | A kind of whole machine cabinet batch automatic configuration RAID card level method for distinguishing |
CN107943496A (en) * | 2017-11-17 | 2018-04-20 | 郑州云海信息技术有限公司 | A kind of device and method of whole machine cabinet server batch updating firmware |
-
2018
- 2018-08-14 CN CN201810919781.2A patent/CN109189499B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101963912A (en) * | 2010-10-12 | 2011-02-02 | 浪潮电子信息产业股份有限公司 | Implementation method for storing and checking hardware configuration information of system |
CN105045689A (en) * | 2015-06-25 | 2015-11-11 | 浪潮电子信息产业股份有限公司 | Method for monitoring and alarming hard disks by using RAID card batch detection |
CN107491338A (en) * | 2017-09-29 | 2017-12-19 | 郑州云海信息技术有限公司 | A kind of whole machine cabinet batch automatic configuration RAID card level method for distinguishing |
CN107943496A (en) * | 2017-11-17 | 2018-04-20 | 郑州云海信息技术有限公司 | A kind of device and method of whole machine cabinet server batch updating firmware |
Non-Patent Citations (2)
Title |
---|
PRIVATE_CLASS: "Linux下java程序启动脚本(可做开机自启动Service脚本)", pages 1 - 3, Retrieved from the Internet <URL:https://blog.csdn.net/pzsoftchen/article/details/36869021> * |
陈华生;: "数据库系统shell脚本应用", 电子测试, no. 14, pages 61 - 62 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110457063A (en) * | 2019-07-15 | 2019-11-15 | 中国平安人寿保险股份有限公司 | The packaging method and device of shell script, electronic equipment, readable storage medium storing program for executing |
CN110457063B (en) * | 2019-07-15 | 2024-04-16 | 中国平安人寿保险股份有限公司 | Script program packaging method and device, electronic equipment and readable storage medium |
CN110868720A (en) * | 2019-12-24 | 2020-03-06 | 西安闻泰电子科技有限公司 | Method and device for identifying base station message, mobile terminal and storage medium |
CN111586171A (en) * | 2020-05-07 | 2020-08-25 | 广州虎牙信息科技有限公司 | Server operation method and device, electronic equipment and storage medium |
CN113918181A (en) * | 2021-10-11 | 2022-01-11 | 文思海辉元辉科技(大连)有限公司 | Applet registration method and device |
Also Published As
Publication number | Publication date |
---|---|
CN109189499B (en) | 2024-02-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109189499A (en) | Management method, device, computer equipment and the storage medium of java applet | |
US9983891B1 (en) | Systems and methods for distributing configuration templates with application containers | |
CN111095338B (en) | System and method for executing different types of blockchain contracts | |
US8904518B2 (en) | Information processing device, information processing method, and program distribution system | |
EP2549380A1 (en) | Information processing device, virtual machine generation method, and application software distribution system | |
CN109889377B (en) | Method and device for deploying VNF in NFV system based on Openstack | |
CN113238850A (en) | RPA implementation method, device, equipment and medium based on browser | |
US20200274758A1 (en) | Provisioning hybrid cloud resources in an operating environment | |
WO2024174904A1 (en) | Management migration method and apparatus for container instance, and electronic device and storage medium | |
CN103455750B (en) | The high peace verification method of a kind of embedded device and device | |
CN109766207A (en) | Restoration methods, device, monitoring device and the storage medium of firmware remote upgrade | |
CN102226888A (en) | Framework loading method and device | |
CN117008934A (en) | Method, device, equipment and medium for automatically making mirror image of information creation operating system | |
CN110471828B (en) | Operating system testing method, device and equipment thereof | |
CN109243464A (en) | Speech recognition tools dispositions method, device, computer equipment and storage medium | |
US12039473B2 (en) | Software development project infrastructure builder tool | |
CN109039784A (en) | The node deployment method and device of OpenStack | |
CN117667169A (en) | Application program updating method and device, electronic equipment and storage medium | |
CN102473090B (en) | Can be used for multiple interface documents of accessing BIOS | |
CN114996955A (en) | Target range environment construction method and device for cloud-originated chaotic engineering experiment | |
CN114238934A (en) | Equipment information acquisition method, device, equipment and medium | |
CN111949301B (en) | Application program hot update method, device and computer readable storage medium | |
CN110147227B (en) | Program installation package generation method and system for skill configuration | |
CN109960522B (en) | Software upgrading method and device | |
CN109324807B (en) | Charging module installation method and system of OpenStack |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |