CN110545308A - Server connection method, resource downloading method, device, electronic equipment and medium - Google Patents

Server connection method, resource downloading method, device, electronic equipment and medium Download PDF

Info

Publication number
CN110545308A
CN110545308A CN201910720019.6A CN201910720019A CN110545308A CN 110545308 A CN110545308 A CN 110545308A CN 201910720019 A CN201910720019 A CN 201910720019A CN 110545308 A CN110545308 A CN 110545308A
Authority
CN
China
Prior art keywords
cloud host
server
downloading
network card
virtual network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910720019.6A
Other languages
Chinese (zh)
Inventor
李丹
吴秦红
杨波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuxi Huayun Data Technology Service Co Ltd
Original Assignee
Wuxi Huayun Data Technology Service Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuxi Huayun Data Technology Service Co Ltd filed Critical Wuxi Huayun Data Technology Service Co Ltd
Priority to CN201910720019.6A priority Critical patent/CN110545308A/en
Publication of CN110545308A publication Critical patent/CN110545308A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Abstract

The application provides a server connection method, a resource downloading device, an electronic device and a medium. Therefore, automatic network connection can be realized between the cloud host and the server provided with the downloading warehouse, when resource downloading is needed, the whole downloading process does not need manual deep intervention, and the human resource investment is reduced. The user does not need to set the network card configuration information when downloading, the downloading process is simplified, the whole downloading process is more friendly to the user, and the user experience degree is high.

Description

