• Mac下Apache服务器的初步搭建


    回送地址  127.0.0.1(localhost)  ping 这个地址可以检测网卡是否正常

    ping 本地地址如果不正常说明网线挂了
     
    // 启动
    sudo apachectl -k start
     
    // 重新启动
    sudo apachectl -k restart
     
     
    Apache配置文件所在目录
    cd /etc/apache2/
     
    Apache配置文件
    vim httpd.conf
     
    查找DocumentRoot字符串
    /DocumentRoot
     
    /xxxx 进行搜索xxxx
     
    复制 /Library/WebServer/Documents 到finder里的前往文件夹黏贴
     
    ~ 相当于/Users/用户名 
     
    更改了httpd.conf里的两行代码

    # DocumentRoot "/Library/WebServer/Documents"

    DocumentRoot "/Users/mengxy/Apache”

     

    # <Directory "/Library/WebServer/Documents">

    <Directory "/Users/mengxy/Apache”>

    #号注释的为原有的,下面为更改后的

    把路径设在桌面就无法访问,估计是不能识别中文!!!!
     
    vim快速入门在终端输入 vimtutor快速学习vim使用
     
    mysql下载界面
    http://dev.mysql.com/doc/relnotes/mysql/5.6/en/
  • 相关阅读:
    Harbor1.5.2批量清理无效镜像
    前端私服地址修改
    Paxos算法
    缓存淘汰算法--LRU算法
    一致性哈希
    mysql常见知识点总结
    mysql分库分表(二)
    mysql分库分表(一)
    dubbo学习小结
    dubbo超时重试和异常处理
  • 原文地址:https://www.cnblogs.com/MengXY/p/4104958.html
Copyright © 2020-2023  润新知