WO2016192492A1 - 一种基于虚拟主机的网站检测方法和装置 - Google Patents

一种基于虚拟主机的网站检测方法和装置 Download PDF

Info

Publication number
WO2016192492A1
WO2016192492A1 PCT/CN2016/080443 CN2016080443W WO2016192492A1 WO 2016192492 A1 WO2016192492 A1 WO 2016192492A1 CN 2016080443 W CN2016080443 W CN 2016080443W WO 2016192492 A1 WO2016192492 A1 WO 2016192492A1
Authority
WO
WIPO (PCT)
Prior art keywords
virtual host
detection
website
virtual
domain name
Prior art date
Application number
PCT/CN2016/080443
Other languages
English (en)
French (fr)
Inventor
杨艳宏
庞海政
Original Assignee
阿里巴巴集团控股有限公司
杨艳宏
庞海政
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 阿里巴巴集团控股有限公司, 杨艳宏, 庞海政 filed Critical 阿里巴巴集团控股有限公司
Publication of WO2016192492A1 publication Critical patent/WO2016192492A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/24Testing correct operation

Definitions

  • the present application relates to the field of detection technologies, and in particular, to a web host detection method based on a virtual host and a website detection device based on a virtual host.
  • embodiments of the present application have been made in order to provide a web host-based website detection method and a corresponding virtual host-based website detection apparatus that overcome the above problems or at least partially solve the above problems.
  • a web host-based website detection method including:
  • the detection request includes a virtual host identifier of the virtual host that carries the website;
  • the detection includes at least virtual host detection, website domain name detection, website status detection, One or more of network status detection and website application detection.
  • the method further comprises:
  • the virtual host identifier includes a second-level domain name of the virtual host.
  • the detection item detected by the virtual host includes at least one or more of a virtual host's expiration date, a virtual host space, and a virtual host's database;
  • the step of detecting the website according to the virtual host identifier to obtain a detection result includes:
  • the information about the virtual host includes at least one or more of the following:
  • the expiration date of the virtual host the space of the virtual host, and the database of the virtual host.
  • the detection item of the website domain name detection includes at least one or more of a domain name binding, a domain name expiration date, and a domain name resolution;
  • the step of detecting the website according to the virtual host identifier to obtain a detection result includes:
  • the detection item of the website status detection includes at least one or more of a virtual host shutdown, a shutdown reason, a virtual host migration, a website registration, a virtual host backup, and a virtual host recovery;
  • the step of detecting the website according to the virtual host identifier to obtain a detection result includes:
  • the step of detecting the website according to the virtual host identifier to obtain a detection result includes:
  • Detecting a network information service status and/or an application pool status of the virtual host to obtain network status information Detecting a network information service status and/or an application pool status of the virtual host to obtain network status information.
  • the detection item detected by the website application includes at least one or more of a home page setting and a database connection;
  • the step of detecting the website according to the virtual host identifier to obtain a detection result includes:
  • the embodiment of the present application further discloses a web host detection device based on a virtual host, including:
  • a detection request receiving submodule configured to receive a detection request of a website; the detection request includes a virtual host identifier of a virtual host that carries the website;
  • a website detecting module configured to detect the website according to the virtual host identifier to obtain a detection result
  • the detecting includes at least one or more of virtual host detection, website domain name detection, website status detection, network status detection, and website application detection.
  • the method further comprises:
  • the suggestion generating module is configured to generate a website improvement suggestion for the detection result when the detection result meets a preset attribute value.
  • the virtual host identifier includes a second-level domain name of the virtual host.
  • the detection item detected by the virtual host includes at least one or more of a virtual host's expiration date, a virtual host space, and a virtual host's database;
  • the website detection module includes:
  • a first query submodule configured to query information about a virtual host corresponding to the virtual host identifier
  • the information about the virtual host includes at least one or more of the following:
  • the expiration date of the virtual host the space of the virtual host, and the database of the virtual host.
  • the detection item of the website domain name detection includes at least one or more of a domain name binding, a domain name expiration date, and a domain name resolution;
  • the website detection module includes:
  • a first determining sub-module configured to determine whether the virtual host identifier is bound to a domain name of the website; if yes, calling a second query sub-module;
  • a second query submodule configured to query an expiration date of the domain name
  • the first detecting submodule is configured to detect whether the domain name is resolved to a server to which the virtual host belongs.
  • the detection item of the website status detection includes at least one or more of a virtual host shutdown, a shutdown reason, a virtual host migration, a website registration, a virtual host backup, and a virtual host recovery;
  • the website detection module includes:
  • a third query sub-module configured to query whether the virtual host corresponding to the virtual identifier is shut down; if yes, invoke a fourth query sub-module;
  • the fifth query sub-module is configured to query whether the virtual host corresponding to the virtual identifier is in a data migration state, a data backup state, and a data recovery state;
  • the sixth query sub-module is configured to query whether the domain name corresponding to the virtual identifier is successfully filed; if yes, query the record access provider.
  • the website detection module comprises:
  • a seventh query submodule configured to query a virtual host corresponding to the virtual host identifier
  • the second detecting submodule is configured to detect a network information service status and/or an application pool status of the virtual host to obtain network status information.
  • the detection item detected by the website application includes at least one or more of a home page setting and a database connection;
  • the website detection module includes:
  • An eighth query submodule configured to query whether a virtual host corresponding to the virtual host identifier sets a homepage
  • the ninth query sub-module is configured to query whether the database of the virtual host corresponding to the virtual host identifier is connected properly.
  • the embodiments of the present application provide various detection methods for virtual host detection, website domain name detection, website status detection, network status detection, website application detection, etc. for the website hosted by the virtual host, thereby realizing comprehensive automatic detection and greatly improving the detection convenience. Sexuality improves the efficiency of detection.
  • the embodiment of the present application provides a website improvement suggestion for the result of the detection, combined with the attribute value, to assist the user to optimize the website, thereby reducing the frequency of occurrence of the website failure, and realizing the primary user's self-discovery when the website fails, and reducing the detection technology.
  • the threshold further improves the efficiency of detection.
  • FIG. 1 is a flow chart of steps of an embodiment of a web host-based website detection method according to the present application
  • FIG. 2 is a diagram showing an example of an interface before detection according to the present application.
  • FIG. 3 is a diagram showing an example of an interface of a detection process of the present application.
  • FIG. 4 is a diagram showing an example of an interface for detecting end of the present application.
  • FIG. 5 is a structural block diagram of an embodiment of a web host-based website detecting apparatus according to the present application.
  • FIG. 1 a flow chart of steps of a method for detecting a website based on a virtual host in the present application is shown. Specifically, the method may include the following steps:
  • Step 101 Receive a detection request of a website
  • the virtual host uses a special hardware and software technology to divide a real physical computer host into multiple logical storage units, each unit has no physical entity, but each one Physical units can be on the network like real physical hosts Work on, with a separate IP address (or shared IP address) and full server functionality.
  • Virtual hosts are completely independent. From the outside world, each virtual host and a single host perform exactly the same.
  • this virtualized logical host is aptly called a "virtual host.”
  • a website may be set up on the virtual host, and the user may send a detection request of the website to the server to which the virtual host belongs by using the client to request detection of the website.
  • the user can issue a detection request by clicking on the "Immediate Detection" control of the user interface as shown in FIG. 2.
  • the detection request may include a virtual host identifier of the virtual host that carries the website; the virtual host identifier may be information that can represent a uniquely determined virtual host.
  • the virtual host identifier may include a second-level domain name of the virtual host, where the second-level domain name may be a temporary domain name provided by the virtual host service provider to facilitate debugging of the website by the user of the virtual host. .
  • the second-level domain name can be "mail.xxx.com”.
  • Step 102 Perform detection on the website according to the virtual host identifier to obtain a detection result.
  • the detecting may include at least one or more of virtual host detection, website domain name detection, website status detection, network status detection, and website application detection.
  • the virtual host detection can detect the basic information of the virtual host
  • Website domain name detection can detect the information of the website domain name
  • Website status detection can be used to detect the running status of the website
  • the network status detection may be a detection of the network status of the server to which the virtual host belongs;
  • Website application detection can be a test for the application of the website.
  • the virtual host detection and the website domain may be sequentially performed. Name detection, website status detection, network status detection, website application detection.
  • the detection may be performed in other orders, which is not limited by the embodiment of the present application.
  • the detection item detected by the virtual host may include at least one or more of a virtual host's expiration date, a virtual host's space, and a virtual host's database;
  • step 102 may include the following sub-steps:
  • Sub-step S11 querying information about the virtual host corresponding to the virtual host identifier
  • the information about the virtual host includes at least one or more of the following:
  • the expiration date of the virtual host the space of the virtual host, and the database of the virtual host.
  • a separate host management console (such as a program independent of the server) may be provided to provide management control of the virtual host for the user of the virtual host.
  • the detection results of the expiration date of the virtual host, the space of the virtual host, the database of the virtual host, and the like can be queried.
  • the user usually purchases a virtual host to obtain a period of use, which may be the expiration time of the use period.
  • the space of the virtual host can include the size and usage of the space (such as usage, usage) and the like.
  • the virtual host's database can include the size and usage of the database (such as usage, usage) and so on.
  • the detection of the website domain name detection may include at least one of a domain name binding, a domain name expiration date, and a domain name resolution.
  • 102 can include the following sub-steps:
  • Sub-step S21 determining whether the virtual host identifier is bound to the domain name of the website; if yes, performing sub-step S22;
  • an independent host management console may be provided to provide management control of the virtual host provided by the user of the virtual host.
  • Sub-step S22 querying the expiration date of the domain name
  • the expiration date (detection result) of the domain name may be queried by calling an interface of the network operator.
  • Sub-step S23 detecting whether the domain name resolves to a server to which the virtual host belongs.
  • each virtual host does not have a separate IP address, and each virtual host on the server shares an IP address.
  • the domain name associated with the virtual host can be determined by the DNS (Domain Name System) to resolve the IP address associated with the domain name (detection result).
  • DNS Domain Name System
  • IP address is the same as the server to which the virtual host belongs, it is confirmed that the domain name can be resolved to the server to which the virtual host belongs.
  • the detection item of the website status detection may include at least one of a virtual host shutdown, a shutdown reason, a virtual host migration, a website registration, a virtual host backup, and a virtual host recovery.
  • step 102 may include the following sub-steps:
  • Sub-step S31 querying whether the virtual host corresponding to the virtual identifier is shut down; if yes, performing sub-step S32;
  • Sub-step S32 querying the reason for being shut down
  • the monitoring attribute alarm threshold, the statistical period, and the upper limit of the number of times can be preset in the monitoring center to monitor the usage of the virtual host.
  • the penalty center shuts down the virtual host. Then, through the penalty center, you can check whether the virtual host is shut down and shut down (test result).
  • Sub-step S33 querying whether the virtual host corresponding to the virtual identifier is in a data migration state, a data backup state, and a data recovery state;
  • the virtual host data migration state, the data backup state, and the data recovery state may be stored in the state pool (memory space), and the data migration state and data of the virtual host may be stored in the state pool (memory space). Backup status, data recovery status (test result).
  • Data migration can refer to the movement of data from a virtual host to another location.
  • Data backup can refer to backing up data of a virtual host.
  • Data recovery can refer to the recovery of data that has been backed up by the virtual host.
  • Sub-step S34 querying whether the domain name corresponding to the virtual identifier is successfully recorded; if yes, performing sub-step S35;
  • Sub-step S35 querying the record access provider.
  • the query service provided by the relevant unit may be invoked in advance to query whether the domain name corresponding to the virtual identifier is successfully filed and the record access provider.
  • step 102 may include the following sub-steps:
  • Sub-step S41 querying the virtual host corresponding to the virtual host identifier
  • Sub-step S42 detecting a network information service status and/or an application pool status of the virtual host to obtain network status information.
  • the network status information (detection result) can be obtained by detecting the status of the virtual host network information service (IIS) and the application pool status.
  • IIS virtual host network information service
  • IIS returns when a user attempts to access content on a server (virtual host) running Network Information Service (IIS) via the Hypertext Transfer Protocol (HTTP) or File Transfer Protocol (FTP).
  • HTTP Hypertext Transfer Protocol
  • FTP File Transfer Protocol
  • the numeric code 500 can represent an internal server error.
  • an application can run in an isolated environment. Specifically, multiple application pools can be created. Each application pool can have different configurations and can be one or more. An application links to one or more worker process collections, separating the application in the application pool from other applications by the worker process boundary.
  • IIS Network Information Service
  • An application error code can be returned when an error occurs in an application in the application pool.
  • an application error code with an event ID of 1001 can indicate that the Inetinfo.exe process of the World Wide Web Publishing Service encountered an error and was closed. This situation prevents the World Wide Web Publishing Service from detecting an unexpected termination of the Inetinfo.exe process, so changes to the configuration database will not be detected as expected.
  • the detection item detected by the website application may include at least one of a first page setting and a database connection.
  • step 102 The following substeps can be included:
  • Sub-step S51 querying whether the virtual host corresponding to the virtual host identifier sets a home page
  • Sub-step S52 querying whether the database of the virtual host corresponding to the virtual host identifier is connected properly.
  • whether the connection is normal (detection result) can be detected offline through the database, and whether the virtual host sets the home page is detected.
  • offline is for the current state of the database, when a database can not perform a valid database operation, it is offline.
  • the foregoing detection method is only an example.
  • other detection methods may be set according to actual conditions, which is not limited by the embodiment of the present application.
  • other detection methods may be used by those skilled in the art according to actual needs, and the embodiments of the present application do not limit this.
  • the embodiments of the present application provide various detection methods for virtual host detection, website domain name detection, website status detection, network status detection, website application detection, etc. for the website hosted by the virtual host, thereby realizing comprehensive automatic detection and greatly improving the detection convenience. Sexuality improves the efficiency of detection.
  • the method may further include the following steps:
  • Step 103 When the detection result meets a preset attribute value, generate a website improvement suggestion for the detection result.
  • an attribute value may be preset for some detection results, and the attribute value may be used to represent a problem, a fault, and the like of the detection item, and may be improved.
  • the date difference between the current date and the expiration date of the virtual host is within a preset first date gap range (attribute value), such as 30 In days, you can generate a virtual host's expiration prompt and provide a renewal link (website improvement suggestions).
  • the virtual host's expiration prompt is "Host is about to expire, due date: **", or, "Host has expired, due date: **”.
  • the usage rate of the space for the virtual host exceeds the preset first usage rate (attribute value), such as 95%, the cleanup space of the virtual host or Upgrade site tips and provide upgrade links (site improvement suggestions).
  • attribute value such as 95%
  • the cleanup space of the virtual host or the upgrade site prompts "The host has less than 5% of free space. Please clean up the space or upgrade the site in time.”
  • the usage rate of the database for the virtual host exceeds the preset second usage rate (attribute value), such as 95%, the cleanup space of the virtual host or the upgrade site prompt may be generated, and Upgrade links are available (Site Improvement Suggestions).
  • attribute value such as 95%
  • the cleanup space of the virtual host or the upgrade site prompts "There is less than 5% of the remaining space of the database. Please clean up the space or upgrade the site in time.”
  • the prompt information of the domain name binding may be generated, and the bound link may be provided (the website improvement suggestion).
  • the prompt information of the domain name binding of the virtual host is “unbound domain name. It is recommended that you bind the domain name immediately”.
  • the domain name For the detection result of the expiration date of the domain name, if the date difference between the current date and the expiration date of the domain name is within a preset second date gap range (attribute value), such as 30 days, the domain name can be generated. Tips and can provide renewal links (website improvement suggestions).
  • a preset second date gap range such as 30 days
  • the domain name expiration prompt is "Web site domain name is about to expire, due date: **", or, "Web site domain name has expired, due date: **".
  • the detection result of the domain name is resolved to the server to which the virtual host belongs, if the server (attribute value) to which the virtual host belongs is not resolved, the prompt information that is incorrectly parsed may be generated, and the link for domain name resolution may be provided (website improvement suggestion). .
  • the prompt information for shutting down and its cause is generated, and the processing can be provided. Stopped links (website improvement suggestions).
  • the prompt message for shutting down and its cause is “The host is shut down, and the reason for shutting down: Shows the reason for the penalty center to shut down.”
  • the host migration prompt information (website improvement suggestion) can be generated for the detection result of the data migration state.
  • the host migration prompt message is "The host is being accessed during the migration (in migration, recovery), $ (migration, recovery)."
  • the host backup prompt information can be generated for the detection result of the data backup state.
  • the host backup prompt message is "The host is being backed up. During the backup, it is recommended that you do not write to the website.”
  • the host recovery prompt information can be generated for the detection result of the data recovery state.
  • the host recovery prompt message is "The host is recovering. During the recovery, it is recommended that you do not write to the website.”
  • the record failure prompt information can be generated, and a link for filing (website improvement suggestion) can be provided.
  • the specified access agent record prompt information may be generated, and a link of the designated access agent record may be provided ( Website improvement suggestions).
  • the specified access agent's filing prompt message is “Your host is not registered in **, please file the file first, otherwise your website will be inaccessible”.
  • the prompt information of the connection abnormality may be generated.
  • connection is abnormal
  • the message "http connection is abnormal, please contact the customer service staff.”
  • the home page setting failure prompt may be generated, and a link for setting the home page tutorial (website improvement suggestion) may be provided.
  • the first page setup failure prompt is "You have not set the homepage yet, or the homepage setting is incorrect, please check Check if your home page upload address is correct and the home page file is named correctly. ”
  • the database connection exception prompt message is "There is an exception in your database link, please check if your database link string settings are correct.”
  • test results and website improvement suggestions can be displayed.
  • the embodiment of the present application provides a website improvement suggestion for the result of the detection, combined with the attribute value, to assist the user to optimize the website, thereby reducing the frequency of occurrence of the website failure, and realizing the primary user's self-discovery when the website fails, and reducing the detection technology.
  • the threshold further improves the efficiency of detection.
  • FIG. 5 a structural block diagram of an embodiment of a web host-based website detecting apparatus of the present application is shown, which may specifically include the following modules:
  • the detection request receiving sub-module 501 is configured to receive a detection request of the website; the detection request includes a virtual host identifier of the virtual host that carries the website;
  • the website detecting module 502 is configured to detect the website according to the virtual host identifier to obtain a detection result.
  • the detection includes at least virtual host detection, website domain name detection, website status detection, One or more of network status detection and website application detection.
  • the apparatus may further include the following modules:
  • the suggestion generating module is configured to generate a website improvement suggestion for the detection result when the detection result meets a preset attribute value.
  • the virtual host identifier may include a second-level domain name of the virtual host.
  • the detection item detected by the virtual host may include at least one of a virtual host's expiration date, a virtual host's space, and a virtual host's database;
  • the website detection module 502 can include the following sub-modules:
  • a first query submodule configured to query information about a virtual host corresponding to the virtual host identifier
  • the information about the virtual host includes at least one or more of the following:
  • the expiration date of the virtual host the space of the virtual host, and the database of the virtual host.
  • the detection item of the website domain name detection may include at least one of a domain name binding, a domain name expiration date, and a domain name resolution;
  • the website detection module 502 can include the following sub-modules:
  • a first determining sub-module configured to determine whether the virtual host identifier is bound to a domain name of the website; if yes, calling a second query sub-module;
  • a second query submodule configured to query an expiration date of the domain name
  • the first detecting submodule is configured to detect whether the domain name is resolved to a server to which the virtual host belongs.
  • the detection item of the website status detection may include at least one of a virtual host shutdown, a shutdown reason, a virtual host migration, a website registration, a virtual host backup, and a virtual host recovery.
  • the website detection module 502 can include the following sub-modules:
  • a third query sub-module configured to query whether the virtual host corresponding to the virtual identifier is shut down; if yes, invoke a fourth query sub-module;
  • the fifth query sub-module is configured to query whether the virtual host corresponding to the virtual identifier is in a data migration state, a data backup state, and a data recovery state;
  • the sixth query sub-module is configured to query whether the domain name corresponding to the virtual identifier is successfully filed; if yes, query the record access provider.
  • the website detection module 502 can include the following sub-modules:
  • a seventh query submodule configured to query a virtual host corresponding to the virtual host identifier
  • the second detecting submodule is configured to detect a network information service status and/or an application pool status of the virtual host to obtain network status information.
  • the detection item detected by the website application may include at least one or more of a home page setting and a database connection;
  • the website detection module 502 can include the following sub-modules:
  • An eighth query submodule configured to query whether a virtual host corresponding to the virtual host identifier sets a homepage
  • the ninth query sub-module is configured to query whether the database of the virtual host corresponding to the virtual host identifier is connected properly.
  • the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
  • embodiments of the embodiments of the present application can be provided as a method, apparatus, or computer program product. Therefore, the embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Moreover, embodiments of the present application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • the computer device includes one or more processors (CPU), input/output interface, network interface, and memory.
  • the memory may include non-persistent memory, random access memory (RAM), and/or non-volatile memory in a computer readable medium, such as read only memory (ROM) or flash memory.
  • RAM random access memory
  • ROM read only memory
  • Memory is an example of a computer readable medium.
  • Computer readable media includes both permanent and non-persistent, removable and non-removable media.
  • Information storage can be implemented by any method or technology.
  • the information can be computer readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory.
  • PRAM phase change memory
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • RAM random access memory
  • ROM read only memory
  • EEPROM electrically erasable programmable read only memory
  • flash memory or other memory technology
  • compact disk read only memory CD-ROM
  • DVD digital versatile disk
  • Magnetic tape cartridges magnetic tape storage or other magnetic storage devices or any other non-transportable media can be used to store information that can be accessed by a computing device.
  • computer readable media does not include non-persistent computer readable media, such as modulated data signals and carrier waves.
  • Embodiments of the present application are described with reference to flowcharts and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the present application. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG.
  • These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing terminal device to produce a machine such that instructions are executed by a processor of a computer or other programmable data processing terminal device
  • Means are provided for implementing the functions specified in one or more of the flow or in one or more blocks of the flow chart.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing terminal device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the instruction device implements the functions specified in one or more blocks of the flowchart or in a flow or block of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device such that a series of operational steps are performed on the computer or other programmable terminal device to generate the meter
  • the processing implemented by the computer such that the instructions executed on the computer or other programmable terminal device provide steps for implementing the functions specified in one or more blocks of the flowchart or in a flow or block of the flowchart. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Debugging And Monitoring (AREA)

