The content of the invention
In view of this, the embodiment of the present application provides a kind of login method, apparatus and system, to reduce application server more
Newly safeguard on the basis of duration, realize the purpose for logging in application server.
To achieve these goals, the technical scheme that the embodiment of the present application is provided is as follows:
A kind of login method, including:
In the case where the application server has been turned on, the logging request for indicating there is account is received;
Whether determine to be stored with flash memory server the basic data of the account;
If being stored with the basic data in the flash memory server, the basic number is loaded from the flash memory server
According to logging in the account on the application server based on the basic data;
If the basic data is not stored with the flash memory server, from the database associated with the application server
The middle loading basic data, and the account is logged on the application server based on the basic data;
Wherein, when the basic data is that the last account publishes the application server, the application service
Stored in device with the unique corresponding data of the account;The account is published the application server and published including response account
Operation publishes the account from the application server, or, the application server for being logged in the account is out of service.
It is preferred that, publishing the application server in the account includes being logged in the application server stopping of the account
During operation,
It will be stored in the application server and be updated to the flash memory server with the unique corresponding data of the account,
So that the data are updated to the database by the flash memory server, and, it is determined that the data are updated to described
After database, the data in the flash memory server are deleted.
It is preferred that, publish the application server in the account and include response account and publish operation by the account from institute
When stating application server and publishing,
It will be stored in the application server and be updated to the database with the unique corresponding data of the account.
It is preferred that, the basic data for the account that whether is stored with the determination flash memory server, including:
Whether judge the logging request is the instruction being initially received in the case where the application server has been turned on
There is the logging request of the account;
If the logging request is in the case where the application server has been turned on, the instruction being initially received has described
The logging request of account, the basic data for the account that determines whether to be stored with flash memory server.
It is preferred that, if the logging request is not in the case where the application server has been turned on, it is initially received
Indicate there is the logging request of the account, this method also includes:
Perform " basic data is loaded from the database that the application server is associated, and based on the basis
Data log in the account on the application server " step.
A kind of entering device, including:
Request reception unit, in the case of being had been turned in the application server, receives the login for indicating there is account
Request;
Basic data determining unit, the basic data for the account that determines whether to be stored with flash memory server;
First logs in unit, if for the basic data that is stored with the flash memory server, from the flash memory service
The basic data is loaded in device, the account is logged on the application server based on the basic data;
Second logs in unit, if for the basic data that is not stored with the flash memory server, from the application
The basic data is loaded in the database of server association, and is logged in based on the basic data on the application server
The account;
Wherein, when the basic data is that the last account publishes the application server, the application service
Stored in device with the unique corresponding data of the account;The account is published the application server and published including response account
Operation publishes the account from the application server, or, the application server for being logged in the account is out of service.
It is preferred that, in addition to the first updating block, it is used for:
The account publish the application server include be logged in the account application server it is out of service when,
It will be stored in the application server and be updated to the flash memory server with the unique corresponding data of the account, so as to described
The data are updated to the database by flash memory server, and, after it is determined that the data are updated into the database,
Delete the data in the flash memory server.
It is preferred that, in addition to the second updating block, it is used for:
Publish the application server in the account and include response account and publish operation by the account from the application
When server is published, it will be stored in the application server and be updated to the data with the unique corresponding data of the account
Storehouse.
A kind of login system, including application server, flash memory server and database, wherein, the application server
For:
In the case where the application server has been turned on, the logging request for indicating there is account is received;
Whether determine to be stored with the flash memory server basic data of the account;
If being stored with the basic data in the flash memory server, the basic number is loaded from the flash memory server
According to logging in the account on the application server based on the basic data;
If not being stored with the basic data in the flash memory server, from the number associated with the application server
According to loading the basic data in storehouse, and the account is logged on the application server based on the basic data;
Wherein, when the basic data is that the last account publishes the application server, the application service
Stored in device with the unique corresponding data of the account;The account is published the application server and published including response account
Operation publishes the account from the application server, or, the application server for being logged in the account is out of service.
It is preferred that, the application server be additionally operable to the account publish the application server include being logged in it is described
When the application server of account is out of service, will be stored in the application server with the unique corresponding data of the account more
The new extremely flash memory server;
The flash memory server is used to the data being updated to the database, and, it is determined that by the data more
After the new extremely database, the data in the flash memory server are deleted.
The embodiment of the present application provides a kind of login method, in the case of being had been turned in application server, receives and indicates
There is the logging request of account;Whether determine to be stored with flash memory server the basic data of account;If so, from flash memory server
Basic data is loaded, based on basic data login account on the application server;If it is not, from the data associated with application server
Load basic data in storehouse, and based on basic data on the application server login account (basic data is the last account
When publishing application server, stored in application server with the unique corresponding data of account) mode so that can be from flash memory service
Device/database loads the basic data of newest account, is tieed up with realizing that account is logged in, and then avoiding to update in application server
During shield, only the basic data of account on line is stored to the situation of database, reached in reduction application server updating maintenance
On the basis of duration, the purpose for logging in application server is realized.
Embodiment:
A kind of login method flow chart that Fig. 1 provides for the embodiment of the present application.
As shown in figure 1, this method includes:
S101, in the case where the application server has been turned on, receive and indicate there is the logging request of account;
Optionally, in the case where being had been started up using corresponding application server, the application server can be received and stepped on
Record request, the logging request indicates the account for needing to be logged in.
Optionally, the logging request can be sent by user by the applications client of the application.
S102, the account that determines whether to be stored with flash memory server basic data;If in the flash memory server
Be stored with the basic data, performs step S103;If not being stored with the basic data in the flash memory server, step is performed
Rapid S104;
Optionally, when the basic data is that the last account publishes the application server, the application clothes
Stored in business device with the unique corresponding data of the account.
The account publish the application server include response account publish operation the account is taken from the application
Business device is published, or, the application server for being logged in the account is out of service.
Wherein, response account publishes operation and publishes the account from the application server, including:Respond user's input
Account publish operation, the account is published from the application server.Optionally, the application visitor that user passes through the application
Family end can input account and publish operation (e.g., user click on account in the applications client of application and publishes button, to input account
Operation is published, the account logged in presently described applications client is published).
Optionally, when the basic data is that the last account publishes the application server, the application clothes
What is stored in business device is with the unique corresponding data of the account:It is being stored in the internal memory of the application server with the account
Unique corresponding data.
S103, from the flash memory server basic data is loaded, taken based on the basic data in the application
The account is logged on business device;
Optionally, if being stored with the basic data in the flash memory server, institute is loaded from the flash memory server
Basic data is stated, and the account is logged on the application server based on the basic data.
Further, the basic data is loaded from the flash memory server, is answered based on the basic data described
With being logged on server after the account, the basic data in the flash memory server is deleted.
S104, load the basic data from the database that the application server is associated, and based on the basis
Data log in the account on the application server.
Optionally, if not being stored with the basic data in the flash memory server, associated from the application server
Database in load the basic data, and the account is logged on the application server based on the basic data.
Optionally, publishing the application server in the account includes being logged in the application server stopping of the account
During operation, it will be stored in the application server and be updated to the flash memory server with the unique corresponding data of the account,
So that the data are updated to the database by the flash memory server, and, it is determined that the data are updated to described
After database, the data in the flash memory server are deleted.
In the embodiment of the present application, it is preferred that uniquely corresponding with the account will be stored in the application server
Data be updated to after the flash memory server, the data that the flash memory server can be received automatically be updated to
The database (i.e. the database occurred in above-mentioned steps S104) of the application server association, and be updated to by described
After the database of the application server association, the data in the flash memory server can be deleted.
Accordingly, after the application server for being logged in the account is out of service, as long as by the application server
What is stored is updated to the flash memory server with the unique corresponding data of the account, just can continue to enter the application server
Row updating maintenance and then restart the application server, and be not used in when will with the unique corresponding data of the account more
The new extremely database, can just continue application server and be updated maintenance and then restart the application server.Will
The duration that data are updated to flash memory server is far smaller than the time that the data are stored in database, so can reach in reduction
On the basis of application server updating maintenance duration, the purpose for logging in application server is realized.
Optionally, publish the application server in the account and include response account and publish operation by the account from institute
When stating application server and publishing, will be stored in the application server be updated to the unique corresponding data of the account it is described
Database.
In the embodiment of the present application, it is preferred that take the account from the application if publishing operation in response account
When business device is published, it will can be stored in the case of the application server not out of service in the application server and institute
State the unique corresponding data of account and be updated to the database.
Another login method flow chart that Fig. 2 provides for the embodiment of the present application.
As shown in Fig. 2 this method includes:
S201, in the case where the application server has been turned on, receive and indicate there is the logging request of account;
S202, judge whether the logging request is, in the case where the application server has been turned on, to be initially received
Instruction have the logging request of the account;If so, performing step S203;If it is not, performing step S205;
Optionally, in the case where the application server has been turned on, the logging request for indicating there is account is received, and judge
The logging request whether be the application server after this startup, the instruction received first has the login of the account
Request;If so, performing step S203;If it is not, performing step S205.
S203, the account that determines whether to be stored with flash memory server basic data;If in the flash memory server
Be stored with the basic data, performs step S204;If not being stored with the basic data in the flash memory server, step is performed
Rapid S205;
S204, from the flash memory server basic data is loaded, taken based on the basic data in the application
The account is logged on business device;
S205, load the basic data from the database that the application server is associated, and based on the basis
Data log in the account on the application server.
Optionally, the embodiment of the present application provide step S203-S205 implementation procedure with it is above-mentioned be embodiment provide
Step S102-S104 implementation procedure is identical, and the implementation procedure about step S203-S205 refers to above-described embodiment offer
Step S102-S104 implementation procedure, is not limited herein.
The embodiment of the present application provides a kind of login method, in the case of being had been turned in application server, receives and indicates
There is the logging request of account;Whether determine to be stored with flash memory server the basic data of account;If so, from flash memory server
Basic data is loaded, based on basic data login account on the application server;If it is not, from the data associated with application server
Load basic data in storehouse, and based on basic data on the application server login account (basic data is the last account
When publishing application server, stored in application server with the unique corresponding data of account) mode so that can be from flash memory service
Device/database loads the basic data of newest account, is tieed up with realizing that account is logged in, and then avoiding to update in application server
During shield, only the basic data of account on line is stored to the situation of database, reached in reduction application server updating maintenance
On the basis of duration, the purpose for logging in application server is realized.
A kind of structural representation for entering device that Fig. 3 provides for the embodiment of the present application.
As shown in figure 3, the device includes:
Request reception unit 31, in the case of being had been turned in the application server, receives and indicates there be stepping on for account
Record request;
Basic data determining unit 32, the basic data for the account that determines whether to be stored with flash memory server;
First logs in unit 33, if for the basic data that is stored with the flash memory server, from flash memory clothes
The basic data is loaded in business device, the account is logged on the application server based on the basic data;
Second logs in unit 34, if for the basic data that is not stored with the flash memory server, being answered from described
The basic data is loaded in the database associated with server, and is stepped on based on the basic data on the application server
Record the account;
Wherein, when the basic data is that the last account publishes the application server, the application service
Stored in device with the unique corresponding data of the account;The account is published the application server and published including response account
Operation publishes the account from the application server, or, the application server for being logged in the account is out of service.
Further, a kind of entering device that the embodiment of the present application is provided also includes the first updating block, is used for:Described
Account publish the application server include be logged in the account application server it is out of service when, by the application service
What is stored in device is updated to the flash memory server with the unique corresponding data of the account, so that the flash memory server is by institute
State data and be updated to the database, and, after it is determined that the data are updated into the database, delete the flash memory clothes
The data being engaged in device.
Further, a kind of entering device that the embodiment of the present application is provided also includes the second updating block, is used for:Described
Account publish the application server include response account publish operation by the account from the application server publish when, will
What is stored in the application server is updated to the database with the unique corresponding data of the account.
Optionally, the basic data determining unit specifically for:Whether judge the logging request is in the application
In the case that server has been turned on, the instruction being initially received has the logging request of the account;If the logging request be
In the case that the application server has been turned on, the instruction being initially received has the logging request of the account, determines that flash memory takes
The basic data for the account that whether is stored with business device.
Further, if the logging request is not in the case where the application server has been turned on, it is initially received
Instruction have the logging request of the account, perform in the embodiment of the present application second log in that unit provides " from the application
The basic data is loaded in the database of server association, and is logged in based on the basic data on the application server
The account " step.
A kind of structural representation for login system that Fig. 4 provides for the embodiment of the present application.
As shown in figure 4, the system includes:Application server 41, flash memory server 42 and database 43, wherein, it is described
Application server is used for:
In the case where the application server has been turned on, the logging request for indicating there is account is received;
Whether determine to be stored with the flash memory server basic data of the account;
If being stored with the basic data in the flash memory server, the basic number is loaded from the flash memory server
According to logging in the account on the application server based on the basic data;
If not being stored with the basic data in the flash memory server, from the number associated with the application server
According to loading the basic data in storehouse, and the account is logged on the application server based on the basic data;
Wherein, when the basic data is that the last account publishes the application server, the application service
Stored in device with the unique corresponding data of the account;The account is published the application server and published including response account
Operation publishes the account from the application server, or, the application server for being logged in the account is out of service.
Further, the application server in a kind of login system that the embodiment of the present application is provided is additionally operable to:Institute
State account publish the application server include be logged in the account application server it is out of service when, the application is taken
What is stored in business device is updated to the flash memory server with the unique corresponding data of the account;The flash memory server is used for will
The data are updated to the database, and, after it is determined that the data are updated into the database, delete the flash memory
The data in server.
Further, the application server in a kind of login system that the embodiment of the present application is provided is additionally operable to:Institute
State account publish the application server include response account publish operation by the account from the application server publish when,
It will be stored in the application server and be updated to the database with the unique corresponding data of the account.
The embodiment of the present application provides a kind of entering device and system, in the case of being had been turned in application server, connects
Receive the logging request for indicating there is account;Whether determine to be stored with flash memory server the basic data of account;If so, being taken from flash memory
Basic data is loaded in business device, based on basic data login account on the application server;If it is not, being associated from application server
Database in load basic data, and based on basic data on the application server login account (basic data is nearest one
When secondary account publishes application server, stored in application server with the unique corresponding data of account) mode so that can be from sudden strain of a muscle
The basic data that server/database loads newest account is deposited, to realize that account is logged in, and then is avoided in application server
During updating maintenance, only the basic data of account on line is stored to the situation of database, reached in reduction application server more
Newly safeguard on the basis of duration, realize the purpose for logging in application server.
For the ease of the understanding of the login method provided the embodiment of the present application, now by an example to the embodiment of the present application
Login method, the apparatus and system of offer are described in detail:
If application server is in the process of running, it is necessary to be updated maintenance, in the application server out of service, and
The basic data for working as account on front in the application server is updated to the flash memory clothes associated with the application server
It is engaged in device;The basic data is updated to and taken with the application after the basic data is received by the flash memory server
It is engaged in the database of device association.
Optionally, the mode that the basic data is updated to the database is had a variety of (such as, flash memories by flash memory server
The basic data is updated to the database by server automatically after basic data is received, and is completed until all updating;
Or, flash memory server, according to default renewal frequency, the basic data is updated to described after basic data is received
Database), do not limit herein.
The basic data for working as account on front in application server is updated to the sudden strain of a muscle associated with the application server
Deposit after server, no matter the basic data whether the flash memory server has been received is updated to the database,
It is executable that " application server carries out follow-up updating maintenance, and (updating maintenance herein, which is not related to, is updated to basic data
The process of database), and open after the completion of updating maintenance the application server " this process.
If application server is in the process of running, response account publishes operation and steps on the account from the application server
When going out, it will be stored in the application server and be updated to the database with the unique corresponding data of the account.
Application server need to be updated safeguard when, not need to wait until will be in application server the account on the front
Number basic data be updated to after database, then application server carries out follow-up updating maintenance, so as to complete in updating maintenance
The application server is opened into rear;But will be taken in application server when the basic data of account on front is updated to flash memory
It is engaged in after device, just directly application server can carries out follow-up updating maintenance, to open described answer after the completion of updating maintenance
With server, and a kind of login method, the apparatus and system provided based on the embodiment of the present application realizes that account is logged in.Because by base
The duration that plinth data are updated to flash memory server is more many than the when length that basic data is updated to database, so relative to
For prior art, the purpose for logging in application server can be realized on the basis of reduction application server updating maintenance duration.
The embodiment of each in this specification is described by the way of progressive, and what each embodiment was stressed is and other
Between the difference of embodiment, each embodiment identical similar portion mutually referring to.For device disclosed in embodiment
For, because it is corresponded to the method disclosed in Example, so description is fairly simple, related part is said referring to method part
It is bright.
It the above is only the preferred embodiment of the application, make skilled artisans appreciate that or realizing the application.It is right
A variety of modifications of these embodiments will be apparent to one skilled in the art, general original as defined herein
Reason can in other embodiments be realized in the case where not departing from spirit herein or scope.Therefore, the application will not
Be intended to be limited to the embodiments shown herein, and be to fit to it is consistent with principles disclosed herein and features of novelty most
Wide scope.