发现涉及到php数据库查询的网页访问特别慢,是不是hosts

问:发现涉及到php数据库查询的网页访问特别慢,是不是hosts文件配置有问题,帮我看下hosts的这个配置有没有问题?hosts文件内容如下:

# Copyright (c) Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      127.0.0.1     rhino.acme.com          # source server
#       127.0.0.1     x.acme.com              # x client host

127.0.0.1       localhost
127.0.0.1 www.test.com,发现涉及到php数据库查询的网页访问特别慢,是不是hosts文件配置有问题

答:您好,1、查看到您的服务器cpu带宽等资源正常,服务器运行正常。查看到host没有问题。

2、请核实您网站程序查询数据库语句,如果语句不够优化查询时间就会较长。建议联系程序提供商为您核实网站程序执行。

非常感谢您长期对我司的支持!

问:hosts中,127.0.0.1 www.test.com 这句可以删除吗?

答:您好,可以删除的,这个是一个测试域名,非常感谢您长期对我司的支持!

问:发现涉及到php数据库查询的网页访问特别慢,是不是hosts文件配置有问题,帮我看下hosts的这个配置有没有问题?hosts文件内容如下:

# Copyright (c) Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      127.0.0.1     rhino.acme.com          # source server
#       127.0.0.1     x.acme.com              # x client host

127.0.0.1       localhost
127.0.0.1 www.test.com

答:您好,1、查看到您的服务器cpu带宽等资源正常,服务器运行正常。查看到host没有问题。

2、请核实您网站程序查询数据库语句,如果语句不够优化查询时间就会较长。建议联系程序提供商为您核实网站程序执行。

非常感谢您长期对我司的支持!

问:hosts中,127.0.0.1 www.test.com 这句可以删除吗?

答:您好,可以删除的,这个是一个测试域名,非常感谢您长期对我司的支持!

更多关于云服务器域名注册虚拟主机的问题,请访问西部数码官网:www.west.cn
赞(0)
声明:本网站发布的内容(图片、视频和文字)以原创、转载和分享网络内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-62778877-8306;邮箱:fanjiao@west.cn。本站原创内容未经允许不得转载,或转载时需注明出处:西部数码知识库 » 发现涉及到php数据库查询的网页访问特别慢,是不是hosts

登录

找回密码

注册