Abstract

本申请实施例提供了一种基于虚拟主机的网站检测方法和装置,该方法包括:接收网站的检测请求;所述检测请求中包括承载所述网站的虚拟主机的虚拟主机标识;根据所述虚拟主机标识对所述网站进行检测,以获得检测结果;其中,所述检测至少包括虚拟主机检测、网站域名检测、网站状态检测、网络状态检测、网站应用检测中的一种或多种。本申请实施例实现了全面的自动检测,大大提高了检测的简便性,提高了检测的效率。

Description

一种基于虚拟主机的网站检测方法和装置 技术领域
本申请涉及检测技术领域,特别是涉及一种基于虚拟主机的网站检测方法和一种基于虚拟主机的网站检测装置。
背景技术
随着网络科技的快速发展,很多企业、单位甚至个人在网络上架设网站,进行信息化建设。
由于很多中小企业不具备足够的网站专业人才,而且,随着网络在企业信息化建设中的作用也越来越明显,企业对网络应用的需求也越来越复杂,在这种情况下,虚拟主机服务为架设网站提供了一种有效途径。
在网站的运行过程中,或多或少会遇到问题。而对于虚机主机建站的用户而言,用户网站技术背景较为薄弱,通常用户网站出现故障时,都只能通过专业技术支持人员对网站进行排查。
而且,专业技术人员通常需要人工进行逐一排查,然后给出建议解决方案,检测过程十分繁琐、耗时,效率很低。
发明内容
鉴于上述问题,提出了本申请实施例以便提供一种克服上述问题或者至少部分地解决上述问题的一种基于虚拟主机的网站检测方法和相应的一种基于虚拟主机的网站检测装置。
为了解决上述问题,本申请公开了一种基于虚拟主机的网站检测方法,包括:
接收网站的检测请求;所述检测请求中包括承载所述网站的虚拟主机的虚拟主机标识;
根据所述虚拟主机标识对所述网站进行检测,以获得检测结果;
其中,所述检测至少包括虚拟主机检测、网站域名检测、网站状态检测、 网络状态检测、网站应用检测中的一种或多种。
优选地,还包括:
当所述检测结果符合预设的属性值时,针对所述检测结果生成网站改进建议。
优选地,所述虚拟主机标识包括所述虚拟主机的二级域名。
优选地,所述虚拟主机检测的检测项至少包括虚拟主机的到期日、虚拟主机的空间、虚拟主机的数据库中的一种或多种;
所述根据所述虚拟主机标识对所述网站进行检测,以获得检测结果的步骤包括:
查询所述虚拟主机标识对应的虚拟主机的信息;
其中,所述虚拟主机的信息至少包括以下的一种或多种:
虚拟主机的到期日、虚拟主机的空间、虚拟主机的数据库。
优选地,所述网站域名检测的检测项至少包括域名绑定、域名到期日、域名解析中的一种或多种;
所述根据所述虚拟主机标识对所述网站进行检测,以获得检测结果的步骤包括:
判断所述虚拟主机标识是否与所述网站的域名绑定;
若是,则查询所述域名的到期日;
检测所述域名是否解析到所述虚拟主机所属的服务器。
优选地,所述网站状态检测的检测项至少包括虚拟主机关停、关停原因、虚拟主机迁移、网站备案、虚拟主机备份、虚拟主机恢复中的一种或多种;
所述根据所述虚拟主机标识对所述网站进行检测,以获得检测结果的步骤包括:
查询所述虚拟标识对应的虚拟主机是否被关停;若是,则查询被关停的原因;
查询所述虚拟标识对应的虚拟主机是否处于数据迁移状态、数据备份状态、数据恢复状态;
查询所述虚拟标识对应的域名是否备案成功;若是,则查询备案接入商。
优选地,所述根据所述虚拟主机标识对所述网站进行检测,以获得检测结果的步骤包括:
查询所述虚拟主机标识对应的虚拟主机;
检测所述虚拟主机的网络信息服务状态和/或应用程序池状态,以获取网络状态信息。
优选地,所述网站应用检测的检测项至少包括首页设置、数据库连接中的一种或多种;
所述根据所述虚拟主机标识对所述网站进行检测,以获得检测结果的步骤包括:
查询所述虚拟主机标识对应的虚拟主机是否设置首页;
查询所述虚拟主机标识对应的虚拟主机的数据库是否连接正常。
本申请实施例还公开了一种基于虚拟主机的网站检测装置,包括:
检测请求接收子模块,用于接收网站的检测请求;所述检测请求中包括承载所述网站的虚拟主机的虚拟主机标识;
网站检测模块,用于根据所述虚拟主机标识对所述网站进行检测,以获得检测结果;
其中,所述检测至少包括虚拟主机检测、网站域名检测、网站状态检测、网络状态检测、网站应用检测中的一种或多种。
优选地,还包括:
建议生成模块,用于在所述检测结果符合预设的属性值时,针对所述检测结果生成网站改进建议。
优选地,所述虚拟主机标识包括所述虚拟主机的二级域名。
优选地,所述虚拟主机检测的检测项至少包括虚拟主机的到期日、虚拟主机的空间、虚拟主机的数据库中的一种或多种;
所述网站检测模块包括:
第一查询子模块,用于查询所述虚拟主机标识对应的虚拟主机的信息;
其中,所述虚拟主机的信息至少包括以下的一种或多种:
虚拟主机的到期日、虚拟主机的空间、虚拟主机的数据库。
优选地,所述网站域名检测的检测项至少包括域名绑定、域名到期日、域名解析中的一种或多种;
所述网站检测模块包括:
第一判断子模块,用于判断所述虚拟主机标识是否与所述网站的域名绑定;若是,则调用第二查询子模块;
第二查询子模块,用于查询所述域名的到期日;
第一检测子模块,用于检测所述域名是否解析到所述虚拟主机所属的服务器。
优选地,所述网站状态检测的检测项至少包括虚拟主机关停、关停原因、虚拟主机迁移、网站备案、虚拟主机备份、虚拟主机恢复中的一种或多种;
所述网站检测模块包括:
第三查询子模块,用于查询所述虚拟标识对应的虚拟主机是否被关停;若是,则调用第四查询子模块;
第四查询子模块,用于查询被关停的原因;
第五查询子模块,用于查询所述虚拟标识对应的虚拟主机是否处于数据迁移状态、数据备份状态、数据恢复状态;
第六查询子模块,用于查询所述虚拟标识对应的域名是否备案成功;若是,则查询备案接入商。
优选地,所述网站检测模块包括:
第七查询子模块,用于查询所述虚拟主机标识对应的虚拟主机;
第二检测子模块,用于检测所述虚拟主机的网络信息服务状态和/或应用程序池状态,以获取网络状态信息。
优选地,所述网站应用检测的检测项至少包括首页设置、数据库连接中的一种或多种;
所述网站检测模块包括:
第八查询子模块,用于查询所述虚拟主机标识对应的虚拟主机是否设置首页;
第九查询子模块,用于查询所述虚拟主机标识对应的虚拟主机的数据库是否连接正常。
本申请实施例包括以下优点:
本申请实施例针对虚拟主机所承载的网站提供虚拟主机检测、网站域名检测、网站状态检测、网络状态检测、网站应用检测等多种检测方法,实现了全面的自动检测,大大提高了检测的简便性,提高了检测的效率。
本申请实施例针对检测的结果,结合属性值,提供网站改进建议,以辅助用户优化网站,从而降低网站故障的发生频次,在网站出现故障时,实现初级用户的自主排查,降低了检测的技术门槛,进一步提高了检测的效率。
附图说明
图1是本申请的一种基于虚拟主机的网站检测方法实施例的步骤流程图;
图2是本申请的一种检测前的界面示例图;
图3是本申请的一种检测过程的界面示例图;
图4是本申请的一种检测结束的界面示例图;
图5是本申请的一种基于虚拟主机的网站检测装置实施例的结构框图。
具体实施方式
为使本申请的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本申请作进一步详细的说明。
参照图1,示出了本申请的一种基于虚拟主机的网站检测方法实施例的步骤流程图,具体可以包括如下步骤:
步骤101,接收网站的检测请求;
需要说明的是,虚拟主机(Virtual Host/Virtual Server)是使用特殊的软硬件技术,把一台真实的物理电脑主机分割成多个的逻辑存储单元,每个单元都没有物理实体,但是每一个物理单元都能像真实的物理主机一样在网络 上工作,具有单独的IP地址(或共享的IP地址)以及完整的服务器功能。
即使在同一台硬件、同一个操作系统上,运行着为多个用户打开的不同的服务器程式,也可以互不干扰。而各个用户拥有自己的一部分系统资源(如IP地址、文档存储空间、内存、CPU时间等)。
虚拟主机之间完全独立,在外界看来,每一台虚拟主机和一台单独的主机的表现完全相同。
所以这种被虚拟化的逻辑主机被形象地称为“虚拟主机”。
在本申请实施例中,可以在虚拟主机上架设网站,用户可以通过客户端向虚拟主机所属的服务器发送该网站的检测请求,以请求对该网站进行检测。
例如,用户可以通过点击如图2所示的用户界面的“立即检测”控件发出检测请求。
其中,所述检测请求中可以包括承载所述网站的虚拟主机的虚拟主机标识;虚拟主机标识可以是能够代表一个唯一确定的虚拟主机的信息。
在具体实现中,所述虚拟主机标识可以包括所述虚拟主机的二级域名,该二级域名可以为虚拟主机服务提供商为了方便于虚拟主机的用户对网站进行调试而提供的一种临时域名。
例如,原域名为“www.xxx.com”,则其二级域名可以为“mail.xxx.com”。
步骤102,根据所述虚拟主机标识对所述网站进行检测,以获得检测结果;
其中,所述检测至少可以包括虚拟主机检测、网站域名检测、网站状态检测、网络状态检测、网站应用检测中的一种或多种。
虚拟主机检测可以为对虚拟主机的基本信息进行的检测;
网站域名检测可以为对网站域名的信息进行的检测;
网站状态检测可以为对网站的运行状态进行的检测;
网络状态检测可以为对虚拟主机所属的服务器的网络状态进行的检测;
网站应用检测可以为对网站的应用进行的检测。
应用本申请实施例,如图3所示,可以依次进行虚拟主机检测、网站域 名检测、网站状态检测、网络状态检测、网站应用检测。
当然,还可以采用其他顺序进行检测,本申请实施例对此不加以限制。
在本申请的一种优选实施例中,所述虚拟主机检测的检测项至少可以包括虚拟主机的到期日、虚拟主机的空间、虚拟主机的数据库中的一种或多种;则在本申请实施例中,步骤102可以包括如下子步骤:
子步骤S11,查询所述虚拟主机标识对应的虚拟主机的信息;
其中,所述虚拟主机的信息至少包括以下的一种或多种:
虚拟主机的到期日、虚拟主机的空间、虚拟主机的数据库。
在本申请实施例中,可以提供一个独立的主机管理控制台(如独立于服务器外的程序),为虚拟主机的用户提供的虚拟主机的管理控制。
通过在该独立的主机管理控制台,可以查询到虚拟主机的到期日、虚拟主机的空间、虚拟主机的数据库等检测结果。
其中,用户通常购买虚拟主机,以获得使用期限,该到期日可以为使用期限的到期时间。
虚拟主机的空间可以包括空间的大小和使用情况(如使用量、使用率)等。
虚拟主机的数据库可以包括数据库的大小和使用情况(如使用量、使用率)等。
在本申请的一种优选实施例中,所述网站域名检测的检测项至少可以包括域名绑定、域名到期日、域名解析中的一种或多种;则在本申请实施例中,步骤102可以包括如下子步骤:
子步骤S21,判断所述虚拟主机标识是否与所述网站的域名绑定;若是,则执行子步骤S22;
在本申请实施例中,可以提供一个独立的主机管理控制台,为虚拟主机的用户提供的虚拟主机的管理控制。
通过在该独立的主机管理控制台,可以查询虚拟主机标识是否与网站的域名绑定(检测结果)。
子步骤S22,查询所述域名的到期日;
在具体实现中,可以通过调用网络运营商的接口,查询该域名的到期日(检测结果)。
子步骤S23,检测所述域名是否解析到所述虚拟主机所属的服务器。
一般情况下,每个虚拟主机没有独立的IP地址,每一个台服务器上的虚拟主机共享一个IP地址。
在具体实现中,可以通过DNS(Domain Name System,域名解析系统)解析域名关联的IP地址,则可以确定域名是否解析到虚拟主机所属的服务器(检测结果)。
若该IP地址与虚拟主机所属的服务器相同,则确认该域名可以解析到虚拟主机所属的服务器。
在本申请的一种优选实施例中,所述网站状态检测的检测项至少可以包括虚拟主机关停、关停原因、虚拟主机迁移、网站备案、虚拟主机备份、虚拟主机恢复中的一种或多种;则在本申请实施例中,步骤102可以包括如下子步骤:
子步骤S31,查询所述虚拟标识对应的虚拟主机是否被关停;若是,则执行子步骤S32;
子步骤S32,查询被关停的原因;
在本申请实施例中,可以在监控中心预先设定监控属性报警阀值、统计周期以及次数上限,对虚拟主机的使用情况进行监控。
当监控的情况满足预设的条件时,处罚中心关停虚拟主机。则通过处罚中心可以查询虚拟主机是否被关停、及关停的原因(检测结果)。
监控说明及关停原因的预设属性值的示例可以如下表所示:
Figure PCTCN2016080443-appb-000001
Figure PCTCN2016080443-appb-000002
子步骤S33,查询所述虚拟标识对应的虚拟主机是否处于数据迁移状态、数据备份状态、数据恢复状态;
在本申请实施例中,可以在状态池(内存空间)中存储虚拟主机数据迁移状态、数据备份状态、数据恢复状态,则可以在状态池(内存空间)中存储虚拟主机的数据迁移状态、数据备份状态、数据恢复状态(检测结果)。
数据迁移,可以指虚拟主机的数据从原位置移动到其他位置。
数据备份,可以指对虚拟主机的数据进行备份。
数据恢复,可以指从虚拟主机已备份的数据进行恢复操作。
子步骤S34,查询所述虚拟标识对应的域名是否备案成功;若是,则执行子步骤S35;
子步骤S35,查询备案接入商。
应用本申请实施例,可以预先调用相关单位提供的查询服务,查询虚拟标识对应的域名是否备案成功及备案接入商。
则可以直接从本地直接查找虚拟标识对应的域名是否备案成功及备案接入商(检测结果)。
在本申请的一种优选实施例中,步骤102可以包括如下子步骤:
子步骤S41,查询所述虚拟主机标识对应的虚拟主机;
子步骤S42,检测所述虚拟主机的网络信息服务状态和/或应用程序池状态,以获取网络状态信息。
本申请实施例中,可以通过检测虚拟主机网络信息服务(Internet Information Services,IIS)状态以及应用程序池状态,获取网络状态信息(检测结果)。
当用户试图通过超文本传送协议(Hypertext transfer protocol,HTTP)或文件传输协议(File Transfer Protocol,FTP)访问一台正在运行网络信息服务(IIS)的服务器(虚拟主机)上的内容时,IIS返回一个表示该请求的状态的数字代码。该代码可以指明具体请求是否已成功,还可以揭示请求失败的确切原因。
例如,数字代码500可以表示内部服务器错误。
在网络信息服务(IIS)的工作进程隔离模式下,应用程序可以在隔离环境中运行,具体可以创建多个应用程序池,每个应用程序池都可以有不同的配置,可以将一个或多个应用程序链接到一个或多个工作进程集合,进而将应用程序池中的应用程序与其他应用程序被工作进程边界分隔。
应用程序池中的应用程序发生错误时,可以返回应用程序错误代码。
例如,事件ID为1001的应用程序错误代码,可以表示World Wide Web Publishing服务的Inetinfo.exe进程遇到了一个错误,并且被关闭。这种情况使World Wide Web Publishing服务不能检测到Inetinfo.exe进程的意外终止,因此将不能按预计的那样检测到对配置数据库的更改。
在本申请的一种优选实施例中,所述网站应用检测的检测项至少可以包括首页设置、数据库连接中的一种或多种;则在本申请实施例中,步骤102 可以包括如下子步骤:
子步骤S51,查询所述虚拟主机标识对应的虚拟主机是否设置首页;
子步骤S52,查询所述虚拟主机标识对应的虚拟主机的数据库是否连接正常。
在本申请实施例中,可以通过数据库脱机检测是否连接正常(检测结果),检测虚拟主机是否设置首页。
其中,脱机,是针对数据库的当前状态而言的,当一个数据库不能执行有效的数据库操作时,则为脱机状态。
当然,上述检测方法只是作为示例,在实施本申请实施例时,可以根据实际情况设置其他检测方法,本申请实施例对此不加以限制。另外,除了上述检测方法外,本领域技术人员还可以根据实际需要采用其它检测方法,本申请实施例对此也不加以限制。
本申请实施例针对虚拟主机所承载的网站提供虚拟主机检测、网站域名检测、网站状态检测、网络状态检测、网站应用检测等多种检测方法,实现了全面的自动检测,大大提高了检测的简便性,提高了检测的效率。
在本申请的一种优选实施例中,该方法还可以包括如下步骤:
步骤103,当所述检测结果符合预设的属性值时,针对所述检测结果生成网站改进建议。
在本申请实施例中,可以针对某些检测结果预先设置属性值,该属性值可以用于表征检测项出现问题、故障等情况,可以进行改进。
在一个实施例中,针对虚拟主机的到期日的检测结果,若当前的日期与虚拟主机的到期日之间的日期差距在预设的第一日期差距范围(属性值)内,如30天,则可以生成虚拟主机的到期提示,并可以提供续费链接(网站改进建议)。
例如,虚拟主机的到期提示为“主机即将到期,到期日:**”,或者,“主机已到期,到期日:**”。
针对虚拟主机的空间的检测结果,若针对虚拟主机的空间的使用率超过预设的第一使用率(属性值),如95%,则可以生成虚拟主机的清理空间或 升级站点提示,并提供升级链接(网站改进建议)。
例如,虚拟主机的清理空间或升级站点提示为“主机剩余空间不足5%,请及时清理空间或升级站点”。
针对,虚拟主机的数据库的检测结果,若针对虚拟主机的数据库的使用率超过预设的第二使用率(属性值),如95%,则可以生成虚拟主机的清理空间或升级站点提示,并可以提供升级链接(网站改进建议)。
例如,虚拟主机的清理空间或升级站点提示为“数据库剩余空间不足5%,请及时清理空间或升级站点”。
在另一个实施例中,针对是否绑定域名的检测结果,若未绑定域名(属性值),则可以生成域名绑定的提示信息,并可以提供绑定的链接(网站改进建议)。
例如,虚拟主机的域名绑定的提示信息为“未绑定网站域名,建议您即时进行域名绑定”。
针对域名的到期日的检测结果,若当前的日期与域名的到期日之间的日期差距在预设的第二日期差距范围(属性值)内,如30天,则可以生成域名的到期提示,并可以提供续费链接(网站改进建议)。
例如,域名的到期提示为“网站域名即将到期,到期日:**”,或者,“网站域名已到期,到期日:**”。
针对域名是否解析到虚拟主机所属的服务器的检测结果,若未解析到虚拟主机所属的服务器(属性值),则可以生成解析不正确的提示信息,并可以提供域名解析的链接(网站改进建议)。
例如,解析不正确的提示信息为“您的域名解析不正确,请将域名解析至主机IP:***.***.**.**”。
在另一个实施例中,针对虚拟主机是否被关停及关停原因的检测结果,若虚拟主机已被关停(属性值),则生成关停及其原因的提示信息,并可以提供处理关停的链接(网站改进建议)。
例如,关停及其原因的提示信息为“该主机被关停,关停原因:显示处罚中心关停原因。”
针对是否处于数据迁移状态的检测结果,若虚拟主机处于数据迁移状态(属性值),则可以生成主机迁移提示信息(网站改进建议)。
例如,主机迁移提示信息为“该主机正在$(迁移中、恢复中),$(迁移、恢复)期间,站点无法访问”。
针对是否处于数据备份状态的检测结果,若虚拟主机处于数据备份状态(属性值),则可以生成主机备份提示信息(网站改进建议)。
例如,主机备份提示信息为“该主机正在备份中,备份期间,建议您不要对网站进行写入操作”。
针对是否处于数据恢复状态的检测结果,若虚拟主机处于数据恢复状态(属性值),则可以生成主机恢复提示信息(网站改进建议)。
例如,主机恢复提示信息为“该主机正在恢复中,恢复期间,建议您不要对网站进行写入操作”。
针对域名是否备案成功的检测结果,若备案失败(属性值),则可以生成备案失败提示信息,并可以提供备案的链接(网站改进建议)。
例如,备案失败提示信息为“您的域名未备案,请立即备案,否则会导致您网站无法访问”。
针对备案接入商的检测结果,若备案接入商为非指定的接入商(属性值),则可以生成指定的接入商备案提示信息,并可以提供指定的接入商备案的链接(网站改进建议)。
例如,指定的接入商备案提示信息为“您的主机未在**备案,请先备案,否则会导致您的网站无法访问”。
在另一个实施例中,针对网络状态信息的检测结果,若服务器连接异常(属性值),则可以生成连接异常的提示信息(网站改进建议)。
例如,连接异常的提示信息为“http连接异常,请联系万网客服人员”。
在另一个实施例中,针对是否设置首页的检测结果,若无法获取首页(属性值),则可以生成首页设置失败提示,并可以提供设置首页教程的链接(网站改进建议)。
例如,首页设置失败提示为“您暂未设置首页,或首页设置有误,请检 查您的首页文件上传地址是否正确,首页文件命名是否正确。”
针对数据库是否连接正常的检测结果,若数据库连接异常(属性值),则可以生成数据库连接异常提示信息,并可以提供数据库问题解答的链接(网站改进建议)。
例如,数据库连接异常提示信息为“您的数据库链接存在异常,请检查您的数据库链接串设置是否正确”。
当然,上述网站改进建议只是作为示例,在实施本申请实施例时,可以根据实际情况设置其他网站改进建议,本申请实施例对此不加以限制。另外,除了上述网站改进建议外,本领域技术人员还可以根据实际需要采用其它网站改进建议,本申请实施例对此也不加以限制。
如图4所示,当检测完成时,可以展示检测结果与网站改进建议。
本申请实施例针对检测的结果,结合属性值,提供网站改进建议,以辅助用户优化网站,从而降低网站故障的发生频次,在网站出现故障时,实现初级用户的自主排查,降低了检测的技术门槛,进一步提高了检测的效率。
需要说明的是,对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请实施例并不受所描述的动作顺序的限制,因为依据本申请实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本申请实施例所必须的。
参照图5,示出了本申请的一种基于虚拟主机的网站检测装置实施例的结构框图,具体可以包括如下模块:
检测请求接收子模块501,用于接收网站的检测请求;所述检测请求中包括承载所述网站的虚拟主机的虚拟主机标识;
网站检测模块502,用于根据所述虚拟主机标识对所述网站进行检测,以获得检测结果;
其中,所述检测至少包括虚拟主机检测、网站域名检测、网站状态检测、 网络状态检测、网站应用检测中的一种或多种。
在本申请的一种优选实施例中,该装置还可以包括如下模块:
建议生成模块,用于在所述检测结果符合预设的属性值时,针对所述检测结果生成网站改进建议。
在具体实现中,所述虚拟主机标识可以包括所述虚拟主机的二级域名。
在本申请的一种优选实施例中,所述虚拟主机检测的检测项至少可以包括虚拟主机的到期日、虚拟主机的空间、虚拟主机的数据库中的一种或多种;
所述网站检测模块502可以包括如下子模块:
第一查询子模块,用于查询所述虚拟主机标识对应的虚拟主机的信息;
其中,所述虚拟主机的信息至少包括以下的一种或多种:
虚拟主机的到期日、虚拟主机的空间、虚拟主机的数据库。
在本申请的一种优选实施例中,所述网站域名检测的检测项至少可以包括域名绑定、域名到期日、域名解析中的一种或多种;
所述网站检测模块502可以包括如下子模块:
第一判断子模块,用于判断所述虚拟主机标识是否与所述网站的域名绑定;若是,则调用第二查询子模块;
第二查询子模块,用于查询所述域名的到期日;
第一检测子模块,用于检测所述域名是否解析到所述虚拟主机所属的服务器。
在本申请的一种优选实施例中,所述网站状态检测的检测项至少可以包括虚拟主机关停、关停原因、虚拟主机迁移、网站备案、虚拟主机备份、虚拟主机恢复中的一种或多种;
所述网站检测模块502可以包括如下子模块:
第三查询子模块,用于查询所述虚拟标识对应的虚拟主机是否被关停;若是,则调用第四查询子模块;
第四查询子模块,用于查询被关停的原因;
第五查询子模块,用于查询所述虚拟标识对应的虚拟主机是否处于数据迁移状态、数据备份状态、数据恢复状态;
第六查询子模块,用于查询所述虚拟标识对应的域名是否备案成功;若是,则查询备案接入商。
在本申请的一种优选实施例中,所述网站检测模块502可以包括如下子模块:
第七查询子模块,用于查询所述虚拟主机标识对应的虚拟主机;
第二检测子模块,用于检测所述虚拟主机的网络信息服务状态和/或应用程序池状态,以获取网络状态信息。
在本申请的一种优选实施例中,所述网站应用检测的检测项至少可以包括首页设置、数据库连接中的一种或多种;
所述网站检测模块502可以包括如下子模块:
第八查询子模块,用于查询所述虚拟主机标识对应的虚拟主机是否设置首页;
第九查询子模块,用于查询所述虚拟主机标识对应的虚拟主机的数据库是否连接正常。
对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。
本领域内的技术人员应明白,本申请实施例的实施例可提供为方法、装置、或计算机程序产品。因此,本申请实施例可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
在一个典型的配置中,所述计算机设备包括一个或多个处理器 (CPU)、输入/输出接口、网络接口和内存。内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括非持续性的电脑可读媒体(transitory media),如调制的数据信号和载波。
本申请实施例是参照根据本申请实施例的方法、终端设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理终端设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理终端设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理终端设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理终端设备上,使得在计算机或其他可编程终端设备上执行一系列操作步骤以产生计 算机实现的处理,从而在计算机或其他可编程终端设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
尽管已描述了本申请实施例的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本申请实施例范围的所有变更和修改。
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者终端设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者终端设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者终端设备中还存在另外的相同要素。
以上对本申请所提供的一种基于虚拟主机的网站检测方法和一种基于虚拟主机的网站检测装置,进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。