Server connection method, resource downloading method, device, electronic equipment and medium
Technical Field
The present application relates to the field of information technologies, and in particular, to a server connection method, a resource downloading method, an apparatus, an electronic device, and a medium.
Background
currently, in the process of creating a cloud host, a network accessed by the cloud host is manually selected by a user in a self-defining manner in the process of creating the cloud host. After the cloud host is installed, the user also needs to download the application software from the download warehouse. In order to enable the cloud host to communicate with the server where the software warehouse is located, network card configuration information needs to be manually set, so that the cloud host establishes communication connection between the cloud host and the server where the download warehouse is located, and the cloud host can normally download resources from the download warehouse. The whole resource downloading process of the cloud host is very complicated and unfriendly for users, meanwhile, manual deep intervention is needed, and human resource investment is large.
disclosure of Invention
An object of the embodiments of the present application is to provide a server connection method, a resource downloading device, an electronic apparatus, and a medium, so as to solve the problems that in the related art, the whole resource downloading process of a cloud host is very tedious and unfriendly for a user, and meanwhile, a manual deep intervention is required, and a human resource investment is large.
The embodiment of the application provides a server connection method, which is applied to electronic equipment bearing a cloud host and comprises the following steps: establishing a virtual network card of the cloud host, wherein the virtual network card is accessed to a preset network address by default; the preset network address is a network address of a server provided with a downloading warehouse; and when a preset access condition is triggered, accessing the cloud host to the server by adopting the virtual network card.
In the implementation process, the virtual network card of the cloud host is established, the virtual network card is set as a network address of a server with a default access downloading warehouse, and when the preset access condition is triggered, the virtual network card is adopted to access the cloud host to the server with the downloading warehouse. Therefore, automatic network connection from the cloud host to the server provided with the downloading warehouse is realized, the whole downloading process of the cloud host does not need manual deep intervention, and human resource investment is reduced. The user does not need to set the network card configuration information when downloading, the downloading process is simplified, the whole downloading process is more friendly to the user, and the user experience degree is high.
further, the number of the servers provided with the download warehouse is one.
In the implementation process, the downloading warehouse is arranged in the same server, so that the downloading resource management is more convenient. Meanwhile, when the virtual network card is configured, only one default network address needs to be configured, so that only one server provided with a downloading warehouse needs to be accessed by the cloud host in a default mode, and the network connection load of the cloud host is reduced.
Further, the establishing the virtual network card of the cloud host includes: acquiring a prestored network address of the server provided with the downloading warehouse from a preset database; and setting the network address of the server provided with the download warehouse as the network address of the default access of the virtual network card.
In the implementation process, the network address of the server provided with the downloading warehouse, which is stored in advance, is obtained from the preset database, and then the network address is set as the network address of the default access of the virtual network card. Therefore, the automatic configuration of the network address accessed by the virtual network card by default can be realized, and the labor input is reduced.
Further, the establishing the virtual network card of the cloud host includes: and in the process of creating the cloud host, establishing a virtual network card of the cloud host.
In the implementation process, the virtual network card of the cloud host is established in the process of establishing the cloud host, so that the cloud host has the capability of automatically accessing the server provided with the download warehouse after the cloud host is successfully established, and the feasibility and the reliability of the whole scheme are ensured.
Further, when a preset access condition is triggered, accessing the cloud host to the server by using the virtual network card includes: and when the cloud host is started, accessing the cloud host into the server by adopting the virtual network card.
In the implementation process, when the cloud host is started, the virtual network card is automatically adopted to access the cloud host into the server, so that the cloud host does not need to wait for connection when the content needs to be downloaded from the downloading warehouse in the later period, and the downloading efficiency is improved.
Further, after the accessing the cloud host to the server by using the virtual network card, the method further includes: and if the cloud host does not receive the downloading instruction within the preset time length, disconnecting the cloud host from the server.
in the implementation process, after the cloud host is accessed to the server by the virtual network card, if the cloud host does not receive the downloading instruction within the preset time length, the connection between the virtual network card and the server can be disconnected, so that network resources are saved.
Further, when a preset access condition is triggered, accessing the cloud host to the server by using the virtual network card includes: and when the cloud host receives a downloading instruction, accessing the cloud host into the server by adopting the virtual network card.
in the implementation process, when the cloud host receives the downloading instruction, the cloud host is accessed to the server by adopting the virtual network card. The automatic access of the cloud host is realized, the user is not required to manually access the cloud host into the server provided with the downloading warehouse, and the user experience is improved.
The embodiment of the application further provides a resource downloading method, which is applied to the cloud host and comprises the following steps: receiving a downloading instruction; when the cloud host does not access a server provided with a downloading warehouse, a virtual network card is adopted to access the cloud host to the server according to a default access preset network address; the virtual network card is accessed to the preset network address by default; the preset network address is the network address of the server provided with the download warehouse; and downloading the resource required to be downloaded by the downloading instruction from a downloading warehouse of the server.
in the implementation process, when the cloud host receives the download instruction, if the server provided with the download warehouse is not accessed, the cloud host is automatically accessed to the server by adopting the virtual network card according to the default accessed preset network address, and then the resource required to be downloaded by the download instruction is downloaded from the download warehouse of the server. In the whole downloading process, the cloud host can automatically realize network connection to the server provided with the downloading warehouse, the whole downloading process does not need manual deep intervention, and the human resource investment is reduced. The user does not need to set the network card configuration information when downloading, the downloading process is simplified, the whole downloading process is more friendly to the user, and the user experience degree is high.
the embodiment of the present application further provides a server connection device applied to an electronic device bearing a cloud host, including: the network card establishing module and the access control module; the network card establishing module is used for establishing a virtual network card of the cloud host, and the virtual network card is accessed to a preset network address by default; the preset network address is a network address of a server provided with a downloading warehouse; the access control module is used for accessing the cloud host to the server by adopting the virtual network card when a preset access condition is triggered.
in the implementation process, the virtual network card of the cloud host is established, the virtual network card is set as a network address of a server with a default access downloading warehouse, and when the preset access condition is triggered, the virtual network card is adopted to access the cloud host to the server with the downloading warehouse. Therefore, automatic network connection from the cloud host to the server provided with the downloading warehouse is realized, the whole downloading process of the cloud host does not need manual deep intervention, and human resource investment is reduced. The user does not need to set the network card configuration information when downloading, the downloading process is simplified, the whole downloading process is more friendly to the user, and the user experience degree is high.
The embodiment of the present application further provides a resource downloading device, which is applied to a cloud host, and includes: the device comprises a receiving module, an access module and a downloading module; the receiving module is used for receiving a downloading instruction; the access module is used for accessing the cloud host to the server by adopting a virtual network card according to a default access preset network address when the cloud host does not access the server provided with the download warehouse; the virtual network card is accessed to the preset network address by default; the preset network address is the network address of the server provided with the download warehouse; the download module is used for downloading the resource required to be downloaded by the download instruction from a download warehouse of the server.
In the implementation process, when the cloud host receives the download instruction, if the server provided with the download warehouse is not accessed, the cloud host is automatically accessed to the server by adopting the virtual network card according to the default accessed preset network address, and then the resource required to be downloaded by the download instruction is downloaded from the download warehouse of the server. In the whole downloading process, the cloud host can automatically realize network connection to the server provided with the downloading warehouse, the whole downloading process does not need manual deep intervention, and the human resource investment is reduced. The user does not need to set the network card configuration information when downloading, the downloading process is simplified, the whole downloading process is more friendly to the user, and the user experience degree is high.
The embodiment of the application also provides electronic equipment, which comprises a processor, a memory and a communication bus; the communication bus is used for realizing connection communication between the processor and the memory; the processor is configured to execute one or more first programs stored in the memory to implement the steps of any one of the server connection methods described above; or, the processor is configured to execute one or more second programs stored in the memory to implement the steps of the resource downloading method.
an embodiment of the present application further provides a readable storage medium, where one or more programs are stored, and the one or more programs are executable by one or more processors to implement the steps of any one of the above-mentioned server connection methods, or to implement the steps of the above-mentioned resource downloading.
Drawings
in order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a schematic flowchart of a server connection method according to an embodiment of the present application;
Fig. 2 is a schematic relationship diagram of an electronic device and a cloud host according to an embodiment of the present disclosure;
Fig. 3 is a schematic flowchart of a resource downloading method according to an embodiment of the present application;
Fig. 4 is a schematic structural diagram of a server connection device according to an embodiment of the present application;
Fig. 5 is a schematic structural diagram of a resource downloading device according to an embodiment of the present application;
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
The first embodiment is as follows:
Referring to fig. 1, fig. 1 is a schematic flowchart of a server connection method applied to an electronic device bearing a cloud host according to an embodiment of the present application, where the method includes:
s101: and establishing a virtual network card of the cloud host.
It should be noted that the cloud host is a virtual host that integrates computing, storage, and network resources, and exists by relying on physical electronic devices (such as servers, etc.), for example, as shown in fig. 2. On one electronic device, one or more cloud hosts can be created as required.
It should be further noted that, in the embodiment of the present application, when the virtual network card of the cloud host is established, a default access preset network address of the virtual network card may be configured. In this embodiment, the preset network address may be configured as a network address of a server provided with the download repository.
It should be further noted that the download repository in the embodiment of the present application refers to a database storing related resources available for downloading, where the stored resources available for downloading include, but are not limited to, applications, scripts, texts, videos, pictures, audios, and the like.
in a possible implementation manner of the embodiment of the present application, the download warehouses may be set on multiple servers, and at this time, the preset network addresses are multiple and are respectively network addresses of the multiple servers. In another possible implementation manner of the embodiment of the application, the download warehouse can be arranged on one server, so that only one server needs to be managed when downloading resource management is performed, and the management difficulty of downloading resources is reduced. Meanwhile, the downloading warehouse is arranged on one server, the number of preset network addresses which need to be configured to be accessed by the cloud host in a default mode can be one, only one server which needs to be accessed by the cloud host in the default mode and is provided with the downloading warehouse is provided, and the network connection load of the cloud host is reduced. It should be noted that the above possible embodiment is applicable to a case where the cloud host is limited to download from the internal system only, and has high security. That is, the download repository is provided on one server in the embodiment of the present application, and the download repository storing the internal resource may be arranged on one server. It is noted that internal resources refer to resources developed or collected by the implementer or the organization to which the solution of the embodiments of the present application pertains.
It should be noted that, in practical applications, there may be a case where a third party resource needs to be downloaded. For the case that the cloud host is allowed to download the third party resource through the external network, in the embodiment of the present application, the server address of the third party resource may also be configured to configure the default access preset network address of the virtual network card.
it should be understood that, in an actual application process, when the electronic device bearing the cloud host constructs the virtual network card of the cloud host, the electronic device needs to acquire a network address of the server provided with the download repository. One possible implementation of this is that the network address of the server provided with the download repository is manually entered by the user to the electronic device. However, this approach is highly demanding for the user, requiring the user to know the network address of the server where the download repository is located, which is typically known or obtained only by certain personnel. In another possible implementation manner of the embodiment of the present application, the identifier (information such as name) and the corresponding network address of each server may be written in advance in a preset database. And when the virtual network card of the cloud host is established, the network address of the server with the downloading warehouse, which is stored in advance, is obtained from a preset database, and the network address of the server with the downloading warehouse is set as the network address of the default access of the virtual network card. In this way, the user only needs to inform the electronic device of the identifier (such as the name of the server) of the server provided with the download repository, and the identifiers are more easily acquired by non-professional personnel than the network address of the server, so that the requirement on the user is reduced, and the scheme of the embodiment of the application has better implementation. In this embodiment of the application, the preset database may be set in the electronic device bearing the cloud host.
In addition, in another possible implementation manner of the embodiment of the present application, the electronic device bearing the cloud host and the server having the download repository may be configured to be located in the same local area network, and the electronic device bearing the cloud host is accessed to the local area network. At this time, when the electronic device bearing the cloud host is configured to establish the virtual network card of the cloud host, the download warehouse is automatically searched on the server in the local area network, so that the server with the download warehouse is searched, and the network address of the server with the download warehouse is set as the network address of the default access of the virtual network card.
It should be noted that, in the embodiment of the present application, the network address of the server provided with the download repository may be selected by an engineer as any one of the network segments available as needed, and used as the network address of the server.
in the embodiment of the application, the virtual network card of the cloud host can be established in the process of establishing the cloud host, so that the cloud host has the capability of automatically accessing the server provided with the download warehouse after the cloud host is successfully established, and the feasibility and the reliability of the whole scheme are ensured. Of course, in the embodiment of the present application, the virtual network card of the cloud host may also be established after the cloud host is created. In the embodiment of the application, the specific time for establishing the virtual network card of the cloud host can be determined by an engineer according to actual needs.
S102: and when the preset access condition is triggered, accessing the cloud host to a server provided with a downloading warehouse by adopting a virtual network card.
it should be noted that, because the virtual network card is accessed to the preset network address by default, when the virtual network card is started to perform network connection, the cloud host can be automatically accessed to the server provided with the download warehouse without manual intervention, so that the download process is simplified, the whole download process is more friendly to users, and the user experience degree is high.
In a possible implementation manner of the embodiment of the present application, the preset access condition may be that the cloud host is started. That is, in a feasible implementation manner of the embodiment of the present application, when the cloud host is started, the virtual network card may be used to access the cloud host to the server provided with the download warehouse.
In another possible implementation manner of the embodiment of the present application, the preset access condition may be that the cloud host receives a download instruction. That is, in another possible implementation manner of the embodiment of the present application, when the cloud host receives the download instruction, the cloud host may be accessed to the server provided with the download warehouse by using the virtual network card.
it should be noted that, in order to save network resources, in this embodiment of the application, after the cloud host is accessed to the server provided with the download warehouse by using the virtual network card, if the cloud host does not receive the download instruction within the preset time period, the virtual network card is automatically controlled to disconnect the connection between the cloud host and the server provided with the download warehouse.
It should be further noted that, in the embodiment of the present application, the two preset access conditions may be simultaneously adopted. For example, when the cloud host is started, the virtual network card is adopted to access the cloud host to a server provided with a download warehouse; further, when the cloud host does not receive the downloading instruction within the preset time length, the virtual network card is automatically controlled to disconnect the connection between the cloud host and a server provided with a downloading warehouse; and during the period of disconnecting the cloud host from the server provided with the download warehouse, the cloud host receives the download instruction, namely, the cloud host is accessed to the server provided with the download warehouse by adopting the virtual network card.
In an embodiment of the present application, there is further provided a resource downloading method, which is applied to a cloud host, and as shown in fig. 3, the method includes:
S301: and receiving a downloading instruction.
in this embodiment of the application, the download instruction may be directly issued to the cloud host by the user, or may be issued to the cloud host by the user through a transfer device (e.g., a user terminal connected to the cloud host). In the download instruction, indication information (such as a resource name) of a resource to be downloaded should be carried, so as to facilitate resource lookup by the cloud host or the server.
S302: and when the cloud host does not access the server provided with the downloading warehouse, the cloud host is accessed into the server by adopting the virtual network card according to the default accessed preset network address.
in the embodiment of the application, the virtual network card accesses a preset network address by default. And the preset network address is the network address of the server provided with the download warehouse.
S303: downloading the resource that the download instruction requires to be downloaded from the download repository of the server.
In summary, the server connection method and the resource downloading method provided by the embodiment of the application realize the automatic network connection from the cloud host to the server provided with the downloading warehouse, so that the whole downloading process of the cloud host does not need manual deep intervention, and the human resource investment is reduced. The user does not need to set the network card configuration information when downloading, the downloading process is simplified, the whole downloading process is more friendly to the user, and the user experience degree is high.
Example two:
Based on the first embodiment, the present embodiment takes a more specific automatic connection and application program downloading process as an example to further illustrate the present application.
1. a preparation stage:
a default network is created, the download repository is deployed on a server, and the network address of the server selects the address of the created default network.
When a default network is created, the IP address of the default network may be selected from any of the available network segments. Such as 172.16.10.0/16 available, may select 172.16.10.1 as the default network, or may select any of 172.16.10.2 through 172.16.10.16.
2. A cloud host creating stage:
and starting to create a cloud host, and automatically creating a virtual network card in the background in the process of creating the cloud host, wherein the virtual network card is accessed to the network address of the server by default.
in the embodiment of the application, in order to make the user unaware, the work of establishing a virtual network card is automatically completed by the background, rather than being manually set and intervened.
in order to ensure that the virtual network card automatically created by the background can access the server, the following configuration can be automatically performed on the virtual network card:
BOOTPROTO ═ dhcp (representing which mode the network card selects to obtain the network address, static represents manual setting, and dhcp represents automatic setting);
NAME ═ enoxxxx (network card NAME);
DEVICE ═ enoxxxxx (DEVICE name);
ONBOOT is yes (whether the device is loaded by system boot or not, yes is indicated);
IPADDR 172.16.10.1 (set default network address);
NETMASK ═ 255.255.255.0(NETMASK subnet mask).
3. and an application program downloading stage:
After the cloud host is established, the user can start the operation of downloading the application program.
The network address of the cloud host downloading the application program is configured as the default access network address, so the cloud host can normally establish connection with the server with the default network address and download the application program from the downloading warehouse deployed on the cloud host.
According to the scheme, the server for deploying the download warehouse uses the preset network address for appointment, so that a user does not need to self-define and select the network address of the server for downloading the warehouse in the cloud host creating process. Even the creation of a network card required by the user to establish a connection with the server is eliminated. The whole process is not aware of the user, and after the user creates the cloud host, the cloud host has the capability of downloading the application program from the downloading warehouse.
Example three:
based on the same inventive concept, the embodiment of the present application further provides a server connection device 100 and a resource downloading device 200. Referring to fig. 4 and 5, fig. 4 shows a server connection apparatus corresponding to a server connection method shown in fig. 1, and fig. 5 shows a resource download apparatus corresponding to a resource download method shown in fig. 3. It should be understood that the apparatus 100 corresponds to the method embodiment of fig. 1 described above, and is capable of performing the various steps involved in the method of fig. 1 described above; the apparatus 200 corresponds to the method embodiment of fig. 3 described above and is capable of performing the various steps involved in the method of fig. 2 described above. The specific functions of the apparatuses 100 and 200 can be referred to the above description, and the detailed description is appropriately omitted here to avoid redundancy. The devices 100 and 200 include at least one software functional module that can be stored in memory in the form of software or firmware or solidified in the operating system of the device 100. Specifically, the method comprises the following steps:
Referring to fig. 4, the apparatus 100 is applied to an electronic device bearing a cloud host, and includes: a network card establishing module 101 and an access control module 102.
The network card establishing module 101 is used for establishing a virtual network card of the cloud host, and the virtual network card is accessed to a preset network address by default; the preset network address is the network address of a server provided with a download warehouse;
The access control module 102 is configured to access the cloud host to the server by using the virtual network card when a preset access condition is triggered.
in the embodiment of the present application, the number of servers provided with the download repository may be one.
In the embodiment of the present application, the network card establishing module 101 is specifically configured to obtain a pre-stored network address of a server provided with a download warehouse from a preset database; and setting the network address of the server provided with the download warehouse as the network address of the default access of the virtual network card.
in this embodiment, the network card establishing module 101 is specifically configured to establish a virtual network card of a cloud host in a process of creating the cloud host.
In this embodiment, the access control module 102 is specifically configured to access the cloud host to the server by using the virtual network card when the cloud host is started.
In this embodiment, the access control module 102 is further specifically configured to disconnect the connection between the cloud host and the server if the cloud host does not receive the download instruction within a preset time after the cloud host is accessed to the server through the virtual network card.
In this embodiment, the access control module 102 is specifically configured to access the cloud host to the server by using the virtual network card when the cloud host receives the download instruction.
referring to fig. 5, the apparatus 200 is applied to a cloud host, and includes: a receiving module 201, an access module 202 and a downloading module 203;
The receiving module 201 is configured to receive a download instruction;
The access module 202 is configured to access the cloud host to the server by using a virtual network card according to a default access preset network address when the cloud host does not access the server provided with the download warehouse; the virtual network card is accessed to a preset network address by default; the preset network address is the network address of a server provided with a download warehouse;
The downloading module 203 is used for downloading the resource required to be downloaded by the downloading instruction from the downloading warehouse of the server.
It should be understood that the content of the method steps in fig. 1 described in the first embodiment can be implemented by the apparatus 100 in this embodiment, the content of the method steps in fig. 3 described in the first embodiment can be implemented by the apparatus 200 in this embodiment, and for the sake of brevity, the content described in some of the first embodiment is not repeated in this embodiment.
example four:
The present embodiment provides an electronic device, which is shown in fig. 6 and includes a processor 601, a memory 602, and a communication bus 603. Wherein:
the communication bus 603 is used for connection communication between the processor 601 and the memory 602.
The processor 601 is configured to execute one or more first programs stored in the memory 602 to implement the steps of the server connection method in the first embodiment;
alternatively, the processor 601 is configured to execute one or more second programs stored in the memory 602 to implement the steps of the resource downloading method in the first embodiment.
It will be appreciated that the configuration shown in fig. 6 is merely illustrative and that the electronic device may include more or fewer components than shown in fig. 6 or have a different configuration than shown in fig. 6.
The present embodiment further provides a readable storage medium, such as a floppy disk, an optical disk, a hard disk, a flash Memory, a usb (Secure Digital Card), an MMC (Multimedia Card), etc., in which one or more programs for implementing the above steps are stored, and the one or more programs can be executed by one or more processors to implement the steps of the server connection method in the first embodiment or the steps of the resource downloading method in the first embodiment. And will not be described in detail herein.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
In addition, units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
Furthermore, the functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (12)

