CN110008019B - Method, device and system for sharing server resources - Google Patents

Method, device and system for sharing server resources Download PDF

Info

Publication number
CN110008019B
CN110008019B CN201910149949.0A CN201910149949A CN110008019B CN 110008019 B CN110008019 B CN 110008019B CN 201910149949 A CN201910149949 A CN 201910149949A CN 110008019 B CN110008019 B CN 110008019B
Authority
CN
China
Prior art keywords
server
access terminal
operation interface
terminal
user
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.)
Expired - Fee Related
Application number
CN201910149949.0A
Other languages
Chinese (zh)
Other versions
CN110008019A (en
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201910149949.0A priority Critical patent/CN110008019B/en
Publication of CN110008019A publication Critical patent/CN110008019A/en
Application granted granted Critical
Publication of CN110008019B publication Critical patent/CN110008019B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Telephonic Communication Services (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a method, a device and a system for sharing server resources, wherein the method comprises the following steps: receiving sharing requests of one or more access terminals, wherein each sharing request carries a user identifier for logging in the access terminal and a terminal identifier of the access terminal, and the access terminal is connected with the server through a wireless network; verifying the identity of the access terminal according to the user identification and the terminal identification; when the identity authentication passes, searching an operation interface corresponding to the user identification according to a mapping table, wherein the mapping table is provided with a plurality of operation interfaces corresponding to the user identification one by one; and mapping the operation interface to a display screen of the access terminal. The invention makes the server separate from the limit of the hardware, realizes the portable use of the server, and does not need to carry heavy hardware when using the highly configured server.

Description

Method, device and system for sharing server resources
Technical Field
The invention relates to the field of computers, in particular to a method, a device and a system for sharing server resources.
Background
In the prior art, a computer is needed for processing a large task, but the computer is not easy to carry, so that the inconvenience of a user is caused, and equipment which is high in configuration and easy to carry is a solution required by the user.
In the data sharing scheme in the prior art, the network disk can complete online storage and simple processing tasks (such as BT downloading and the like). The file downloading method aims to solve the problem that the computer and other equipment are not portable, files are uploaded to a server, and then the files can be downloaded and continuously operated by using other equipment in different places. The web-disk based solution is limited to the equipment at the time of off-site processing. The method can not work continuously by using the familiar environment, only the file storage and transmission are solved unilaterally, but the software breakpoint can not be recovered in time, the network disk can not bring the complete operating system and the software environment to different places, and the working efficiency is greatly limited.
In view of the above problems in the prior art, no effective solution has been found.
Disclosure of Invention
The embodiment of the invention provides a method, a device and a system for sharing server resources.
According to an embodiment of the present invention, there is provided a method for sharing server resources, including: receiving sharing requests from one or more access terminals, wherein each sharing request carries a user identifier for logging in the access terminal and a terminal identifier of the access terminal; verifying the identity of the access terminal according to the user identification and the terminal identification; when the identity authentication passes, searching an operation interface corresponding to the user identification according to a mapping table, wherein the mapping table is provided with a plurality of operation interfaces corresponding to the user identification one by one; and mapping the operation interface to a display screen of the access terminal.
Optionally, after searching for the operation interface corresponding to the user identifier according to the mapping table, the method includes: allocating fixed physical resources of the server to the access terminal according to the user identifier, and allocating temporary physical resources of the server to the access terminal according to the resource utilization rate of the server; linking, in the server, the fixed physical resource and the temporary physical resource to the access terminal.
Optionally, allocating the fixed physical resource of the server to the access terminal according to the user identifier includes: searching a disk area corresponding to the user identification in a hard disk resource pool; and unlocking the disk area in the hard disk resource pool.
Optionally, allocating the temporary physical resource of the server to the access terminal according to the resource utilization rate of the server includes: determining an idle running memory which is not occupied currently in the server and an idle thread of the processor; and releasing the idle running memory and the idle thread of the server for the access terminal according to a preset proportion.
Optionally, after determining the idle running memory currently not occupied in the server and the idle thread of the processor, the method further includes: judging whether the idle running memory is lower than a first threshold value or not, and judging whether the idle thread is lower than a second threshold value or not; when the idle running memory is lower than a first threshold or the idle thread is lower than a second threshold, requesting temporary running memory or a temporary thread from a designated device, wherein the designated device is a backup server of the server or other servers in a cluster with the server; adding the temporary run-in or the temporary thread to the idle run-in and the idle thread.
Optionally, after mapping the operation interface to the display screen of the access terminal, the method further includes: receiving a control instruction from the access terminal; calling the fixed physical resource and the temporary physical resource in the server to process the control instruction and obtain a control result picture;
and after the control result picture is loaded in the operation interface, sending the operation interface to a display screen of the access terminal.
Optionally, the method further includes: determining the display size of the display screen according to the terminal identification; after an operation interface corresponding to the user identification is searched according to a mapping table, the size of the operation interface is adapted to the display size.
Optionally, after searching for the operation interface corresponding to the user identifier according to the mapping table, the method further includes: and starting a preset program in the operation interface, wherein the preset program is installed in a common physical resource of the server.
According to another embodiment of the present invention, there is provided an apparatus for sharing server resources, including: a receiving module, configured to receive a sharing request from one or more access terminals, where each sharing request carries a user identifier for logging in the access terminal and a terminal identifier of the access terminal; the verification module is used for verifying the identity of the access terminal according to the user identification and the terminal identification; the searching module is used for searching an operation interface corresponding to the user identification according to a mapping table when the identity authentication passes, wherein the mapping table is provided with a plurality of operation interfaces corresponding to the user identification one by one; and the mapping module is used for mapping the operation interface to a display screen of the access terminal.
According to still another embodiment of the present invention, there is provided a system for sharing server resources, including: a server, one or more access terminals, and a mobile terminal, wherein the server comprises: a receiving module, configured to receive a sharing request from one or more access terminals, where each sharing request carries a user identifier for logging in the access terminal and a terminal identifier of the access terminal; the verification module is used for verifying the identity of the access terminal according to the user identification and the terminal identification; the searching module is used for searching an operation interface corresponding to the user identification according to a mapping table when the identity authentication passes, wherein the mapping table is provided with a plurality of operation interfaces corresponding to the user identification one by one; the mapping module is used for mapping the operation interface to a display screen of the access terminal; the access terminal: the two-dimensional code comprises equipment identification and is used for displaying the operation interface on a display screen after the identity authentication is passed; the mobile terminal is configured to scan the two-dimensional code on the access terminal, generate the sharing request, and send the sharing request to the server.
According to a further embodiment of the present invention, there is also provided a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
According to the invention, a sharing request of one or more access terminals is received, the identity of the access terminal is verified according to the user identification and the terminal identification, when the identity verification is passed, an operation interface corresponding to the user identification is searched according to a mapping table, and finally the operation interface is mapped to a display screen of the access terminal. The user can display the server hosted in the network on the terminal at any time and any place for use, the terminal equipment is linked with the virtual system of the server when the user logs in the server, screen content display and keyboard input can be achieved, the server is free from the limitation of hardware, the server is portable for use, and heavy hardware does not need to be carried when the highly-configured server is used.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a block diagram of a server architecture for sharing server resources according to an embodiment of the present invention;
FIG. 2 is a flow diagram of a method of sharing server resources according to an embodiment of the invention;
FIG. 3 is a flow chart of handset login in an embodiment of the invention;
FIG. 4 is a block diagram of an apparatus for sharing server resources according to an embodiment of the present invention;
FIG. 5 is a block diagram of a system for sharing server resources, according to an embodiment of the invention;
FIG. 6 is a system architecture framework diagram of an embodiment of the invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
Example 1
The method provided by the first embodiment of the present application may be executed in a mobile terminal, a computer terminal, a server, or a similar computing device. Taking an example of the server running on the server, fig. 1 is a block diagram of a server structure sharing server resources according to an embodiment of the present invention. As shown in fig. 1, the server 10 may include one or more (only one shown in fig. 1) processors 102 (the processors 102 may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, and optionally may also include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and is not intended to limit the structure of the server. For example, the server 10 may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 can be used for storing computer programs, for example, software programs and modules of application software, such as a computer program corresponding to a method for sharing server resources in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, so as to implement the above-mentioned method. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 104 may further include memory located remotely from processor 102, which may be connected to server 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the server 10. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In this embodiment, a method for sharing server resources is provided, and fig. 2 is a flowchart of a method for sharing server resources according to an embodiment of the present invention, as shown in fig. 2, the flowchart includes the following steps:
step S202, receiving sharing requests of one or more access terminals, wherein each sharing request carries a user identifier for logging in the access terminal and a terminal identifier of the access terminal, and the access terminal is connected with the server through a wireless network;
the access terminal of the embodiment is any terminal comprising a display screen and network communication, and a plurality of access terminals can be distributed at different positions and are remotely and wirelessly connected with the server;
step S204, the identity of the access terminal is verified according to the user identification and the terminal identification;
step S206, when the identity authentication passes, searching an operation interface corresponding to the user identification according to a mapping table, wherein the mapping table is provided with a plurality of operation interfaces corresponding to the user identification one by one;
the mapping table of this embodiment is preset in the server, and corresponding operation interfaces are allocated to different users, where the operation interfaces include information such as an operating system, a theme style, and installed operating software.
And step S208, mapping the operation interface to a display screen of the access terminal. The mapping operation interface of this embodiment refers to sending the operation interface to a display screen of the access terminal for displaying, and updating a dynamic operation interface in real time.
Through the steps, a sharing request of one or more access terminals is received, the identity of the access terminal is verified according to the user identification and the terminal identification, when the identity verification is passed, an operation interface corresponding to the user identification is searched according to a mapping table, and finally the operation interface is mapped to a display screen of the access terminal. The user can display the server hosted in the network on the terminal at any time and any place for use, the terminal equipment is linked with the virtual system of the server when the user logs in the server, screen content display and keyboard input can be achieved, the server is free from the limitation of hardware, the server is portable for use, and heavy hardware does not need to be carried when the highly-configured server is used.
The identity authentication of the embodiment includes the identity authentication of the server to the access terminal and the user authentication of the server to the user, the server will authorize to map the operation interface of the user to the display screen only when the identity authentication of the access terminal passes, and the server will map the operation interface to the access terminal only when the identity authentication of the user passes. Fig. 3 is a flowchart of mobile phone login in an embodiment of the present invention, before a user uses the mobile phone, the server may log in a website and register an account, after the login is successful, the server may send a Token including a user identifier such as a user name, a secret key, a unique Id, a hash signature, etc., the mobile phone at the mobile terminal stores the Token in a Cookie and sets an expiration time to wait for logging in the access terminal, the access terminal generates a two-dimensional code for the user to scan during the waiting period, the two-dimensional code includes a device Id and a timestamp of the access terminal, the user uses the mobile phone to scan the two-dimensional code and then invokes a browser to open a connection pointed by the browser, and sends the Token in the Cookie (carried in a sharing request) to the server for authentication of the server, after the server receives the sharing request of the user's code scanning, the server verifies the Token identity and determines whether the Token is expired, if the Token passes the verification, writing an authorization code into the buffer area, brushing the buffer area when a round training request is received, clearing the buffer area, sending the authorization code, taking out an account number, a password, an IP address and a Hash signature connected with a remote desktop from the authorization code after the access terminal receives the authorization code, initiating connection, mapping an operation interface of the server at the cloud end to a display screen of the access terminal after the connection is successful, and directly shooting the operation interface of the server at the cloud end to the display screen of the access terminal after the verification is passed. And after the user closes the connection, the server records the connection disconnection of the remote desktop, releases resources and clears the cache. Waiting for the next connection.
The server (cluster) of this embodiment is a device that can operate independently, and is characterized by being configured highly, but the location is fixed, the hardware configuration of the server includes fixed physical resources and temporary physical resources, the fixed physical resources are physical resources that are fixedly allocated to each user, also called private resources, and are not changeable, when a first user sends target data stored in its private resources to a second user, only the storage path of the target data needs to be changed in the resource pool of the server, and the temporary physical resources are physical resources that can be flexibly allocated, also called public resources, and can be flexibly configured. After searching the operation interface corresponding to the user identifier according to the mapping table, the server further includes:
s11, allocating fixed physical resources of the server for the access terminal according to the user identification, and allocating temporary physical resources of the server for the access terminal according to the resource utilization rate of the server;
optionally, allocating the fixed physical resource of the server to the access terminal according to the user identifier includes: searching a disk area corresponding to the user identification in a hard disk resource pool; and unlocking the disk area in the hard disk resource pool. In one example, according to the number of registered users, the hard disk resource pool is divided into four disk areas a to D, and the disk areas are respectively allocated to only corresponding four users a to D.
Correspondingly, allocating the temporary physical resource of the server to the access terminal according to the resource utilization rate of the server includes: determining the idle running memory which is not occupied currently in the server and the idle thread of the processor; and releasing the idle running memory and the idle thread of the server for the access terminal according to a preset proportion. Such as releasing half of the current idle memory and idle threads to the access terminal.
In an implementation manner of this embodiment, after determining the idle run memory that is not currently occupied in the server and the idle thread of the processor, the method further includes: judging whether the idle running memory is lower than a first threshold value or not, and judging whether the idle thread is lower than a second threshold value or not; when the idle running memory is lower than a first threshold value or the idle thread is lower than a second threshold value, requesting temporary running memory or a temporary thread from a designated device, wherein the designated device is a backup server of a server or other servers of a cluster which are the same as the server; adding temporary run or temporary threads to idle run and idle threads. In one example, the number of idle threads remaining in the server is 500M and 2 respectively, and according to the target task of request processing of the shared request, at least 1G of idle threads (first threshold) and 4 threads (second threshold) are required for processing the target task, and at least 500M of idle threads and 2 threads need to be requested from the specified device.
S12, linking the fixed physical resource and the temporary physical resource to the access terminal in the server. After the fixed physical resources and the temporary physical resources are linked to the access terminal, the fixed physical resources and the temporary physical resources are only called by the access terminal and run in the server until the user logs out of the server in a processing cycle. And through a scheduling algorithm, computing resources are allocated in real time, more resources are allocated for large tasks, reasonable resources are allocated for small-scale tasks, and reasonable allocation and utilization of the resources are realized.
Optionally, after searching for the operation interface corresponding to the user identifier according to the mapping table, the method further includes: and starting a predetermined program in the operation interface, wherein the predetermined program is installed in the common physical resource of the server. The public processing resource ensures that common software like Office and the like only needs to be installed once, a plurality of users on the whole platform can use the software, and the private programs of the users can be installed on the private resources of the users.
In this embodiment, the method for an access terminal to connect and call physical resources on a server side through a network and send a control result picture back to a local for display includes, after mapping an operation interface to a display screen of the access terminal:
s21, receiving a control instruction from the access terminal;
s22, calling the fixed physical resource and the temporary physical resource in the server to process the control instruction and obtain a control result picture;
and S23, after the control result picture is loaded in the operation interface, the operation interface is sent to a display screen of the access terminal.
The user can make the access terminal and the server become a 'private computer' of the user through the identity authentication of the mobile phone at any place where the terminal is deployed. Because the operating system on the server is virtualized in the cloud, the system does not shut down but stores the work breakpoints after the user logs out, the last software environment can be restored immediately when the user logs in next time, and all software and files are not reopened, so that the efficiency is greatly improved.
In an implementation manner of this embodiment, the screen size of the access terminal may be further adapted, and the scheme includes: determining the display size of the display screen according to the terminal identification; after an operation interface corresponding to the user identification is searched according to a mapping table, the size of the operation interface is adapted to the display size. If the currently connected access terminal is determined to be a 50-inch display screen according to the terminal identification, the operation interface can be adjusted to 50 inches and then mapped to the access terminal. Besides, the image frame size of the operation interface can be further adjusted according to the screen resolution of the access terminal.
The embodiment can be applied to various indoor and outdoor scenes, and when the embodiment is applied to the public screen display of a conference room, the access terminal can serve as the terminal as long as the access software is installed as the access terminal is not configured by a hardware environment. Therefore, the access terminal can be connected to hardware such as a large screen of a conference room. When the contents need to be demonstrated, the user can directly scan codes to log in the system, open the demonstration file on the 'own computer' and rapidly demonstrate the demonstration file. When new opinions and ideas exist in the conference, the file can be directly edited, relevant modified contents are stored in the cloud, and copying by using a USB flash disk and other modes like a traditional mode is not needed. Except for the accident of deploying terminals and household terminals in an office area, public-interest terminals with public attributes can be installed on newsstand, bus stations, telegraph poles and the like for being used by other people, and at the public terminals, users can quickly inquire maps, search merchants, work temporarily, know preferential information, order meals and the like on equipment larger than a mobile phone screen, so that regional and timely services are provided.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 2
In this embodiment, an apparatus and a system for sharing server resources are also provided, which are used to implement the foregoing embodiments and preferred embodiments, and are not described again after being described. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 4 is a block diagram of a device for sharing server resources according to an embodiment of the present invention, which may be applied to a server, where when a plurality of servers form a cluster, the device is applied to a management apparatus of the cluster, as shown in fig. 4, the device includes: a receiving module 40, a verification module 42, a lookup module 44, a mapping module 46, wherein,
a receiving module 40, configured to receive a sharing request from one or more access terminals, where each sharing request carries a user identifier for logging in the access terminal and a terminal identifier of the access terminal;
a verification module 42, configured to verify an identity of the access terminal according to the user identifier and the terminal identifier;
the searching module 44 is configured to search, when the identity authentication passes, an operation interface corresponding to the user identifier according to a mapping table, where the mapping table is provided with a plurality of operation interfaces corresponding to the user identifiers one to one;
a mapping module 46, configured to map the operation interface to a display screen of the access terminal.
Fig. 5 is a block diagram of a system for sharing server resources according to an embodiment of the present invention, as shown in fig. 5, including: a server 50, one or more access terminals 52, a mobile terminal 54, wherein,
the server 50 includes: a receiving module, configured to receive a sharing request from one or more access terminals, where each sharing request carries a user identifier for logging in the access terminal and a terminal identifier of the access terminal; the verification module is used for verifying the identity of the access terminal according to the user identification and the terminal identification; the searching module is used for searching an operation interface corresponding to the user identification according to a mapping table when the identity authentication passes, wherein the mapping table is provided with a plurality of operation interfaces corresponding to the user identification one by one; the mapping module is used for mapping the operation interface to a display screen of the access terminal;
the access terminal 52: the two-dimensional code comprises equipment identification and is used for displaying the operation interface on a display screen after the identity authentication is passed;
the mobile terminal 54 is configured to scan the two-dimensional code on the access terminal, generate the sharing request, and send the sharing request to the server.
Fig. 6 is a schematic diagram of a system structural framework according to an embodiment of the present invention, where an access terminal is set outside the terminal, and may further include interactive components such as a mouse and a keyboard, the user terminal is a mobile terminal such as a mobile phone and the like that a user logs in, the server cluster is a server cluster composed of one or more servers, a virtual operating system and the like are included in software, a processor and a memory are included in hardware, and hard disk resources of each user are isolated by a storage sandbox.
At the server side, virtual sandbox environments are created for different users. Each user independently uses computing and storage resources, and the users are independent. Fixed processors and memories are not allocated to users, when each user logs in, spare processing resources are allocated by a scheduling program, and each user is equivalent to obtaining virtual fixed processor and memory resources. When the user leaves the terminal, the scheduling algorithm divides the distribution link of the destruction processor and the memory back into the resource pool.
And data storage resources on the server for distinguishing the users provide fixed hard disk resources for each user. Hard disks are not shared among different users. In addition, when file sharing is initiated among different users and the local file is sent to other user accounts, the server only needs to change the file index, and the file sending can be very quick. For the server, the files of different users are stored in a local hard disk. When two users initiate file sharing, the file can be directly moved from the local directory to the local directory. The operation mode can greatly improve the file copying speed among different computers. Compared with the traditional mobile hard disk copy, firstly, files are copied only once instead of twice, and secondly, for the same physical machine, the copying of two files in one hard disk is far faster than the copying through USB.
And the access terminal side consists of a raspberry group, a screen and necessary peripherals, and the terminal screen displays a two-dimensional code which is refreshed at regular time for the user to scan when the user logs in. The access terminal queries whether the server authorizes the terminal in an HTTP (hyper text transport protocol) rotation mode. And after the terminal is authorized, the terminal is linked to the remote desktop of the virtual system authorized by the server, and the peripheral equipment is mapped to the virtual system on the server.
On a mobile phone (user terminal), after each user logs in by using a webpage, a Token (Token) containing user identity information is set, after a two-dimensional code is scanned, the Token is sent by using an HTTP connection server, and the Token is verified by the server.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Example 3
Embodiments of the present invention also provide a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
Alternatively, in an aspect of the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, receiving sharing requests of one or more access terminals, wherein each sharing request carries a user identifier for logging in the access terminal and a terminal identifier of the access terminal;
s2, verifying the access terminal identity according to the user identification and the terminal identification;
s3, when the identity authentication passes, searching an operation interface corresponding to the user identification according to a mapping table, wherein the mapping table is provided with a plurality of operation interfaces corresponding to the user identification one by one;
and S4, mapping the operation interface to a display screen of the access terminal.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in an aspect of this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, receiving sharing requests of one or more access terminals, wherein each sharing request carries a user identifier for logging in the access terminal and a terminal identifier of the access terminal;
s2, verifying the access terminal identity according to the user identification and the terminal identification;
s3, when the identity authentication passes, searching an operation interface corresponding to the user identification according to a mapping table, wherein the mapping table is provided with a plurality of operation interfaces corresponding to the user identification one by one;
and S4, mapping the operation interface to a display screen of the access terminal.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (9)

1. A method of sharing server resources, comprising:
receiving sharing requests of one or more access terminals, wherein each sharing request carries a user identifier for logging in the access terminal and a terminal identifier of the access terminal, and the access terminal is connected with the server through a wireless network;
verifying the identity of the access terminal according to the user identification and the terminal identification;
when the identity authentication passes, searching an operation interface corresponding to the user identification according to a mapping table, wherein the mapping table is provided with a plurality of operation interfaces corresponding to the user identification one by one;
allocating fixed physical resources of the server to the access terminal according to the user identifier, and allocating temporary physical resources of the server to the access terminal according to the resource utilization rate of the server;
linking, in the server, the fixed physical resource and the temporary physical resource to the access terminal;
and mapping the operation interface to a display screen of the access terminal.
2. The method of claim 1, wherein allocating fixed physical resources of the server to the access terminal according to the user identifier comprises:
searching a disk area corresponding to the user identification in a hard disk resource pool;
and unlocking the disk area in the hard disk resource pool.
3. The method of claim 1, wherein allocating the temporary physical resources of the server to the access terminal according to the resource utilization of the server comprises:
determining an idle running memory which is not occupied currently in the server and an idle thread of the processor;
and releasing the idle running memory and the idle thread of the server for the access terminal according to a preset proportion.
4. The method of claim 3, wherein after determining idle memory currently unoccupied in the server and idle threads of a processor, the method further comprises:
judging whether the idle running memory is lower than a first threshold value or not, and judging whether the idle thread is lower than a second threshold value or not;
when the idle running memory is lower than a first threshold or the idle thread is lower than a second threshold, requesting temporary running memory or a temporary thread from a designated device, wherein the designated device is a backup server of the server or other servers in a cluster with the server;
adding the temporary run-in or the temporary thread to the idle run-in and the idle thread.
5. The method of claim 1, wherein after mapping the operator interface to a display screen of the access terminal, the method further comprises:
receiving a control instruction from the access terminal;
calling the fixed physical resource and the temporary physical resource in the server to process the control instruction and obtain a control result picture;
and after the control result picture is loaded in the operation interface, sending the operation interface to a display screen of the access terminal.
6. The method of claim 1, further comprising:
determining the display size of the display screen according to the terminal identification;
after an operation interface corresponding to the user identification is searched according to a mapping table, the size of the operation interface is adapted to the display size.
7. The method of claim 1, wherein after searching for the operation interface corresponding to the user identifier according to a mapping table, the method further comprises:
and starting a preset program in the operation interface, wherein the preset program is installed in a common physical resource of the server.
8. An apparatus for sharing server resources, comprising:
a receiving module, configured to receive a sharing request from one or more access terminals, where each sharing request carries a user identifier for logging in the access terminal and a terminal identifier of the access terminal;
the verification module is used for verifying the identity of the access terminal according to the user identification and the terminal identification;
the searching module is used for searching an operation interface corresponding to the user identification according to a mapping table when the identity authentication passes, wherein the mapping table is provided with a plurality of operation interfaces corresponding to the user identification one by one; allocating fixed physical resources of the server to the access terminal according to the user identifier, and allocating temporary physical resources of the server to the access terminal according to the resource utilization rate of the server; linking, in the server, the fixed physical resource and the temporary physical resource to the access terminal;
and the mapping module is used for mapping the operation interface to a display screen of the access terminal.
9. A system for sharing server resources, comprising: a server, one or more access terminals, a mobile terminal, wherein,
the server includes:
a receiving module, configured to receive a sharing request from one or more access terminals, where each sharing request carries a user identifier for logging in the access terminal and a terminal identifier of the access terminal;
the verification module is used for verifying the identity of the access terminal according to the user identification and the terminal identification;
the searching module is used for searching an operation interface corresponding to the user identification according to a mapping table when the identity authentication passes, wherein the mapping table is provided with a plurality of operation interfaces corresponding to the user identification one by one; allocating fixed physical resources of the server to the access terminal according to the user identifier, and allocating temporary physical resources of the server to the access terminal according to the resource utilization rate of the server; linking, in the server, the fixed physical resource and the temporary physical resource to the access terminal;
the mapping module is used for mapping the operation interface to a display screen of the access terminal;
the access terminal: the two-dimensional code comprises equipment identification and is used for displaying the operation interface on a display screen after the identity authentication is passed;
the mobile terminal is configured to scan the two-dimensional code on the access terminal, generate the sharing request, and send the sharing request to the server.
CN201910149949.0A 2019-02-28 2019-02-28 Method, device and system for sharing server resources Expired - Fee Related CN110008019B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910149949.0A CN110008019B (en) 2019-02-28 2019-02-28 Method, device and system for sharing server resources

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910149949.0A CN110008019B (en) 2019-02-28 2019-02-28 Method, device and system for sharing server resources

Publications (2)

Publication Number Publication Date
CN110008019A CN110008019A (en) 2019-07-12
CN110008019B true CN110008019B (en) 2021-06-08

Family

ID=67166251

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910149949.0A Expired - Fee Related CN110008019B (en) 2019-02-28 2019-02-28 Method, device and system for sharing server resources

Country Status (1)

Country Link
CN (1) CN110008019B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112887228B (en) * 2019-11-29 2024-02-02 阿里巴巴集团控股有限公司 Cloud resource management method and device, electronic equipment and computer readable storage medium
CN111277574B (en) * 2020-01-14 2022-05-17 杭州涂鸦信息技术有限公司 Method and system for generating timeliness offline secret key for secure communication of shared equipment
CN112102519B (en) * 2020-09-14 2022-08-16 广州小鹏自动驾驶科技有限公司 Vehicle data uploading method and device
CN114816646B (en) * 2022-06-30 2022-11-11 天津联想协同科技有限公司 Shortcut operation method, device, terminal and storage medium suitable for network disk drive letter

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101902327A (en) * 2009-06-01 2010-12-01 中国移动通信集团公司 Method and device for realizing single-point log-in and system thereof
CN105389117A (en) * 2015-12-07 2016-03-09 腾讯科技(深圳)有限公司 Resource acquiring method and apparatus and resource processing method, apparatus and system
CN105991738A (en) * 2015-02-27 2016-10-05 中国移动通信集团四川有限公司 Method and system for cross safety domain resource sharing in cloud resource pool
CN108965480A (en) * 2018-09-07 2018-12-07 平安科技(深圳)有限公司 Cloud desktop login management-control method, device and computer readable storage medium
CN109067866A (en) * 2018-07-27 2018-12-21 北京金山云网络技术有限公司 A kind of resource share method, device, electronic equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9479490B2 (en) * 2013-06-07 2016-10-25 Apple Inc. Methods and systems for single sign-on while protecting user privacy

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101902327A (en) * 2009-06-01 2010-12-01 中国移动通信集团公司 Method and device for realizing single-point log-in and system thereof
CN105991738A (en) * 2015-02-27 2016-10-05 中国移动通信集团四川有限公司 Method and system for cross safety domain resource sharing in cloud resource pool
CN105389117A (en) * 2015-12-07 2016-03-09 腾讯科技(深圳)有限公司 Resource acquiring method and apparatus and resource processing method, apparatus and system
CN109067866A (en) * 2018-07-27 2018-12-21 北京金山云网络技术有限公司 A kind of resource share method, device, electronic equipment and storage medium
CN108965480A (en) * 2018-09-07 2018-12-07 平安科技(深圳)有限公司 Cloud desktop login management-control method, device and computer readable storage medium

Also Published As

Publication number Publication date
CN110008019A (en) 2019-07-12

Similar Documents

Publication Publication Date Title
CN110008019B (en) Method, device and system for sharing server resources
US11463442B2 (en) Method and apparatus for information exchange over a web based environment
US10812566B2 (en) Distributed steam processing
JP6515207B2 (en) Internet access authentication method and client, and computer storage medium
CN112035215B (en) Node autonomous method, system and device of node cluster and electronic equipment
CN105408863A (en) Endpoint data centers of different tenancy sets
CN107580011B (en) Data sharing method and desktop cloud server
US10346618B1 (en) Data encryption for virtual workspaces
US20120079389A1 (en) Method and Apparatus For Information Exchange Over a Web Based Environment
JP2017513151A (en) Private cloud connection device cluster architecture
CN110636057B (en) Application access method and device and computer readable storage medium
US11303729B2 (en) Virtual workspace experience visualization and optimization
CN104635543A (en) Method and device for carrying out management operation
CN103812900A (en) Data synchronization method, device and system
CN109726545B (en) Information display method, equipment, computer readable storage medium and device
US9350738B2 (en) Template representation of security resources
CN106453349A (en) An account number login method and apparatus
CN105763545B (en) A kind of BYOD method and device
CN112256760B (en) Data prediction method and device, computer equipment and storage medium
US20170171357A1 (en) Apparatus and method for assisting in downloading file successfully
CN114327757B (en) Network target range tool delivery method, device, equipment and readable storage medium
CN103379148A (en) Cloud calculator and method for processing files through cloud calculator
CN109308288A (en) Data processing method and device
US10623370B1 (en) Secure data flow for virtual workspaces
CN111683164B (en) IP address configuration method and VPN service system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210608

CF01 Termination of patent right due to non-payment of annual fee