Claims (16)

  1. 一种基于虚拟主机的网站检测方法,其特征在于,包括:
    接收网站的检测请求;所述检测请求中包括承载所述网站的虚拟主机的虚拟主机标识;
    根据所述虚拟主机标识对所述网站进行检测,以获得检测结果;
    其中,所述检测至少包括虚拟主机检测、网站域名检测、网站状态检测、网络状态检测、网站应用检测中的一种或多种。
  2. 根据权利要求1所述的方法,其特征在于,还包括:
    当所述检测结果符合预设的属性值时,针对所述检测结果生成网站改进建议。
  3. 根据权利要求1所述的方法,其特征在于,所述虚拟主机标识包括所述虚拟主机的二级域名。
  4. 根据权利要求1或2或3所述的方法,其特征在于,所述虚拟主机检测的检测项至少包括虚拟主机的到期日、虚拟主机的空间、虚拟主机的数据库中的一种或多种;
    所述根据所述虚拟主机标识对所述网站进行检测,以获得检测结果的步骤包括:
    查询所述虚拟主机标识对应的虚拟主机的信息;
    其中,所述虚拟主机的信息至少包括以下的一种或多种:
    虚拟主机的到期日、虚拟主机的空间、虚拟主机的数据库。
  5. 根据权利要求1或2或3所述的方法,其特征在于,所述网站域名检测的检测项至少包括域名绑定、域名到期日、域名解析中的一种或多种;
    所述根据所述虚拟主机标识对所述网站进行检测,以获得检测结果的步骤包括:
    判断所述虚拟主机标识是否与所述网站的域名绑定;
    若是,则查询所述域名的到期日;
    检测所述域名是否解析到所述虚拟主机所属的服务器。
  6. 根据权利要求1或2或3所述的方法,其特征在于,所述网站状态检测的检测项至少包括虚拟主机关停、关停原因、虚拟主机迁移、网站备案、虚拟主机备份、虚拟主机恢复中的一种或多种;
    所述根据所述虚拟主机标识对所述网站进行检测,以获得检测结果的步骤包括:
    查询所述虚拟标识对应的虚拟主机是否被关停;若是,则查询被关停的原因;
    查询所述虚拟标识对应的虚拟主机是否处于数据迁移状态、数据备份状态、数据恢复状态;
    查询所述虚拟标识对应的域名是否备案成功;若是,则查询备案接入商。
  7. 根据权利要求1或2或3所述的方法,其特征在于,所述根据所述虚拟主机标识对所述网站进行检测,以获得检测结果的步骤包括:
    查询所述虚拟主机标识对应的虚拟主机;
    检测所述虚拟主机的网络信息服务状态和/或应用程序池状态,以获取网络状态信息。
  8. 根据权利要求1或2或3所述的方法,其特征在于,所述网站应用检测的检测项至少包括首页设置、数据库连接中的一种或多种;
    所述根据所述虚拟主机标识对所述网站进行检测,以获得检测结果的步骤包括:
    查询所述虚拟主机标识对应的虚拟主机是否设置首页;
    查询所述虚拟主机标识对应的虚拟主机的数据库是否连接正常。
  9. 一种基于虚拟主机的网站检测装置,其特征在于,包括:
    检测请求接收子模块,用于接收网站的检测请求;所述检测请求中包括承载所述网站的虚拟主机的虚拟主机标识;
    网站检测模块,用于根据所述虚拟主机标识对所述网站进行检测,以获得检测结果;
    其中,所述检测至少包括虚拟主机检测、网站域名检测、网站状态检测、 网络状态检测、网站应用检测中的一种或多种。
  10. 根据权利要求9所述的装置,其特征在于,还包括:
    建议生成模块,用于在所述检测结果符合预设的属性值时,针对所述检测结果生成网站改进建议。
  11. 根据权利要求9所述的装置,其特征在于,所述虚拟主机标识包括所述虚拟主机的二级域名。
  12. 根据权利要求9或10或11所述的装置,其特征在于,所述虚拟主机检测的检测项至少包括虚拟主机的到期日、虚拟主机的空间、虚拟主机的数据库中的一种或多种;
    所述网站检测模块包括:
    第一查询子模块,用于查询所述虚拟主机标识对应的虚拟主机的信息;
    其中,所述虚拟主机的信息至少包括以下的一种或多种:
    虚拟主机的到期日、虚拟主机的空间、虚拟主机的数据库。
  13. 根据权利要求9或10或11所述的装置,其特征在于,所述网站域名检测的检测项至少包括域名绑定、域名到期日、域名解析中的一种或多种;
    所述网站检测模块包括:
    第一判断子模块,用于判断所述虚拟主机标识是否与所述网站的域名绑定;若是,则调用第二查询子模块;
    第二查询子模块,用于查询所述域名的到期日;
    第一检测子模块,用于检测所述域名是否解析到所述虚拟主机所属的服务器。
  14. 根据权利要求9或10或11所述的装置,其特征在于,所述网站状态检测的检测项至少包括虚拟主机关停、关停原因、虚拟主机迁移、网站备案、虚拟主机备份、虚拟主机恢复中的一种或多种;
    所述网站检测模块包括:
    第三查询子模块,用于查询所述虚拟标识对应的虚拟主机是否被关停;若是,则调用第四查询子模块;
    第四查询子模块,用于查询被关停的原因;
    第五查询子模块,用于查询所述虚拟标识对应的虚拟主机是否处于数据迁移状态、数据备份状态、数据恢复状态;
    第六查询子模块,用于查询所述虚拟标识对应的域名是否备案成功;若是,则查询备案接入商。
  15. 根据权利要求9或10或11所述的装置,其特征在于,所述网站检测模块包括:
    第七查询子模块,用于查询所述虚拟主机标识对应的虚拟主机;
    第二检测子模块,用于检测所述虚拟主机的网络信息服务状态和/或应用程序池状态,以获取网络状态信息。
  16. 根据权利要求9或10或11所述的装置,其特征在于,所述网站应用检测的检测项至少包括首页设置、数据库连接中的一种或多种;
    所述网站检测模块包括:
    第八查询子模块,用于查询所述虚拟主机标识对应的虚拟主机是否设置首页;
    第九查询子模块,用于查询所述虚拟主机标识对应的虚拟主机的数据库是否连接正常。