1. A server connection method is applied to an electronic device bearing a cloud host, and comprises the following steps:
Establishing a virtual network card of the cloud host, wherein the virtual network card is accessed to a preset network address by default; the preset network address is a network address of a server provided with a downloading warehouse;
And when a preset access condition is triggered, accessing the cloud host to the server by adopting the virtual network card.
2. The server connection method according to claim 1, wherein the number of the servers provided with the download repository is one.
3. the server connection method according to claim 1, wherein the establishing the virtual network card of the cloud host includes:
Acquiring a prestored network address of the server provided with the downloading warehouse from a preset database;
and setting the network address of the server provided with the download warehouse as the network address of the default access of the virtual network card.
4. the server connection method according to claim 1, wherein the establishing the virtual network card of the cloud host includes:
And in the process of creating the cloud host, establishing a virtual network card of the cloud host.
5. The server connection method according to any one of claims 1 to 4, wherein when a preset access condition is triggered, accessing the cloud host to the server using the virtual network card includes:
and when the cloud host is started, accessing the cloud host into the server by adopting the virtual network card.
6. the server connection method according to claim 5, further comprising, after the accessing the cloud host to the server using the virtual network card:
and if the cloud host does not receive the downloading instruction within the preset time length, disconnecting the cloud host from the server.
7. the server connection method according to any one of claims 1 to 4, wherein when a preset access condition is triggered, accessing the cloud host to the server using the virtual network card includes:
And when the cloud host receives a downloading instruction, accessing the cloud host into the server by adopting the virtual network card.
8. A resource downloading method is applied to a cloud host, and comprises the following steps:
Receiving a downloading instruction;
When the cloud host does not access a server provided with a downloading warehouse, a virtual network card is adopted to access the cloud host to the server according to a default access preset network address; the virtual network card is accessed to the preset network address by default; the preset network address is the network address of the server provided with the download warehouse;
And downloading the resource required to be downloaded by the downloading instruction from a downloading warehouse of the server.
9. A server connection device, applied to an electronic device bearing a cloud host, includes: the network card establishing module and the access control module;
The network card establishing module is used for establishing a virtual network card of the cloud host, and the virtual network card is accessed to a preset network address by default; the preset network address is a network address of a server provided with a downloading warehouse;
The access control module is used for accessing the cloud host to the server by adopting the virtual network card when a preset access condition is triggered.
10. A resource downloading device applied to a cloud host comprises: the device comprises a receiving module, an access module and a downloading module;
the receiving module is used for receiving a downloading instruction;
The access module is used for accessing the cloud host to the server by adopting a virtual network card according to a default access preset network address when the cloud host does not access the server provided with the download warehouse; the virtual network card is accessed to the preset network address by default; the preset network address is the network address of the server provided with the download warehouse;
The download module is used for downloading the resource required to be downloaded by the download instruction from a download warehouse of the server.
11. an electronic device comprising a processor, a memory, and a communication bus;
The communication bus is used for realizing connection communication between the processor and the memory;
the processor is configured to execute one or more first programs stored in the memory to implement the steps of the server connection method according to any one of claims 1 to 7;
or the processor is configured to execute one or more second programs stored in the memory to implement the steps of the resource downloading method according to claim 8.
12. a readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to perform the steps of the server connection method according to any one of claims 1 to 7 or to perform the steps of the resource download method according to claim 8.
CN201910720019.6A 2019-08-05 2019-08-05 Server connection method, resource downloading method, device, electronic equipment and medium Pending CN110545308A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910720019.6A CN110545308A (en) 2019-08-05 2019-08-05 Server connection method, resource downloading method, device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910720019.6A CN110545308A (en) 2019-08-05 2019-08-05 Server connection method, resource downloading method, device, electronic equipment and medium

