[go: up one dir, main page]

CN105975359A - Method and device for data cleaning of server and server - Google Patents

Method and device for data cleaning of server and server Download PDF

Info

Publication number
CN105975359A
CN105975359A CN201510472361.0A CN201510472361A CN105975359A CN 105975359 A CN105975359 A CN 105975359A CN 201510472361 A CN201510472361 A CN 201510472361A CN 105975359 A CN105975359 A CN 105975359A
Authority
CN
China
Prior art keywords
router
binding relationship
cloud server
instruction
account
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
CN201510472361.0A
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.)
Leshi Zhixin Electronic Technology Tianjin Co Ltd
Original Assignee
Leshi Zhixin Electronic Technology Tianjin 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 Leshi Zhixin Electronic Technology Tianjin Co Ltd filed Critical Leshi Zhixin Electronic Technology Tianjin Co Ltd
Priority to CN201510472361.0A priority Critical patent/CN105975359A/en
Publication of CN105975359A publication Critical patent/CN105975359A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明实施例提供一种对服务器进行数据清理的方法、装置及服务器,其中所述方法包括:在判定当前启动的路由器的启动操作为恢复出厂设置后的重启操作时,生成数据清理指令,所述数据清理指令包括路由器标识;将所述数据清理指令发送至云端服务器,促使所述云端服务器在预先存储的账号绑定关系中查找与所述路由器标识对应的账号绑定关系,并在查找到所述对应的账号绑定关系时删除所述对应的账号绑定关系,以及,生成响应信息并向所述路由器返回所述响应信息,其中,所述账号绑定关系为路由器标识与用户的登录账号信息的绑定关系。本发明实施例可以确保路由器恢复出厂设置后,路由器中存储的信息与云端服务器中存储的信息的一致性。

Embodiments of the present invention provide a method, device, and server for data cleaning on a server, wherein the method includes: generating a data cleaning instruction when determining that the startup operation of the currently started router is a restart operation after restoring factory settings, and The data cleaning instruction includes a router identifier; the data cleaning instruction is sent to the cloud server, prompting the cloud server to search for the account binding relationship corresponding to the router identifier in the pre-stored account binding relationship, and find When the corresponding account binding relationship is deleted, the corresponding account binding relationship is deleted, and response information is generated and the response information is returned to the router, wherein the account binding relationship is the router identifier and the user's login Binding relationship of account information. The embodiment of the present invention can ensure that the information stored in the router is consistent with the information stored in the cloud server after the router is restored to factory settings.

Description

一种对服务器进行数据清理的方法、装置及服务器A method, device, and server for data cleaning on a server

技术领域technical field

本发明实施例涉及数据处理技术领域,尤其涉及一种对服务器进行数据清理的方法、装置及服务器。The embodiments of the present invention relate to the technical field of data processing, and in particular, to a method, a device, and a server for data cleaning of a server.

背景技术Background technique

随着科学技术的发展,终端设备的智能化程度越来越高,智能设备越来越普及,作为网关设备的路由器也提出了智能路由器的概念。With the development of science and technology, terminal devices are becoming more and more intelligent, and smart devices are becoming more and more popular. The router as a gateway device has also proposed the concept of a smart router.

智能路由器是指智能化管理的路由器,通常具有独立的操作系统,可以由用户自行安装各种应用,自行控制带宽、自行控制在线人数、自行控制浏览网页、自行控制在线时间、同时拥有强大的USB共享功能,做到网络和设备的智能化管理。A smart router refers to a router with intelligent management. It usually has an independent operating system. Users can install various applications by themselves, control the bandwidth, the number of people online, browse the web, and the online time by themselves. At the same time, they have a powerful USB Sharing function to achieve intelligent management of network and equipment.

智能路由器较为常用的操作系统为基于OpenWrt的操作系统,其中,OpenWrt是一个高度模块化、高度自动化的嵌入式Linux系统,拥有强大的网络组件和扩展性,常常被用于工控设备、电话、小型机器人、智能家居、路由器以及VOIP设备中,在OpenWrt中,有专门的配置文件用来保存数据,并且提供丰富的访问接口。The more commonly used operating system for smart routers is the operating system based on OpenWrt. Among them, OpenWrt is a highly modular and highly automated embedded Linux system with powerful network components and scalability. It is often used in industrial control equipment, telephones, small In robots, smart homes, routers, and VOIP devices, in OpenWrt, there are special configuration files used to save data and provide rich access interfaces.

在智能路由器的配置文件中可以保存用户的登录账号信息,但在路由器执行恢复出厂操作时,会清空配置文件中的登录账号信息。因此,若路由器执行恢复出厂操作重启后,从路由器的角度来看,是没有用户的登录账号信息的(包括登录账号信息和路由器的一对一绑定关系),而在与路由器交互的云端服务器中,用户的登录账号信息与路由器的绑定关系是存在的,这就导致了云端服务器和路由器本地的信息不一致。The user's login account information can be saved in the configuration file of the smart router, but when the router performs a factory reset operation, the login account information in the configuration file will be cleared. Therefore, if the router performs the factory reset operation and restarts, from the perspective of the router, there is no user login account information (including the one-to-one binding relationship between the login account information and the router), and the cloud server that interacts with the router In , there is a binding relationship between the user's login account information and the router, which leads to inconsistencies between the cloud server and the router's local information.

发明内容Contents of the invention

本发明实施例提供一种对服务器进行数据清理的方法、装置及服务器,用以解决现有技术中云端服务器和路由器本地的信息不一致的缺陷,确保路由器恢复出厂设置后,路由器中存储的信息与云端服务器中存储的信息的一致性。Embodiments of the present invention provide a method, device, and server for data cleaning of a server to solve the defect of inconsistent information between the cloud server and the local router in the prior art, and ensure that after the router is restored to factory settings, the information stored in the router is consistent with Consistency of information stored in cloud servers.

本发明实施例提供一种对服务器进行数据清理的方法,包括:An embodiment of the present invention provides a method for cleaning data on a server, including:

在判定当前启动的路由器的启动操作为恢复出厂设置后的重启操作时,生成数据清理指令,所述数据清理指令包括路由器标识;When determining that the startup operation of the currently started router is a restart operation after restoring factory settings, a data cleaning instruction is generated, and the data cleaning instruction includes a router identification;

将所述数据清理指令发送至云端服务器,促使所述云端服务器在预先存储的账号绑定关系中查找与所述路由器标识对应的账号绑定关系,并在查找到所述对应的账号绑定关系时删除所述对应的账号绑定关系,以及,生成响应信息并向所述路由器返回所述响应信息,其中,所述账号绑定关系为路由器标识与用户的登录账号信息的绑定关系。Send the data cleaning instruction to the cloud server, prompting the cloud server to search for the account binding relationship corresponding to the router identifier in the pre-stored account binding relationship, and find the corresponding account binding relationship When deleting the corresponding account binding relationship, and generating response information and returning the response information to the router, wherein the account binding relationship is a binding relationship between the router identifier and the user's login account information.

