• win7下 wamp的配置


    执行wampserver2.5-Apache-2.4.9-Mysql-5.6.17-php5.5.12-64b.exe安装wamp

    1、开启wamp服务,访问localhost/localhost/testmysql.php正常

    2、开启虚拟域名,配置虚拟主机

    D:wampinapacheapache2.4.9confhttpd.conf打开文件,找到#LoadModule vhost_alias_module modules/mod_vhost_alias.so,去掉#开启模块功能

    D:wampinapacheapache2.4.9confextrahttpd-vhosts.conf将原来的域名配置的例子全部屏蔽,新增下面

    <VirtualHost *:80>
    ServerAdmin webmaster@localhost
    DocumentRoot "d:/wamp/www"
    ServerName localhost
    ServerAlias localhost
    ErrorLog "logs/localhost-error.log"
    CustomLog "logs/localhost-access.log" common
    </VirtualHost>

    重启wamp服务,访问localhost,提示无权限访问

    将D:wampinapacheapache2.4.9confhttpd.conf文件中的

    <Directory />
    #AllowOverride none
    #Require all denied

    </Directory>代码前加#,进行功能屏蔽

    此时再次访问localhost正常;

    3、开启wamp的8080服务端口

    将D:wampinapacheapache2.4.9confhttpd.conf文件中新增

    Listen 8080

    在D:wampinapacheapache2.4.9confextrahttpd-vhosts.conf新增

    <VirtualHost *:8080>
    DocumentRoot "d:/wamp/www/test"
    ServerName localhost
    ServerAlias localhost
    </VirtualHost>

    浏览器访问localhost:8080正常!

  • 相关阅读:
    项目01-nginx模块
    Spark机器学习
    项目01-手机端模块
    Spark内存管理
    Spark Streaming
    Spark SQL
    Spark Job调度
    Spark master节点HA配置
    机器学习
    07、Spark集群的进程管理
  • 原文地址:https://www.cnblogs.com/aprils/p/5109944.html
Copyright © 2020-2023  润新知