Publications (1)

Publication Number Publication Date
CN110545308A true CN110545308A (en) 2019-12-06

Family

ID=68710236

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910720019.6A Pending CN110545308A (en) 2019-08-05 2019-08-05 Server connection method, resource downloading method, device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN110545308A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101197856A (en) * 2007-12-27 2008-06-11 北京交通大学 IP address space planning-free and private domain name access method in VPN network
US20140123140A1 (en) * 2010-12-28 2014-05-01 Akihiro Motoki Network virtualization system, physical node, and virtual interface identification method in virtual machine
CN104580475A (en) * 2015-01-13 2015-04-29 华为技术有限公司 Remote control method, terminal equipment, management server and remote control system
CN105553741A (en) * 2015-12-28 2016-05-04 江苏省电力公司信息通信分公司 Automatic deployment method for application system based on cloud computing
CN108347472A (en) * 2018-01-12 2018-07-31 网宿科技股份有限公司 Configuration method, Cloud Server, cloud platform and the readable storage medium storing program for executing of IP address

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101197856A (en) * 2007-12-27 2008-06-11 北京交通大学 IP address space planning-free and private domain name access method in VPN network
US20140123140A1 (en) * 2010-12-28 2014-05-01 Akihiro Motoki Network virtualization system, physical node, and virtual interface identification method in virtual machine
CN104580475A (en) * 2015-01-13 2015-04-29 华为技术有限公司 Remote control method, terminal equipment, management server and remote control system
CN105553741A (en) * 2015-12-28 2016-05-04 江苏省电力公司信息通信分公司 Automatic deployment method for application system based on cloud computing
CN108347472A (en) * 2018-01-12 2018-07-31 网宿科技股份有限公司 Configuration method, Cloud Server, cloud platform and the readable storage medium storing program for executing of IP address