PCT/CN2016/080443 2015-05-29 2016-04-28 一种基于虚拟主机的网站检测方法和装置 WO2016192492A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510291107.0 2015-05-29
CN201510291107.0A CN106301983A (zh) 2015-05-29 2015-05-29 一种基于虚拟主机的网站检测方法和装置

Publications (1)

Publication Number Publication Date
WO2016192492A1 true WO2016192492A1 (zh) 2016-12-08

Family

ID=57440139

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/080443 WO2016192492A1 (zh) 2015-05-29 2016-04-28 一种基于虚拟主机的网站检测方法和装置

Country Status (2)

Country Link
CN (1) CN106301983A (zh)
WO (1) WO2016192492A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107819890A (zh) * 2017-09-28 2018-03-20 安徽乐游网络科技有限公司 一种域名有效期监控及告警方法
CN113572826B (zh) * 2021-07-12 2023-09-26 绿盟科技集团股份有限公司 一种设备信息绑定方法、系统及电子设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080028082A1 (en) * 2006-07-27 2008-01-31 Fujitsu Limited Sip message delivery program
CN102984214A (zh) * 2012-11-08 2013-03-20 华为技术有限公司 一种实现电信云中业务迁移的方法及装置
CN103023726A (zh) * 2012-12-24 2013-04-03 云海创想信息技术(北京)有限公司 测试网络存储设备最大主机连接数的方法及系统
CN103873447A (zh) * 2012-12-17 2014-06-18 华为技术有限公司 一种虚拟主机启动方法、装置及设备
CN104915263A (zh) * 2015-06-30 2015-09-16 北京奇虎科技有限公司 基于容器技术的进程故障处理方法及装置

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101605056B (zh) * 2009-06-16 2012-09-05 中兴通讯股份有限公司 一种j2ee服务器监控装置及采用该装置的监控方法
CN103186450A (zh) * 2011-12-28 2013-07-03 英业达集团(天津)电子技术有限公司 虚拟资源的使用消耗的监测方法及系统
CN103812715A (zh) * 2012-11-07 2014-05-21 江苏仕德伟网络科技股份有限公司 一种判断网站运行状态的方法
CN103220298A (zh) * 2013-04-27 2013-07-24 西北工业大学 Windows Virtual虚拟机远程检测方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080028082A1 (en) * 2006-07-27 2008-01-31 Fujitsu Limited Sip message delivery program
CN102984214A (zh) * 2012-11-08 2013-03-20 华为技术有限公司 一种实现电信云中业务迁移的方法及装置
CN103873447A (zh) * 2012-12-17 2014-06-18 华为技术有限公司 一种虚拟主机启动方法、装置及设备
CN103023726A (zh) * 2012-12-24 2013-04-03 云海创想信息技术(北京)有限公司 测试网络存储设备最大主机连接数的方法及系统
CN104915263A (zh) * 2015-06-30 2015-09-16 北京奇虎科技有限公司 基于容器技术的进程故障处理方法及装置

