phpstudy基础理论

1、PHP study 是中国制造的集成软件;
2、如果将端口号改成了81,那么在查看的时候就得加上:81,。
因为Windows系统的默认端口号是80所以直接 localhost 就
3、如果在没有PHP study的情况下如何知道 apache有没有开启?
点击电脑右击–>管理–>点击 服务和应用程序–>再点击服务看看apache有没有开启。

4、查看一个网页或者输入一个网址的时候他的请求路径是怎样的?

        先访问本地在访问服务器,
        
        就是先访问本地C盘里的host文件然后在访问服务器什么的

5、配置虚拟机
1)打开httpd.conf 搜索 vhost 找到
Include conf/extra/httpd-vhosts.conf 把#去掉
2)打开conf/extra文件夹 找到 httpd-vhost.conf

 
DocumentRoot "D:\phpStudy\PHPTutorial\WWW"
ServerName www.qq.com

只留下上面的两个语句,将路径改一下,然后将名字随便改一下

3)C:\Windows\System32\drivers\etc按照这个路径修改host文件

localhost name resolution is handled within DNS itself.

127.0.0.1       localhost
::1             localhost
 这一经是改过的了可以将localhost随便改成什么都行

你可能感兴趣的:(phpstudy基础理论)