本发明实施例提供一种对服务器进行数据清理的方法,包括:An embodiment of the present invention provides a method for cleaning data on a server, including:

步骤S1,云端服务器接收路由器发送的数据清理指令,其中,所述数据清理指令为所述路由器在判定当前启动的路由器的启动操作为恢复出厂设置后的重启操作时生成的指令,所述数据清理指令包括所述路由器标识;Step S1, the cloud server receives the data cleaning instruction sent by the router, wherein the data cleaning instruction is an instruction generated by the router when it determines that the startup operation of the currently started router is a restart operation after restoring factory settings, and the data cleaning instruction the instructions include said router identification;

步骤S2,在预先存储的账号绑定关系中查找与所述路由器标识对应的账号绑定关系,其中,所述账号绑定关系为路由器标识与用户的登录账号信息的绑定关系;Step S2, searching for the account binding relationship corresponding to the router identifier in the pre-stored account binding relationship, wherein the account binding relationship is the binding relationship between the router identifier and the user's login account information;

步骤S3,在查找到所述对应的账号绑定关系时,删除所述对应的账号绑定关系;Step S3, when the corresponding account binding relationship is found, delete the corresponding account binding relationship;

步骤S4,生成响应信息,并向所述路由器返回所述响应信息。Step S4, generating response information, and returning the response information to the router.

本发明实施例提供一种对服务器进行数据清理的装置,包括:An embodiment of the present invention provides a device for cleaning data on a server, including:

指令生成模块,用于在判定当前启动的路由器的启动操作为恢复出厂设置后的重启操作时,生成数据清理指令,所述数据清理指令包括路由器标识;An instruction generation module, used to generate a data cleaning instruction when determining that the startup operation of the currently started router is a restart operation after restoring factory settings, and the data cleaning instruction includes a router identification;

第一指令发送模块,用于将所述数据清理指令发送至云端服务器,促使所述云端服务器在预先存储的账号绑定关系中查找与所述路由器标识对应的账号绑定关系,并在查找到所述对应的账号绑定关系时删除所述对应的账号绑定关系,以及,生成响应信息并向所述路由器返回所述响应信息,其中,所述账号绑定关系为路由器标识与用户的登录账号信息的绑定关系。The first instruction sending module is configured to send the data cleaning instruction to the cloud server, prompting the cloud server to search for the account binding relationship corresponding to the router identifier in the pre-stored account binding relationship, and find out When the corresponding account binding relationship is deleted, the corresponding account binding relationship is deleted, and response information is generated and the response information is returned to the router, wherein the account binding relationship is a router identifier and user login Binding relationship of account information.

本发明实施例提供一种数据清理的服务器,包括:An embodiment of the present invention provides a server for data cleaning, including:

第一指令接收模块,用于接收路由器发送的数据清理指令,其中,所述数据清理指令为所述路由器在判定当前启动的路由器的启动操作为恢复出厂设置后的重启操作时生成的指令,所述数据清理指令包括所述路由器标识;The first instruction receiving module is used to receive the data cleaning instruction sent by the router, wherein the data cleaning instruction is an instruction generated by the router when it determines that the startup operation of the currently started router is a restart operation after restoring factory settings, so The data cleaning instruction includes the router identifier;

账号查找模块,用于在预先存储的账号绑定关系中查找与所述路由器标识对应的账号绑定关系,其中,所述账号绑定关系为路由器标识与用户的登录账号信息的绑定关系;An account search module, configured to search for an account binding relationship corresponding to the router identifier in pre-stored account binding relationships, wherein the account binding relationship is a binding relationship between the router identifier and the user's login account information;

关系删除模块,用于在查找到所述对应的账号绑定关系时,删除所述对应的账号绑定关系;A relationship deletion module, configured to delete the corresponding account binding relationship when the corresponding account binding relationship is found;

响应信息生成模块,用于生成响应信息,并向所述路由器返回所述响应信息。A response information generation module, configured to generate response information and return the response information to the router.

本发明实施例提供的一种对服务器进行数据清理的方法、装置及服务器,当判定路由器的启动操作为恢复出厂设置后的重启操作后,生成数据清理指令并发送至云端服务器,以请求云端服务器删除与该路由器的路由器标识对应的账号绑定关系,以保证账号绑定关系的成功删除,确保路由器恢复出厂设置后,路由器中存储的信息与云端服务器中存储的信息的一致性。In the method, device and server for data cleaning provided by the embodiments of the present invention, when it is determined that the router’s startup operation is a restart operation after restoring factory settings, a data cleaning command is generated and sent to the cloud server to request the cloud server Delete the account binding relationship corresponding to the router ID of the router to ensure the successful deletion of the account binding relationship and ensure that the information stored in the router is consistent with the information stored in the cloud server after the router is restored to factory settings.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.

图1为本发明实施例的一种对服务器进行数据清理的方法实施例一的步骤流程图;FIG. 1 is a flow chart of steps in Embodiment 1 of a method for cleaning data on a server according to an embodiment of the present invention;

图2为本发明实施例的一种对服务器进行数据清理的方法实施例二的步骤流程图;FIG. 2 is a flow chart of steps in Embodiment 2 of a method for cleaning data on a server according to an embodiment of the present invention;

图3为本发明实施例的一种对服务器进行数据清理的方法实施例三的步骤流程图;FIG. 3 is a flow chart of steps in Embodiment 3 of a method for cleaning data on a server according to an embodiment of the present invention;

图4为本发明实施例的一种对服务器进行数据清理的装置实施例的结构框图;FIG. 4 is a structural block diagram of an embodiment of an apparatus for cleaning data on a server according to an embodiment of the present invention;

图5为本发明实施例的一种数据清理的服务器实施例的结构框图。FIG. 5 is a structural block diagram of a data cleaning server embodiment according to an embodiment of the present invention.

具体实施方式detailed description

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

参考图1,示出了本发明实施例的一种对服务器进行数据清理的方法实施例一的步骤流程图,具体可以包括如下步骤:Referring to FIG. 1 , it shows a flow chart of the steps of Embodiment 1 of a method for cleaning data on a server according to an embodiment of the present invention, which may specifically include the following steps:

步骤101,在判定当前启动的路由器的启动操作为恢复出厂设置后的重启操作时,生成数据清理指令,所述数据清理指令包括路由器标识;Step 101, when it is determined that the startup operation of the currently started router is a restart operation after restoring factory settings, a data cleaning instruction is generated, and the data cleaning instruction includes a router identification;

步骤102,将所述数据清理指令发送至云端服务器;Step 102, sending the data cleaning instruction to the cloud server;