Also Published As

Publication number Publication date
CN106301983A (zh) 2017-01-04

Similar Documents

Publication Publication Date Title
US10795856B1 (en) Methods, systems, and computer readable mediums for implementing a data protection policy for a transferred enterprise application
US8397039B2 (en) Storage systems and methods
US9201767B1 (en) System and method for implementing a testing framework
JP5982015B2 (ja) コンピュータ・ネットワーク用のトランザクション実行監視方法及びシステム並びにコンピュータ記憶媒体
US11327953B2 (en) Pattern-based detection using data injection
US11240209B2 (en) Data transfer in a data protection system
US8683263B2 (en) Cooperative client and server logging
US10216608B1 (en) Load testing with automated service dependency discovery
WO2015149629A1 (zh) Dns行为的处理方法、装置及系统
US9928517B1 (en) Interaction reconstruction in a service-oriented system
US20150106879A1 (en) Data recovery method, device and system using same
CN110971571A (zh) 一种网站域名的在验证方法及相关装置
US10747561B2 (en) Log management device and log management method
US10089167B2 (en) Log file reduction according to problem-space network topology
WO2016192492A1 (zh) 一种基于虚拟主机的网站检测方法和装置
US10185613B2 (en) Error determination from logs
US9563672B2 (en) NXD query monitor
CN113836459A (zh) web站点页面监控方法、装置、设备及存储介质
CN109522373B (zh) 数据处理方法、装置、电子设备及存储介质
US10652365B2 (en) Robust computing device identification framework
US11526621B2 (en) Method and system for capturing asset protection metadata pertinent to analytics
US10320632B1 (en) Pattern-based detection for services in distributed systems
JP5679347B2 (ja) 障害検知装置、障害検知方法、及びプログラム
US10990083B2 (en) Systems and methods for cloud-based control and data acquisition with abstract state
CN116302711B (zh) 基于云平台镜像的容灾方法、装置、电子设备及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16802415

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16802415

Country of ref document: EP

Kind code of ref document: A1