Similar Documents

Publication Publication Date Title
CN111934918B (en) Network isolation method and device for container instances in same container cluster
CN109768871B (en) Method for configuring multiple virtual network cards, host machine and storage medium
CN108694117B (en) Method and device for managing test environment based on container technology
US8601466B2 (en) Software deployment method and system, software deployment server and user server
WO2016112825A1 (en) Remote control method, terminal device, management server, and remote control system
US8706850B2 (en) Computer system and configuration management method therefor
US20140129819A1 (en) Cloud cluster system and boot deployment method for the same
CN109558212B (en) Virtualization management method and system of physical equipment, physical equipment and medium
CN106657444B (en) A kind of method and device for the IP address configuring BMC
CN113419815B (en) Method, system, equipment and medium for pre-starting operation environment installation
CN103049295A (en) Network installation method for Linux operating systems with godson platforms
CN111901177A (en) Bare metal server network configuration method, system and related equipment
CN113572862A (en) Cluster deployment method and device, electronic equipment and storage medium
CN111857956A (en) Virtual machine starting method and equipment
CN113612702B (en) Method, system, equipment and storage medium for realizing bare metal inspection process
CN113419813B (en) Method and device for deploying bare engine management service based on container platform
CN108234174B (en) Management method and device of virtual network function
CN111200527B (en) Method for automatically discovering and deploying bare computer based on ironic
CN108737202A (en) A kind of host batch dispositions method, device and system
CN108881504A (en) A kind of hardware information automatic acquiring method and device
CN115333933B (en) Automatic management method, medium and equipment for servers on machine room
CN112256351A (en) Implementation method of Feign component, micro-service calling method and device
CN110545308A (en) Server connection method, resource downloading method, device, electronic equipment and medium
CN114995888A (en) Intelligent network card deployment method, device and medium
CN114490189A (en) Cloud platform database backup method and device, electronic equipment and storage medium

Legal Events

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

Application publication date: 20191206

RJ01 Rejection of invention patent application after publication