其中,所述数据清理指令用于促使所述云端服务器在预先存储的账号绑定关系中查找与所述路由器标识对应的账号绑定关系,并在查找到所述对应的账号绑定关系时删除所述对应的账号绑定关系,以及,生成响应信息并向所述路由器返回所述响应信息,其中,所述账号绑定关系为路由器标识与用户的登录账号信息的绑定关系。Wherein, the data cleaning instruction is used to prompt the cloud server to search for the account binding relationship corresponding to the router identifier in the pre-stored account binding relationship, and delete the account binding relationship when the corresponding account binding relationship is found. The corresponding account binding relationship, and generating response information and returning the response information to the router, wherein the account binding relationship is a binding relationship between the router identifier and the user's login account information.

在本发明实施例中,当判定路由器的启动操作为恢复出厂设置后的重启操作后,生成数据清理指令并发送至云端服务器,以请求云端服务器删除与该路由器的路由器标识对应的账号绑定关系,保证账号绑定关系的成功删除,确保路由器恢复出厂设置后,路由器中存储的信息与云端服务器中存储的信息的一致性。In the embodiment of the present invention, when it is determined that the startup operation of the router is a restart operation after restoring factory settings, a data cleaning command is generated and sent to the cloud server to request the cloud server to delete the account binding relationship corresponding to the router ID of the router , to ensure the successful deletion of the account binding relationship, and to ensure that the information stored in the router is consistent with the information stored in the cloud server after the router is restored to factory settings.

参考图2,示出了本发明实施例的一种对服务器进行数据清理的方法实施例二的步骤流程图,具体可以包括如下步骤:Referring to FIG. 2 , it shows a flow chart of steps in Embodiment 2 of a method for cleaning data on a server according to an embodiment of the present invention, which may specifically include the following steps:

步骤201,若检测到当前路由器启动,启动预设的服务程序;Step 201, if it is detected that the current router is started, start a preset service program;

应用于本发明实施例,可以在路由器中设置有专用的服务程序,该服务程序随着路由器的启动而启动。Applied to the embodiment of the present invention, a dedicated service program may be set in the router, and the service program is started when the router is started.

在具体实现中,当该服务程序完成初始化操作以后,可以变成路由器的守护进程,其中,守护进程也即Daemon进程,是Linux中的后台服务进程,它是一个生存期较长的进程,通常独立于控制终端并且周期性地执行某种任务或等待处理某些发生的事件,守护进程常常在设备引导装入时启动。In a specific implementation, after the service program completes the initialization operation, it can become a daemon process of the router. Wherein, the daemon process is also the Daemon process, which is a background service process in Linux. It is a process with a long life span, usually Daemons are often started when a device is bootloaded, independently of the controlling terminal and periodically perform some task or wait for some event to occur.

步骤202,采用所述服务程序判断所述启动操作是否为恢复出厂设置后的重启操作;若是,则执行步骤203,若否,则执行步骤208;Step 202, using the service program to judge whether the startup operation is a restart operation after restoring factory settings; if so, then perform step 203, if not, then perform step 208;

服务程序启动后,可以采用服务程序与云端服务器进行数据通信,以请求云端服务器完成与路由器相关的数据清理等操作。After the service program is started, the service program can be used to perform data communication with the cloud server, so as to request the cloud server to complete operations such as data cleaning related to the router.

首先,服务程序可以判断路由器的启动操作是否为恢复出厂设置后的重启操作,其中,恢复出厂设置是指将设备或仪器的个性设置恢复到出厂的默认状态,如开始界面、待机方式、操作快捷键、定时提醒等等恢复到出厂时的设置。First of all, the service program can judge whether the startup operation of the router is a restart operation after restoring the factory settings. Among them, restoring the factory settings refers to restoring the individual settings of the device or instrument to the factory default state, such as the start interface, standby mode, and quick operation. Keys, timing reminders, etc. are restored to factory settings.

在本发明实施例的一种优选实施例中,步骤202进一步可以为:In a preferred embodiment of the embodiment of the present invention, step 202 may further be:

采用所述服务程序判断预设的配置文件中是否存在令牌token信息;若是,则判定所述启动操作不为恢复出厂设置后的重启操作;若否,则判定所述启动操作为恢复出厂设置后的重启操作。Adopt described service program to judge whether there is token token information in the preset configuration file; If so, then judge that described start-up operation is not the restart operation after restoring factory settings; If not, then judge that described start-up operation is to restore factory settings subsequent restart operation.

需要说明的是,本发明实施例中的路由器是基于OpenWrt框架实现的,当用户登录账号信息时,路由器可以获得对应的令牌token信息,并将其保存在配置文件中。若路由器恢复出厂设置,则会清空配置文件中的令牌token信息。It should be noted that the router in the embodiment of the present invention is implemented based on the OpenWrt framework. When the user logs in the account information, the router can obtain the corresponding token token information and save it in the configuration file. If the router restores the factory settings, the token information in the configuration file will be cleared.

因此,可以通过判断配置文件中是否存在token信息来判断路由器的启动操作是否为恢复出厂设置后的重启操作,如果配置文件中存在token信息,则表示配置文件没有被清空,进一步说明路由器没有执行恢复出厂设置;否则,如果配置文件中没有存在token信息,则表示配置文件被清空,进一步说明路由器执行了恢复出厂设置。Therefore, by judging whether there is token information in the configuration file, you can judge whether the router’s startup operation is a restart operation after restoring factory settings. If there is token information in the configuration file, it means that the configuration file has not been cleared, which further indicates that the router has not performed recovery. Factory settings; otherwise, if there is no token information in the configuration file, it means that the configuration file is cleared, further indicating that the router has performed a factory reset.

步骤203,采用所述服务程序生成数据清理指令;Step 203, using the service program to generate a data cleaning instruction;

若服务程序判定当前路由器的启动操作为恢复出厂设置后的重启操作,此时,服务程序可以获得该路由器的硬件信息,例如路由器标识等,并依据该路由器标识生成数据清理指令,该数据清理指令可以用于请求云端服务器在云端服务器中删除与该路由器相关的数据,例如,删除路由器标识与用户的登录账号信息一一对应的账号绑定关系。If the service program determines that the current router startup operation is a restart operation after restoring the factory settings, at this time, the service program can obtain the hardware information of the router, such as the router ID, and generate a data cleaning command based on the router ID. The data cleaning command It can be used to request the cloud server to delete data related to the router in the cloud server, for example, delete the account binding relationship between the router identifier and the user's login account information.

作为一种示例,路由器标识可以包括如下识别信息的一种或多种:路由器的SN(Serial Number,设备序列号)码、路由器的密钥标记mac_key、路由器的设备ID等等。As an example, the router identifier may include one or more of the following identification information: SN (Serial Number, device serial number) code of the router, key tag mac_key of the router, device ID of the router, and the like.

步骤204,采用所述服务程序将所述数据清理指令发送至云端服务器;Step 204, using the service program to send the data cleaning instruction to the cloud server;

