Bare metal server access method and device, storage medium and electronic equipment
By obtaining the unique identity of the bare metal server and generating an access token when receiving the target access request, the problem of inefficient connection in the prior art is solved, and a simplified connection process and improved efficiency are achieved.
Patent Information
- Application Number
- CN202410924988.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-10
- Publication Date
- 2024-11-22
AI Technical Summary
In the prior art, the steps to connect to a bare metal server are cumbersome and inefficient.
By obtaining the unique identity of the server from the request when receiving the target access request, generating and writing the access token and network address to the database, and using the token to find and connect to the target server, the connection process is simplified.
It improves the efficiency of connecting to bare metal servers, allowing users to obtain network address and port number from the backend by simply providing a unique identity and access token, enabling quick connection.
Smart Images

Figure CN119011682A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of bare metal server access, and in particular to a bare metal server access method, device, storage medium and electronic device. Background Art
[0002] Bare metal servers are devices that have both the characteristics of traditional physical servers and the virtualization service functions of cloud computing technology. They are the product of the combination of hardware and software advantages. They can provide enterprises with exclusive cloud physical servers, providing excellent computing performance and data security for core databases, key application systems, high-performance computing, big data and other businesses. Cloud service users can apply flexibly and use them on demand.
[0003] In the prior art, after a user remotely connects to a bare metal server, he or she can access the bare metal server through an interface. However, the steps for connecting to a bare metal server in the prior art are relatively complicated, and the efficiency of connecting to a bare metal server is low. Summary of the invention
[0004] The present application provides a bare metal server access method, device, storage medium and electronic device to solve the technical problem of low efficiency in connecting to a bare metal server.
[0005] In a first aspect, the present application provides a method for accessing a bare metal server, comprising: upon receiving a target access request to a target server, obtaining a unique identifier of the target server from the target access request; writing the unique identifier, a target access token generated for the target server, and a network address and port number of the target server into a database; upon receiving a first access token, searching for the network address and port number of the target server in the database according to the first access token; and accessing the target server through the network address and port number of the target server by the target object that sends the target access request and the first access token.
[0006] In the second aspect, the present application provides an access device for a bare metal server, including: an acquisition module, used to obtain the unique identifier of the target server from the target access request when receiving a target access request for the target server; a writing module, used to write the unique identifier, the target access token generated for the target server, and the network address and port number of the target server into a database; a search module, used to search the network address and port number of the target server in the database according to the first access token when a first access token is received; an access module, used by the target object that sends the target access request and the first access token to access the target server through the network address and port number of the target server.
[0007] As an optional example, the above-mentioned device also includes: an initialization module, which is used to perform an initialization operation on any of the above-mentioned metal servers through an initialization interface when any of the metal servers is put on the stage before writing the above-mentioned unique identifier, the target access token generated for the above-mentioned target server, and the network address and port number of the above-mentioned target server into the database, so as to obtain the network address and port number of any of the above-mentioned metal servers, and write the above-mentioned network address and port number into the above-mentioned database; the above-mentioned writing module includes: a writing unit, which is used to query the above-mentioned network address and port number, and write the above-mentioned unique identifier and the above-mentioned target access token as data in the same group as the above-mentioned network address and port number into the above-mentioned database.
[0008] As an optional example, the above-mentioned device also includes: a generation module, used to determine the generation strategy of the above-mentioned target access token according to the object identifier of the above-mentioned target object; and generate the above-mentioned target access token according to the above-mentioned generation strategy and the above-mentioned unique identifier.
[0009] As an optional example, the above-mentioned writing module includes: a timing module, which is used to write the above-mentioned unique identifier, the target access token generated for the above-mentioned target server, and the network address and port number of the above-mentioned target server into the remote connection token table of the above-mentioned database; set an expiration period for the above-mentioned unique identifier, the target access token generated for the above-mentioned target server, and the network address and port number of the above-mentioned target server written into the above-mentioned remote connection token table, wherein, when the time for writing the above-mentioned unique identifier, the target access token generated for the above-mentioned target server, and the network address and port number of the above-mentioned target server into the above-mentioned remote connection token table reaches the above-mentioned expiration period, the above-mentioned unique identifier, the target access token generated for the above-mentioned target server, and the network address and port number of the above-mentioned target server will be deleted from the above-mentioned remote connection token table.
[0010] As an optional example, the above-mentioned search module includes: a first search unit, used to search for an access token column from the above-mentioned remote connection token table of the above-mentioned database; search for the above-mentioned first access token from the above-mentioned access token column; when the above-mentioned first access token is found, the network address and port number in the same group as the above-mentioned first access token are used as the network address and port number of the above-mentioned target server; when the above-mentioned first access token is not found, it is determined that the network address and port number of the above-mentioned target server are not found.
[0011] As an optional example, the above-mentioned search module includes: a second search unit, used to call the callback interface to pass in the above-mentioned first access token; determine the output result of the above-mentioned callback interface as the network address and port number of the above-mentioned target server; when the output result of the above-mentioned callback interface is empty, determine that the network address and port number of the above-mentioned target server are not found.
[0012] As an optional example, the access module includes: an access unit, used to forward the network address and port number of the target server output by the callback interface to the remote connection server of the target server, so that the target object connects to the remote connection server.
[0013] In a third aspect, the present application provides an electronic device comprising: at least one communication interface; at least one bus connected to the at least one communication interface; at least one processor connected to the at least one bus; and at least one memory connected to the at least one bus, wherein the memory stores a computer program, and the processor is configured to implement any one of the above-mentioned bare metal server access methods when executing the computer program.
[0014] In a fourth aspect, the present application further provides a computer storage medium storing computer executable instructions, wherein the computer executable instructions are used to execute any of the above-mentioned bare metal server access methods of the present application.
[0015] The above-mentioned technical scheme provided by the embodiment of the present application has the following advantages over the prior art: the scheme provided by the embodiment of the present application, by obtaining the unique identifier of the above-mentioned target server from the above-mentioned target access request when receiving the target access request to the target server; writing the above-mentioned unique identifier, the target access token generated for the above-mentioned target server, and the network address and port number of the above-mentioned target server into the database; when receiving the first access token, searching the network address and port number of the above-mentioned target server in the above-mentioned database according to the above-mentioned first access token; the target object that sends the above-mentioned target access request and the above-mentioned first access token accesses the above-mentioned target server through the network address and port number of the above-mentioned target server, so that when the user connects to the bare metal server, he only needs to provide the unique identifier and the first access token of the target server, and the network address and port number of the target server can be obtained by the backend, and the target server can be connected, thereby improving the efficiency of connecting to the target server. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0017] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0018] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0019] Figure 1 A flowchart of a method for accessing a bare metal server provided in an embodiment of the present application;
[0020] Figure 2 A schematic diagram of a bare metal server access system provided in an embodiment of the present application;
[0021] Figure 3 A flowchart of another bare metal server access method provided in an embodiment of the present application;
[0022] Figure 4 A flowchart of another method for accessing a bare metal server provided in an embodiment of the present application;
[0023] Figure 5 A flowchart of another method for accessing a bare metal server provided in an embodiment of the present application;
[0024] Figure 6 A flowchart of another method for accessing a bare metal server provided in an embodiment of the present application;
[0025] Figure 7 A schematic diagram of another bare metal server access system provided in an embodiment of the present application;
[0026] Figure 8 A schematic diagram of the structure of a bare metal server access device provided in an embodiment of the present application;
[0027] Fig. 9 A schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0028] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0029] The disclosure below provides many different embodiments or examples to implement different structures of the present invention. In order to simplify the disclosure of the present invention, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present invention. In addition, the present invention can repeat reference numbers and / or letters in different examples. This repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed.
[0030] In order to solve the technical problem of low efficiency in connecting to bare metal servers in the prior art, the present application provides a method for accessing a bare metal server, which can improve the efficiency of connecting to a target server.
[0031] Figure 1 A flowchart of a method for accessing a bare metal server provided in an embodiment of the present application. Figure 1 As shown in the figure, the access methods of the above bare metal server include:
[0032] S102, when receiving a target access request to a target server, obtaining a unique identifier of the target server from the target access request;
[0033] S104, writing the unique identifier, the target access token generated for the target server, and the network address and port number of the target server into a database;
[0034] S106, when the first access token is received, searching the database for the network address and port number of the target server according to the first access token;
[0035] S108: The target object that sends the target access request and the first access token accesses the target server through the network address and port number of the target server.
[0036] In this embodiment, the user can initiate a target access request and a first access token through a client to request access to a target server, which is a bare metal server. When accessing the target server, the user can carry a unique identifier of the target server in the target access request, which can be used to obtain the network address and port number of the target server.
[0037] Figure 2 Schematic diagram of a system of this embodiment. Figure 2 In the process, the control node can interact with the front end, connect the bare metal server and the database, and interact with the bare metal server and the database for data.
[0038] The control node in this embodiment can receive a target access request, obtain a unique identifier of the target server from the target access request, then generate a target access token for the target server, and obtain the network address and port number of the target server based on the unique identifier, and write the unique identifier, target access token, network address and port number of the target server into the database for storage.
[0039] The first access token in this embodiment can be located in the target access request or can be initiated by the user separately. When the first access token is received, the network address and port number of the target server are searched from the database according to the first access token, and the user uses the network address and port number to connect to the target server.
[0040] The solution provided by the embodiment of the present application obtains the unique identifier of the target server from the target access request when receiving a target access request to the target server; writes the unique identifier, the target access token generated for the target server, and the network address and port number of the target server into a database; when a first access token is received, searches the database for the network address and port number of the target server according to the first access token; and accesses the target server through the network address and port number of the target server by the target object that sends the target access request and the first access token. Therefore, when a user connects to a bare metal server, he only needs to provide the unique identifier of the target server and the first access token, and the network address and port number of the target server can be obtained by the backend and connected to the target server, thereby improving the efficiency of connecting to the target server.
[0041] As an optional example, before writing the unique identifier, the target access token generated for the target server, and the network address and port number of the target server into the database, the above method also includes: when any metal server is put on the shelf, performing an initialization operation on any metal server through the initialization interface, obtaining the network address and port number of any metal server, and writing the network address and port number into the database; writing the unique identifier, the target access token generated for the target server, and the network address and port number of the target server into the database includes: querying the network address and port number, and writing the unique identifier and the target access token as data in the same group as the network address and port number into the database.
[0042] In this embodiment, continue to refer to Figure 2Note: Since the control node can communicate with the server node and database node of the bare metal server, when the user initiates a target access request, the control node can obtain the unique identifier of the target server from it. Then, it can first obtain the network address and port number of the corresponding bare metal server based on the unique identifier, and store the network address and port number in the database in advance. When storing, the unique identifier, network address and port number can be stored as a set of data. Then, the control node generates a target access token for the target server and stores the unique identifier and target access token in the database. When storing the target access token, first search for the network address and port number based on the unique identifier, and then store the target access token, unique identifier, network address and port number as a set of data. Different bare metal servers correspond to different sets of data.
[0043] As an optional example, generating a target access token for a target server includes: determining a generation strategy of the target access token according to an object identifier of the target object; and generating the target access token according to the generation strategy and the unique identifier.
[0044] In this embodiment, when generating a target access token, different generation strategies may be used for different users. Different users may have different access tokens for the same target server. As a generation method, the user's object identifier and the target server's unique identifier may be concatenated to obtain the target access token of the target server.
[0045] As an alternative example, Figure 3 As shown, writing the unique identifier, the target access token generated for the target server, and the network address and port number of the target server into the database includes:
[0046] S302, writing the unique identifier, the target access token generated for the target server, and the network address and port number of the target server into the remote connection token table of the database;
[0047] S302, setting an expiration time for the unique identifier written into the remote connection token table, the target access token generated for the target server, and the network address and port number of the target server, wherein when the time for the unique identifier, the target access token generated for the target server, and the network address and port number of the target server to be written into the remote connection token table reaches the expiration time, the unique identifier, the target access token generated for the target server, and the network address and port number of the target server will be deleted from the remote connection token table.
[0048] In this embodiment, the database stores the network address and port number of the target server, as well as the target access token and the unique identifier of the target server. The database can create a remote connection token table, which is used to store the unique identifier, network address and port number of the server and the access token. The unique identifier, network address and port number and access token of each server requested for access can be stored in the remote connection token table. The unique identifier, network address and port number and access token of a server can be taken as a group of data. When storing them in the table, an expiration time for the group of data can be set. If the group of data expires, the group of data can be deleted from the table in the database. It should be noted that the group of data can also be persistently stored in other tables in the server, that is, only the group of data stored in the remote connection token table is deleted, and the group of data is still retained in the server.
[0049] As an alternative example, Figure 4 As shown, in the case of receiving the first access token sent by the target object, searching the network address and port number of the target server in the database according to the first access token includes:
[0050] S402, searching for an access token column from a remote connection token table in a database;
[0051] S404, searching for a first access token from the access token column;
[0052] S406, when the first access token is found, the network address and port number in the same group as the first access token are used as the network address and port number of the target server; when the first access token is not found, it is determined that the network address and port number of the target server are not found.
[0053] In this embodiment, after obtaining the first access token sent by the user, the first access token can be used to search in the access token column of the remote connection token table. If the same access token can be found, the network address and port number in the same group as the access token are used as the network address and port number of the target server. If the first access token cannot be found, it means that the expiration time has been reached, the data has expired and been deleted, and the network address and port number of the target server cannot be found. At this time, the user cannot access the target server and needs to re-initiate the request.
[0054] As an alternative example, Figure 5 As shown, in the case of receiving the first access token sent by the target object, searching the network address and port number of the target server in the database according to the first access token includes:
[0055] S502, calling the callback interface and passing in the first access token;
[0056] S504, determining the output result of the callback interface as the network address and port number of the target server;
[0057] S506: When the output result of the callback interface is empty, it is determined that the network address and port number of the target server are not found.
[0058] This embodiment provides another method for querying the network address and port number of the target server based on the first access token, that is, passing the first access token into the callback interface, and the callback interface outputs the corresponding network address and port number. If the callback interface can output the network address and port number, it is determined to be the network address and port number of the target server. If the callback interface cannot output the network address and port number, it means that the expiration time has been reached, the data has expired and been deleted, and the network address and port number of the target server cannot be found. At this time, the user cannot access the target server and needs to re-initiate the request.
[0059] As an alternative example, Figure 6 As shown, the target object sending the target access request and the first access token accesses the target server through the network address and port number of the target server, including:
[0060] S602: forward the network address and port number of the target server output by the callback interface to the remote connection server of the target server, so that the target object connects to the remote connection server.
[0061] In this embodiment, after the network address and port number of the target server are found, the network address and port number may be forwarded to the remote connection server of the target server, and the user's client connects to the remote connection server.
[0062] In this embodiment, the database table can be set with a TTL index, so that the TTL index provides an expiration period, and the database deletes the stored data after the stored data reaches the expiration period. Different data has different expiration periods.
[0063] When any bare metal server is launched, you can call the initialization redfish interface to initialize the bare metal server's connection service vnc, thereby starting the connection server vnc server, configuring the default port number and initialization password, and calling the database interface to write the server's network address and port number into the database.
[0064] When the front-end accesses the target server, the bare metal server's connection server vnc server is first initialized. The front-end calls the control node and passes in the unique identifier uuid of the bare metal server instance. Then, the control node obtains the network address ip and port number port of the vnc server from the compute_node table in the database based on the unique identifier, and generates a target access token token. The token, uuid, ip, and port are written into the remote connection token table vnc_token in the database. The expiration time can be set to 1 minute, and the data in the table will be deleted after 1 minute.
[0065] When the front-end accesses the vnc server, the front-end provides a token. The Websocket proxy node is started and a callback interface is configured. The callback interface passes the token of the front-end and the output result is the ip and port of the vnc server. The Websocket proxy node forwards the access request to the vnc server on the bare metal node and communicates with the vnc server through the websocket protocol.
[0066] It should be noted that, in this embodiment Figure 2 Just an example, Figure 7 This is a schematic diagram of another connection system of a bare metal server, which is not limited in this embodiment.
[0067] Figure 8 A schematic diagram of a bare metal server access device provided in an embodiment of the present application. Figure 8 As shown, the access device of the above bare metal server includes:
[0068] The acquisition module 802 is used to acquire the unique identifier of the target server from the target access request when receiving the target access request to the target server;
[0069] A writing module 804, used to write the unique identifier, the target access token generated for the target server, and the network address and port number of the target server into the database;
[0070] A search module 806 is used to search the network address and port number of the target server in the database according to the first access token when the first access token is received;
[0071] The access module 808 is configured to allow the target object that sends the target access request and the first access token to access the target server through the network address and port number of the target server.
[0072] In this embodiment, the user can initiate a target access request and a first access token through a client to request access to a target server, which is a bare metal server. When accessing the target server, the user can carry a unique identifier of the target server in the target access request, which can be used to obtain the network address and port number of the target server.
[0073] Figure 2 Schematic diagram of a system of this embodiment. Figure 2 In the process, the control node can interact with the front end, connect the bare metal server and the database, and interact with the bare metal server and the database for data.
[0074] The control node in this embodiment can receive a target access request, obtain a unique identifier of the target server from the target access request, then generate a target access token for the target server, and obtain the network address and port number of the target server based on the unique identifier, and write the unique identifier, target access token, network address and port number of the target server into the database for storage.
[0075] The first access token in this embodiment can be located in the target access request or can be initiated by the user separately. When the first access token is received, the network address and port number of the target server are searched from the database according to the first access token, and the user uses the network address and port number to connect to the target server.
[0076] The solution provided by the embodiment of the present application obtains the unique identifier of the target server from the target access request when receiving a target access request to the target server; writes the unique identifier, the target access token generated for the target server, and the network address and port number of the target server into a database; when a first access token is received, searches the database for the network address and port number of the target server according to the first access token; and accesses the target server through the network address and port number of the target server by the target object that sends the target access request and the first access token. Therefore, when a user connects to a bare metal server, he only needs to provide the unique identifier of the target server and the first access token, and the network address and port number of the target server can be obtained by the backend and connected to the target server, thereby improving the efficiency of connecting to the target server.
[0077] For other examples of this embodiment, please refer to the above examples and will not be described in detail here.
[0078] like Fig. 9 As shown, an embodiment of the present application provides an electronic device, including a processor 111, a communication interface 112, a memory 113 and a communication bus 114, wherein the processor 111, the communication interface 112, and the memory 113 communicate with each other through the communication bus 114.
[0079] A memory 113, for storing computer programs;
[0080] In one embodiment of the present application, the processor 111 is used to implement the bare metal server access method provided by any one of the aforementioned method embodiments when executing the program stored in the memory 113.
[0081] An embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, a method for accessing a bare metal server as provided in any of the aforementioned method embodiments is implemented.
[0082] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0083] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0084] It should be understood that the terms used herein are only for the purpose of describing specific example embodiments and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used herein may also be meant to include plural forms. The terms "include", "comprise", "contain", and "have" are inclusive, and therefore specify the existence of stated features, steps, operations, elements and / or parts, but do not exclude the existence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The method steps, processes, and operations described herein are not interpreted as necessarily requiring them to be performed in the specific order described or illustrated, unless the execution order is clearly indicated. It should also be understood that additional or alternative steps may be used.
[0085] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A method for accessing a bare metal server, characterized in that: include: When receiving a target access request to a target server, obtaining a unique identifier of the target server from the target access request; Writing the unique identifier, the target access token generated for the target server, and the network address and port number of the target server into a database; Upon receiving the first access token, searching the database for the network address and port number of the target server according to the first access token; The target object that sends the target access request and the first access token accesses the target server through the network address and port number of the target server.
2. The method according to claim 1, characterized in that: Before writing the unique identifier, the target access token generated for the target server, and the network address and port number of the target server into the database, the method further includes: when any one of the metal servers is put on the shelf, performing an initialization operation on the any one of the metal servers through an initialization interface to obtain the network address and port number of the any one of the metal servers, and writing the network address and port number into the database; Writing the unique identifier, the target access token generated for the target server, and the network address and port number of the target server into the database includes: querying the network address and port number, and writing the unique identifier and the target access token as data in the same group as the network address and port number into the database.
3. The method according to claim 1, characterized in that Generating the target access token for the target server includes: Determining a generation strategy of the target access token according to the object identifier of the target object; The target access token is generated according to the generation strategy and the unique identifier.
4. The method according to claim 1, characterized in that: Writing the unique identifier, the target access token generated for the target server, and the network address and port number of the target server into the database comprises: Writing the unique identifier, the target access token generated for the target server, and the network address and port number of the target server into the remote connection token table of the database; An expiration period is set for the unique identifier written into the remote connection token table, the target access token generated for the target server, and the network address and port number of the target server, wherein when the time for writing the unique identifier, the target access token generated for the target server, and the network address and port number of the target server into the remote connection token table reaches the expiration period, the unique identifier, the target access token generated for the target server, and the network address and port number of the target server will be deleted from the remote connection token table.
5. The method according to claim 4, characterized in that In the case where the first access token sent by the target object is received, searching the database for the network address and port number of the target server according to the first access token includes: Find an access token column from the remote connection token table in the database; Find the first access token from the access token column; When the first access token is found, the network address and port number in the same group as the first access token are used as the network address and port number of the target server; If the first access token is not found, it is determined that the network address and port number of the target server are not found.
6. The method according to claim 4, characterized in that In the case where the first access token sent by the target object is received, searching the database for the network address and port number of the target server according to the first access token includes: Call the callback interface and pass in the first access token; Determine the output result of the callback interface as the network address and port number of the target server; When the output result of the callback interface is empty, it is determined that the network address and port number of the target server are not found.
7. The method according to claim 6, characterized in that The target object sending the target access request and the first access token accesses the target server through the network address and port number of the target server, including: The network address and port number of the target server output by the callback interface are forwarded to the remote connection server of the target server, so that the target object is connected to the remote connection server.
8. A bare metal server access device, characterized in that: include: An acquisition module, configured to acquire a unique identifier of the target server from the target access request when receiving a target access request to the target server; A writing module, used for writing the unique identifier, the target access token generated for the target server, and the network address and port number of the target server into a database; A search module, configured to search the database for a network address and a port number of the target server according to the first access token when receiving the first access token; The access module is used for the target object that sends the target access request and the first access token to access the target server through the network address and port number of the target server.
9. An electronic device, characterized in that: include: at least one communication interface; at least one bus connected to the at least one communication interface; at least one processor coupled to the at least one bus; At least one memory connected to the at least one bus, wherein a computer program is stored in the memory, and when the processor executes the computer program, the method for accessing the bare metal server described in any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute the bare metal server access method described in any one of claims 1 to 7 of the present application.