服务程序将生成数据清理指令以后,可以将该携带路由器标识的数据清理指令发送至云端服务器中,以促使云端服务器完成如下操作:在预先存储的账号绑定关系中查找与该路由器标识对应的账号绑定关系,并在查找到对应的账号绑定关系时删除该对应的账号绑定关系,以及,生成响应信息并向服务程序返回该响应信息。After the service program generates the data cleaning command, it can send the data cleaning command carrying the router ID to the cloud server, so as to prompt the cloud server to complete the following operations: Find the account corresponding to the router ID in the pre-stored account binding relationship binding relationship, and delete the corresponding account binding relationship when the corresponding account binding relationship is found, and generate response information and return the response information to the service program.

具体来说,在云端服务器侧,其在数据库中存储了路由器的硬件信息,包括路由器标识等,并保存该路由器标识与用户的登录账号信息的账号绑定关系。云端服务器接收到数据清理指令后,在数据库中匹配该数据清理指令所携带的路由器标识,并根据匹配结果返回响应信息。Specifically, on the cloud server side, it stores the hardware information of the router in the database, including the router ID, etc., and saves the account binding relationship between the router ID and the user's login account information. After receiving the data cleaning instruction, the cloud server matches the router identifier carried by the data cleaning instruction in the database, and returns a response message according to the matching result.

具体的,若云端服务器能够在数据库中匹配到该路由器标识,则可以获得与该路由器标识对应的账号绑定关系,并删除该账号绑定关系,以保证与路由器信息的一致性。在这以后,云端服务器可以生成成功响应信息,并将该成功响应信息返回服务程序。Specifically, if the cloud server can match the router ID in the database, it can obtain the account binding relationship corresponding to the router ID, and delete the account binding relationship to ensure consistency with the router information. After that, the cloud server can generate a successful response message and return the successful response message to the service program.

若云端服务器没有在数据库中查找到该路由器标识,则表示该路由器标识并不存在,即云端服务器中不存在与该路由器标识对应的账号绑定关系,出现这种情况可能由于用户根本没有登录账号,则路由器的配置文件中也不会存在token信息,所以云端服务器也不存在与该路由器标识对应的账号绑定关系,此时云端服务器可以生成失败响应信息。需要说明的是,由于导致云端服务器生成失败响应信息的原因可以有多种,因此,可以用不同的错误码表示不用原因导致的失败响应信息,即云端服务器中不存在账号绑定关系而生成的失败响应信息,可以用反映绑定关系不存在的错误码表示。If the cloud server does not find the router ID in the database, it means that the router ID does not exist, that is, there is no account binding relationship corresponding to the router ID in the cloud server. This may occur because the user does not have a login account at all. , then there will be no token information in the configuration file of the router, so the cloud server does not have an account binding relationship corresponding to the router identifier, and the cloud server can generate a failure response message at this time. It should be noted that there may be many reasons for the cloud server to generate the failure response information, therefore, different error codes can be used to indicate the failure response information caused by different reasons, that is, the failure response information generated by the cloud server does not have an account binding relationship. The failure response information can be expressed by an error code reflecting that the binding relationship does not exist.

除了上述因账号绑定关系不存在而导致的失败响应信息外,还可以有其他因素导致云端服务器生成失败响应信息,例如,由于网络故障或数据库故障等原因导致匹配路由器标识失败,进而导致删除所述账号绑定关系失败,此时,也会生成失败响应信息。本发明实施例将此类删除账号绑定关系失败而生成的失败响应信息称为预设规则的失败响应信息。In addition to the above-mentioned failure response information caused by the absence of the account binding relationship, there may also be other factors that cause the cloud server to generate a failure response information. If the above account binding relationship fails, a failure response message will also be generated at this time. In the embodiment of the present invention, the failure response information generated due to the failure to delete the account binding relationship is referred to as failure response information of preset rules.

步骤205,判断是否在第一时间段内接收到云端服务器返回的响应信息;若是,则执行步骤206;若否,则执行步骤207;Step 205, judging whether the response information returned by the cloud server is received within the first time period; if yes, then perform step 206; if not, then perform step 207;

服务程序向云端服务器发送数据清理指令后,一直等待云端服务器返回的响应信息,为了避免服务程序处于死等状态,本发明实施例设置等待的时间为第一时间段,并判断服务程序在第一时间段内是否接收到云端服务器返回的响应信息。After the service program sends the data cleaning instruction to the cloud server, it has been waiting for the response information returned by the cloud server. In order to prevent the service program from being in a dead state, the embodiment of the present invention sets the waiting time as the first time period, and judges that the service program is in the first time period. Whether to receive the response information returned by the cloud server within the time period.

在具体实现中,服务程序在第一时间段内没有接收到云端服务器返回的响应信息的情况包括但不限于以下两种情况:In a specific implementation, the situation that the service program does not receive the response information returned by the cloud server within the first time period includes but is not limited to the following two situations:

第一种情况是,由于网络故障,或者网络连接断开等情况,导致服务程序发送的数据清理指令并没有发送成功至云端服务器中,因此云端服务器也不会收到该数据清理指令以及作出相应的响应,在这种情况下,服务程序在第一时间段内是不会接收到云端服务器返回的响应信息的。The first situation is that due to network failure or disconnection of the network connection, the data cleaning command sent by the service program is not successfully sent to the cloud server, so the cloud server will not receive the data cleaning command and make corresponding actions. In this case, the service program will not receive the response information returned by the cloud server within the first period of time.

另一种情况是,服务程序能够成功将数据清理指令发送给云端服务器,云端服务器也能做出相应的处理,生成响应信息并返回,但在返回响应信息的过程中,由于网络故障,或者网络连接断开等情况,导致服务程序并不能在第一时间段内接收到云端服务器返回的响应信息。Another situation is that the service program can successfully send the data cleaning command to the cloud server, and the cloud server can also make corresponding processing, generate a response message and return it, but in the process of returning the response message, due to network failure, or the network The service program cannot receive the response information returned by the cloud server within the first time period due to the disconnection of the connection.

步骤206:判断所述响应信息是否为预设规则的失败响应信息;若是,则执行步骤207,若否,执行子步骤208;Step 206: judging whether the response information is failure response information of a preset rule; if yes, perform step 207, if not, perform sub-step 208;

步骤207:间隔第二预设时间段再次向所述云端服务器发送所述数据清理指令,返回步骤205;Step 207: Send the data cleaning instruction to the cloud server again at intervals of a second preset time period, and return to step 205;

步骤208:退出所述服务程序。Step 208: Exit the service program.

若服务程序在第一时间段内可以接收到云端服务器返回的响应信息,则服务程序进一步判断该响应信息的类型,若响应信息为成功响应信息,则表示云端服务器删除账号绑定关系成功,此时服务程序的任务完成,可以退出该服务程序。If the service program can receive the response information returned by the cloud server within the first period of time, the service program further judges the type of the response information. If the response information is a successful response information, it means that the cloud server has successfully deleted the account binding relationship. When the task of the service program is completed, the service program can be exited.

若响应信息为账号绑定关系不存在的失败响应信息,则表示云端服务器中并不存在该账号绑定关系,此时服务程序的任务完成,可以退出该服务程序。If the response information is failure response information that the account binding relationship does not exist, it means that the account binding relationship does not exist in the cloud server, and the task of the service program is completed at this time, and the service program can be exited.

若响应信息为预设规则的失败响应信息,则表示云端服务器由于网络故障或数据库故障等原因暂时不能成功将账号绑定关系删除,此时服务程序需要间隔第二时间段(例如10秒)再次甚至重复发送数据清理指令至云端服务器,直到云端服务器将账号绑定关系删除成功为止。If the response information is the failure response information of the preset rules, it means that the cloud server cannot successfully delete the account binding relationship temporarily due to network failure or database failure. Even repeatedly send data cleaning instructions to the cloud server until the cloud server successfully deletes the account binding relationship.

当服务程序需要退出时,在具体实现中,为了节省路由器的存储资源以及数据处理资源,提高数据处理效率,服务程序可以首先释放所占的路由器资源,归还存储空间,然后才退出服务程序,路由器继续工作。When the service program needs to exit, in the specific implementation, in order to save the storage resources and data processing resources of the router and improve the data processing efficiency, the service program can first release the occupied router resources, return the storage space, and then exit the service program, the router continue working.

在本发明实施例中,通过在路由器中设置专门的服务程序来完成恢复出厂设置重启操作的判断、数据清理指令的生成、以及数据清理指令的发送和响应信息的接收等操作,使得服务程序可以专注于上述操作,提高路由器的操作效率。In the embodiment of the present invention, a special service program is set in the router to complete operations such as the judgment of restoring factory settings and restarting operations, the generation of data cleaning instructions, the sending of data cleaning instructions, and the reception of response information, so that the service program can Focus on the above operations to improve the operational efficiency of the router.

另外,本发明实施例在没有接收到响应信息或接收的响应信息为预设规则的失败响应信息时,采用服务程序重复发送数据清理指令,直到云端服务器成功删除所述账号绑定关系为止,确保云端服务器中账号绑定关系被成功删除,以保证路由器与云端服务器的数据一致性。In addition, in the embodiment of the present invention, when no response information is received or the received response information is failure response information according to preset rules, the service program is used to repeatedly send data cleaning instructions until the cloud server successfully deletes the account binding relationship, ensuring The account binding relationship in the cloud server is successfully deleted to ensure the data consistency between the router and the cloud server.

参考图3,示出了本发明实施例的一种对服务器进行数据清理的方法实施例三的步骤流程图,具体可以包括如下步骤:Referring to FIG. 3 , it shows a flow chart of steps in Embodiment 3 of a method for cleaning data on a server according to an embodiment of the present invention, which may specifically include the following steps:

步骤301,云端服务器接收路由器发送的数据清理指令;Step 301, the cloud server receives the data cleaning instruction sent by the router;

其中,所述数据清理指令为所述路由器在判定当前启动的路由器的启动操作为恢复出厂设置后的重启操作时生成的指令,所述数据清理指令包括所述路由器标识。Wherein, the data cleaning instruction is an instruction generated by the router when it determines that the startup operation of the currently started router is a restart operation after restoring factory settings, and the data cleaning instruction includes the router identifier.

步骤302,在预先存储的账号绑定关系中查找与所述路由器标识对应的账号绑定关系;Step 302, searching for the account binding relationship corresponding to the router identifier in the pre-stored account binding relationship;

其中,所述账号绑定关系为路由器标识与用户的登录账号信息的绑定关系。Wherein, the account binding relationship is a binding relationship between the router identifier and the user's login account information.

步骤303,在查找到所述对应的账号绑定关系时,删除所述对应的账号绑定关系;Step 303, when the corresponding account binding relationship is found, delete the corresponding account binding relationship;

步骤304,生成响应信息,并向所述路由器返回所述响应信息,其中,所述响应信息包括预设规则的失败响应信息;Step 304, generating response information, and returning the response information to the router, wherein the response information includes failure response information of preset rules;

在本发明实施例的一种优选实施例中,还可以包括如下步骤:In a preferred embodiment of the embodiments of the present invention, the following steps may also be included:

若在第二预设时间段内再次接收到所述路由器发送的所述数据清理指令,则返回所述步骤302,其中,所述路由器在第一预设时间段内没有接收到云端服务器返回的所述响应信息,或者,接收到的响应信息为所述预设规则的失败响应信息时再次发送所述数据清理指令。If the data cleaning instruction sent by the router is received again within the second preset time period, return to step 302, wherein the router does not receive the data cleaning instruction returned by the cloud server within the first preset time period. The response information, or, when the received response information is failure response information of the preset rule, send the data cleaning instruction again.

在本发明的一种优选实施例中,所述云端服务器与所述路由器启动的服务程序进行数据通信。In a preferred embodiment of the present invention, the cloud server performs data communication with a service program started by the router.

在本发明的一种优选实施例中,所述预设规则的失败响应信息为删除所述账号绑定关系失败而生成的失败响应信息。In a preferred embodiment of the present invention, the failure response information of the preset rule is failure response information generated due to failure to delete the account binding relationship.

对于图3的实施例而言,由于其与图2的方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。As for the embodiment of FIG. 3 , since it is basically similar to the method embodiment of FIG. 2 , the description is relatively simple, and for related parts, refer to the part of the description of the method embodiment.

参考图4,示出了本发明实施例的一种对服务器进行数据清理的装置实施例的结构框图,其中,本发明实施例中可以通过硬件处理器(hardwareprocessor)来实现相关功能模块,具体可以包括如下模块:Referring to FIG. 4 , it shows a structural block diagram of an embodiment of an apparatus for cleaning data on a server according to an embodiment of the present invention, wherein, in the embodiment of the present invention, relevant functional modules may be implemented by a hardware processor, specifically, Including the following modules:

指令生成模块401,用于在判定当前启动的路由器的启动操作为恢复出厂设置后的重启操作时,生成数据清理指令,所述数据清理指令包括路由器标识;The instruction generation module 401 is used to generate a data cleaning instruction when it is determined that the startup operation of the currently started router is a restart operation after restoring factory settings, and the data cleaning instruction includes a router identification;

第一指令发送模块402,用于将所述数据清理指令发送至云端服务器,促使所述云端服务器在预先存储的账号绑定关系中查找与所述路由器标识对应的账号绑定关系,并在查找到所述对应的账号绑定关系时删除所述对应的账号绑定关系,以及,生成响应信息并向所述路由器返回所述响应信息,其中,所述账号绑定关系为路由器标识与用户的登录账号信息的绑定关系;The first instruction sending module 402 is configured to send the data cleaning instruction to the cloud server, prompting the cloud server to search for the account binding relationship corresponding to the router identifier in the pre-stored account binding relationship, and to search When the corresponding account binding relationship is found, the corresponding account binding relationship is deleted, and generating response information and returning the response information to the router, wherein the account binding relationship is the router identifier and the user's The binding relationship of login account information;

在本发明的一种优选实施例中,所述响应信息包括预设规则的失败响应信息,所述装置还可以包括:In a preferred embodiment of the present invention, the response information includes failure response information of preset rules, and the device may also include:

第二指令发送模块,用于在第一预设时间段内没有接收到云端服务器返回的所述响应信息,或者,接收到的响应信息为所述预设规则的失败响应信息时,间隔第二预设时间段再次向所述云端服务器发送所述数据清理指令。The second instruction sending module is configured to receive the response information returned by the cloud server within the first preset time period, or when the received response information is the failure response information of the preset rule, an interval of the second Sending the data cleaning instruction to the cloud server again within a preset period of time.

在本发明的一种优选实施例中,所述指令生成模块401可以包括如下子模块:In a preferred embodiment of the present invention, the instruction generating module 401 may include the following submodules:

程序启动子模块,用于在检测到当前路由器启动时,启动预设的服务程序;The program starting sub-module is used to start a preset service program when the current router is detected to be started;

操作判定子模块,用于采用所述服务程序判断所述启动操作是否为恢复出厂设置后的重启操作;An operation determination sub-module, configured to use the service program to determine whether the startup operation is a restart operation after restoring factory settings;

指令生成子模块,用于在判定所述启动操作为恢复出厂设置后的重启操作时,采用所述服务程序生成数据清理指令;An instruction generating submodule is used to generate a data cleaning instruction using the service program when determining that the startup operation is a restart operation after restoring factory settings;

程序退出子模块,用于在判定所述启动操作不为恢复出厂设置后的重启操作时,退出所述服务程序。The program exit sub-module is used to exit the service program when it is determined that the startup operation is not a restart operation after restoring factory settings.

在本发明的一种优选实施例中,所述操作判定子模块还用于:In a preferred embodiment of the present invention, the operation determination submodule is also used for:

采用所述服务程序判断预设的配置文件中是否存在令牌token信息;Using the service program to judge whether there is token token information in the preset configuration file;

若是,则判定所述启动操作不为恢复出厂设置后的重启操作;If so, it is determined that the startup operation is not a restart operation after restoring factory settings;

若否,则判定所述启动操作为恢复出厂设置后的重启操作。If not, it is determined that the startup operation is a restart operation after restoring factory settings.

在本发明的一种优选实施例中,所述第二指令发送模块包括如下子模块:In a preferred embodiment of the present invention, the second instruction sending module includes the following submodules:

第一判断子模块,用于判断是否在第一时间段内接收到云端服务器返回的响应信息;若是,则调用第二判断子模块;若否,则调用指令发送子模块;The first judging submodule is used to judge whether the response information returned by the cloud server is received within the first time period; if so, the second judging submodule is called; if not, the instruction sending submodule is called;

第二判断子模块,用于判断所述响应信息是否为预设规则的失败响应信息,若是,则调用指令发送子模块,若否,则调用程序退出子模块;The second judging submodule is used to judge whether the response information is the failure response information of the preset rules, if so, then call the instruction sending submodule, if not, then call the program to exit the submodule;

指令发送子模块,用于间隔第二预设时间段再次向所述云端服务器发送所述数据清理指令,返回子步骤S11;The command sending sub-module is used to send the data cleaning command to the cloud server again at intervals of a second preset time period, and return to sub-step S11;

程序退出子模块,用于退出所述服务程序。The program exit submodule is used to exit the service program.

在本发明的一种优选实施例中,所述所述预设规则的失败响应信息为删除所述账号绑定关系失败而生成的失败响应信息。In a preferred embodiment of the present invention, the failure response information of the preset rule is failure response information generated due to failure to delete the account binding relationship.

对于图4的装置实施例而言,由于其与上述方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。As for the device embodiment in FIG. 4 , since it is basically similar to the method embodiment above, the description is relatively simple, and for relevant parts, please refer to part of the description of the method embodiment.

参考图5,示出了本发明实施例的一种数据清理的服务器实施例的结构框图,其中,本发明实施例中可以通过硬件处理器(hardware processor)来实现相关功能模块,具体可以包括如下模块:Referring to FIG. 5 , it shows a structural block diagram of a data cleaning server embodiment of an embodiment of the present invention, wherein, in the embodiment of the present invention, relevant functional modules may be implemented by a hardware processor, and may specifically include the following module:

第一指令接收模块501,用于接收路由器发送的数据清理指令,其中,所述数据清理指令为所述路由器在判定当前启动的路由器的启动操作为恢复出厂设置后的重启操作时生成的指令,所述数据清理指令包括所述路由器标识;The first instruction receiving module 501 is configured to receive a data cleaning instruction sent by the router, wherein the data cleaning instruction is an instruction generated by the router when it is determined that the startup operation of the currently started router is a restart operation after restoring factory settings, The data cleaning instruction includes the router identifier;

账号查找模块502,用于在预先存储的账号绑定关系中查找与所述路由器标识对应的账号绑定关系,其中,所述账号绑定关系为路由器标识与用户的登录账号信息的绑定关系;An account search module 502, configured to search for an account binding relationship corresponding to the router identifier in pre-stored account binding relationships, wherein the account binding relationship is a binding relationship between the router identifier and the user's login account information ;

关系删除模块503,用于在查找到所述对应的账号绑定关系时,删除所述对应的账号绑定关系;A relationship deletion module 503, configured to delete the corresponding account binding relationship when the corresponding account binding relationship is found;

响应信息生成模块504,用于生成响应信息,并向所述路由器返回所述响应信息,a response information generation module 504, configured to generate response information, and return the response information to the router,

在本发明的一种优选实施例中,所述响应信息包括预设规则的失败响应信息;所述服务器还可以包括:In a preferred embodiment of the present invention, the response information includes failure response information of preset rules; the server may also include:

第二指令接收模块,用于在第二预设时间段内再次接收所述路由器发送的所述数据清理指令,并调用账号查找模块,其中,所述路由器在第一预设时间段内没有接收到云端服务器返回的所述响应信息,或者,接收到的响应信息为所述预设规则的失败响应信息时再次发送所述数据清理指令。The second instruction receiving module is configured to receive the data cleaning instruction sent by the router again within a second preset time period, and call the account lookup module, wherein the router does not receive it within the first preset time period The data cleaning instruction is sent again when the response information returned by the cloud server, or when the received response information is the failure response information of the preset rule.

在本发明的一种优选实施例中,所述云端服务器与所述路由器启动的服务程序进行数据通信。In a preferred embodiment of the present invention, the cloud server performs data communication with a service program started by the router.

在本发明的一种优选实施例中,所述预设规则的失败响应信息为删除所述账号绑定关系失败而生成的失败响应信息。In a preferred embodiment of the present invention, the failure response information of the preset rule is failure response information generated due to failure to delete the account binding relationship.

对于图5的服务器实施例而言,由于其与上述方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。As for the server embodiment in FIG. 5 , since it is basically similar to the above-mentioned method embodiment, the description is relatively simple, and for relevant parts, please refer to part of the description of the method embodiment.

以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network elements. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. It can be understood and implemented by those skilled in the art without any creative effort.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。Through the above description of the implementations, those skilled in the art can clearly understand that each implementation can be implemented by means of software plus a necessary general hardware platform, and of course also by hardware. Based on this understanding, the essence of the above technical solution or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products can be stored in computer-readable storage media, such as ROM/RAM, magnetic discs, optical discs, etc., including several instructions to make a computer device (which may be a personal computer, server, or network device, etc.) execute the methods described in various embodiments or some parts of the embodiments.

最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims (14)

1. the method that server is carried out data scrubbing, it is characterised in that including:
Judging when starting operation as reboot operation after factory reset of the router being currently up, Generation data scrubbing instructs, and described data scrubbing instruction includes Router Distinguisher;
Described data scrubbing instruction is sent to cloud server, promotes described cloud server to deposit in advance The account binding relationship of storage is searched the account binding relationship corresponding with described Router Distinguisher, and is searching The account binding relationship of described correspondence is deleted during to the account binding relationship of described correspondence, and, generate and ring Answering information and return described response message to described router, wherein, described account binding relationship is route The binding relationship of the login account information of device mark and user.
Method the most according to claim 1, it is characterised in that described response message includes presetting rule Failure response information then, described by described data scrubbing instruction send to cloud server step it After, also include: if being not received by the described response that cloud server returns in the first preset time period Information, or, the response message received is the failure response information of described preset rules, then be spaced Two preset time period send described data scrubbing instruction to described cloud server again.
Method the most according to claim 2, it is characterised in that the described road being currently up in judgement When being the reboot operation after factory reset by the startup operation of device, generate the step of data scrubbing instruction Including:
If detecting, current router starts, and starts the service routine preset;
Using described service routine to judge, whether described to start operation be to restart behaviour after factory reset Make;
Described service routine is the most then used to generate data scrubbing instruction;
If it is not, then exit described service routine.
4. want the method described in 3 according to right, it is characterised in that the described service routine of described employing judges Described start the step whether operation is reboot operation after factory reset and include:
Use described service routine to judge in the configuration file preset and whether there is token token information;
The most then judge that described startup operates not as the reboot operation after factory reset;
If it is not, then judge that described startup operates as the reboot operation after factory reset.
5. according to the method described in claim 3 or 4, it is characterised in that if described when first presets Between be not received by the described response message that cloud server returns in section, or, the response letter received Breath is the failure response information of preset rules, then be spaced the second preset time period again to described cloud service Device sends the step of described data scrubbing instruction and includes:
Sub-step S11, it may be judged whether receive the response letter that cloud server returns in first time period Breath;The most then perform sub-step S12;If it is not, then perform sub-step S13;
Sub-step S12, it is judged that whether described response message is the failure response information of preset rules, if so, Then perform sub-step S13, if it is not, then perform sub-step S14;
Sub-step S13, is spaced the second preset time period and again sends described data to described cloud server Cleaning instruction, returns sub-step S11;
Sub-step S14, exits described service routine.
6. according to the method described in claim 1 or 2 or 3 or 4, it is characterised in that described default rule Failure response information then is to delete the failure response information that the failure of described account binding relationship generates.
7. the method that server is carried out data scrubbing, it is characterised in that including:
Step S1, the data scrubbing instruction that cloud server receiving router sends, wherein, described data Cleaning instruction is that described router operates as factory reset in the startup judging the router being currently up After reboot operation time generate instruction, described data scrubbing instruction include described Router Distinguisher;
Step S2, searches the account corresponding with described Router Distinguisher in the account binding relationship prestored Number binding relationship, wherein, described account binding relationship is the login account information of Router Distinguisher and user Binding relationship;
Step S3, when finding the account binding relationship of described correspondence, the account deleting described correspondence is tied up Determine relation;
Step S4, generates response message, and returns described response message to described router.
Method the most according to claim 7, it is characterised in that described response message includes presetting rule Failure response information then, described method also includes:
Step S5, if again receive the described data that described router sends in the second preset time period Cleaning instruction, then return described step S2, and wherein, described router does not has in the first preset time period Receive the described response message that cloud server returns, or, the response message received is described pre- If during the failure response information of rule, again send described data scrubbing instruction.
9. according to the method described in claim 7 or 8, it is characterised in that described cloud server and institute The service routine stating router startup carries out data communication.
10. according to the method described in claim 7 or 8, it is characterised in that the mistake of described preset rules Losing response message is to delete the failure response information that the failure of described account binding relationship generates.
11. 1 kinds of devices that server is carried out data scrubbing, it is characterised in that including:
Directive generation module, for operating in the startup judging the router being currently up as recovering to dispatch from the factory to set During the reboot operation postponed, generating data scrubbing instruction, described data scrubbing instruction includes Router Distinguisher;
First instruction sending module, for sending described data scrubbing instruction to cloud server, promotes Described cloud server is searched corresponding with described Router Distinguisher in the account binding relationship prestored Account binding relationship, and the account of described correspondence is deleted when finding the account binding relationship of described correspondence Binding relationship, and, generate response message and to the described router described response message of return, wherein, Described account binding relationship is the binding relationship of Router Distinguisher and the login account information of user.
12. devices according to claim 11, it is characterised in that described response message includes presetting The failure response information of rule, described device also includes:
Second instruction sending module, returns for being not received by cloud server in the first preset time period The described response message returned, or, the response message received is the failure response letter of described preset rules During breath, it is spaced the second preset time period and again sends described data scrubbing instruction to described cloud server.
The server of 13. 1 kinds of data scrubbings, it is characterised in that including:
First command reception module, the data scrubbing instruction sent for receiving router, wherein, described Data scrubbing instruction is that described router operates as recovering to dispatch from the factory in the startup judging the router being currently up The instruction generated during reboot operation after arranging, described data scrubbing instruction includes described Router Distinguisher;
Account searches module, for searching and described router mark in the account binding relationship prestored Knowing corresponding account binding relationship, wherein, described account binding relationship is Router Distinguisher and the stepping on of user The binding relationship of record account information;
Relation removing module, for when finding the account binding relationship of described correspondence, it is described right to delete The account binding relationship answered;
Response message generation module, is used for generating response message, and returns described response to described router Information.
14. servers according to claim 13, it is characterised in that described response message includes pre- If the failure response information of rule, described server also includes:
Second command reception module, sends for again receiving described router in the second preset time period Described data scrubbing instruction, and call account search module, wherein, described router first preset The described response message that cloud server returns it is not received by time period, or, the response received Information is again to send described data scrubbing instruction during the failure response information of described preset rules.
CN201510472361.0A 2015-08-04 2015-08-04 Method and device for data cleaning of server and server Pending CN105975359A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510472361.0A CN105975359A (en) 2015-08-04 2015-08-04 Method and device for data cleaning of server and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510472361.0A CN105975359A (en) 2015-08-04 2015-08-04 Method and device for data cleaning of server and server

Publications (1)

Publication Number Publication Date
CN105975359A true CN105975359A (en) 2016-09-28

Family

ID=56988343

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510472361.0A Pending CN105975359A (en) 2015-08-04 2015-08-04 Method and device for data cleaning of server and server

Country Status (1)

Country Link
CN (1) CN105975359A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106357493A (en) * 2016-10-08 2017-01-25 Tcl集团股份有限公司 Method and device for binding household appliance and smart terminal
CN106972932A (en) * 2017-03-03 2017-07-21 北京光年无限科技有限公司 A kind of remote control commands verification method and system for robotic end
CN112434020A (en) * 2020-11-26 2021-03-02 腾讯科技(深圳)有限公司 Database account cleaning method and device and electronic equipment

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130232243A1 (en) * 2006-09-25 2013-09-05 Yoics, Inc. System, method and computer program product for identifying, configuring and accessing a device on a network
CN103529788A (en) * 2013-10-16 2014-01-22 陈迪 Remote cloud household electric appliance control equipment
CN103595560A (en) * 2013-11-05 2014-02-19 上海斐讯数据通信技术有限公司 Method for automatic configuration of wireless router
CN103873307A (en) * 2014-04-11 2014-06-18 北京极科极客科技有限公司 Method for PPPOE user name and password backup and restoration
CN103944963A (en) * 2014-03-26 2014-07-23 小米科技有限责任公司 Data synchronization method, device and system and equipment
CN104023008A (en) * 2014-05-16 2014-09-03 小米科技有限责任公司 Method and device for downloading and starting tool kit
CN104427501A (en) * 2013-09-11 2015-03-18 腾讯科技(深圳)有限公司 Network access method, device and system
CN104468837A (en) * 2014-12-29 2015-03-25 小米科技有限责任公司 Intelligent device binding method and device
CN104580265A (en) * 2015-02-13 2015-04-29 小米科技有限责任公司 Equipment binding method and equipment binding device
CN104639549A (en) * 2015-02-05 2015-05-20 小米科技有限责任公司 Device binding method and device
CN104735657A (en) * 2013-12-20 2015-06-24 腾讯科技(深圳)有限公司 Security terminal verification method, device and system and wireless access point binding method

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130232243A1 (en) * 2006-09-25 2013-09-05 Yoics, Inc. System, method and computer program product for identifying, configuring and accessing a device on a network
CN104427501A (en) * 2013-09-11 2015-03-18 腾讯科技(深圳)有限公司 Network access method, device and system
CN103529788A (en) * 2013-10-16 2014-01-22 陈迪 Remote cloud household electric appliance control equipment
CN103595560A (en) * 2013-11-05 2014-02-19 上海斐讯数据通信技术有限公司 Method for automatic configuration of wireless router
CN104735657A (en) * 2013-12-20 2015-06-24 腾讯科技(深圳)有限公司 Security terminal verification method, device and system and wireless access point binding method
CN103944963A (en) * 2014-03-26 2014-07-23 小米科技有限责任公司 Data synchronization method, device and system and equipment
CN103873307A (en) * 2014-04-11 2014-06-18 北京极科极客科技有限公司 Method for PPPOE user name and password backup and restoration
CN104023008A (en) * 2014-05-16 2014-09-03 小米科技有限责任公司 Method and device for downloading and starting tool kit
CN104468837A (en) * 2014-12-29 2015-03-25 小米科技有限责任公司 Intelligent device binding method and device
CN104639549A (en) * 2015-02-05 2015-05-20 小米科技有限责任公司 Device binding method and device
CN104580265A (en) * 2015-02-13 2015-04-29 小米科技有限责任公司 Equipment binding method and equipment binding device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106357493A (en) * 2016-10-08 2017-01-25 Tcl集团股份有限公司 Method and device for binding household appliance and smart terminal
CN106357493B (en) * 2016-10-08 2021-08-06 Tcl科技集团股份有限公司 Method and device for binding home appliance and smart terminal
CN106972932A (en) * 2017-03-03 2017-07-21 北京光年无限科技有限公司 A kind of remote control commands verification method and system for robotic end
CN106972932B (en) * 2017-03-03 2020-03-31 北京光年无限科技有限公司 Remote control instruction verification method and system for robot end
CN112434020A (en) * 2020-11-26 2021-03-02 腾讯科技(深圳)有限公司 Database account cleaning method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN108040108B (en) Communication switching method, device, coordination server and readable storage medium
CN112199197B (en) Server management method and system
JP4122341B2 (en) System and method for session resetting between client terminal device and server
US20060271812A1 (en) Systems and methods for providing redundant application servers
JP2005530372A5 (en)
CN109361525B (en) Method, device, control terminal and medium for restarting distributed deployment of multiple services
WO2016186530A1 (en) Systems and methods for determining routing information for a network request
WO2013178150A1 (en) Information processing method, and priority information sending method and device
CN106650427B (en) Sandbox operating environment detection method and detection device
CN110109772B (en) CPU restarting method, communication equipment and readable storage medium
CN111147314A (en) Switch upgrading method, device and storage medium
CN105975359A (en) Method and device for data cleaning of server and server
CN103701653A (en) Processing method for interface hot plugging and unplugging configuration data and network configuration server
CN110620695A (en) Data processing method and related equipment
CA2582067C (en) Ip telephone system
JP2002229870A (en) Server failure monitoring system
CN106330513A (en) Method and device for processing tr069 protocol information
CN110087232B (en) Call processing method and device based on intelligent equipment and server
CN116886514A (en) Methods, devices, systems, Internet of Things cloud platforms, and storage media for equipment replacement
CN115988057A (en) Database cluster quick connection method, storage medium and device
CN115713317A (en) Conference implementation method, system, storage medium and terminal equipment
CN114443354A (en) File recovery method and device, electronic equipment and storage medium
CN105786645A (en) Backup and restoring methods and devices of operating system
WO2016206399A1 (en) Communication equipment, device and software version upgrade method utilized in communication equipment
CN116319783B (en) Distributed container cluster data push method and system based on Socket protocol

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160928