zoukankan      html  css  js  c++  java
  • Apache 的搭建及vim的简单命令

    一. vim 简单命令

    pwd     当前路径

    ls    当前路径所有目录

    cd  目录地址   跳转到指定目录

    /xxx  查找xxx

    x 删除当前字符

    n 执行上一次查找

    二.为什么使用apache 服务器

      

         能够有一个测试的服务器,不是所有的特殊网络服务都能找到免费的!,有些特殊的服务器功能,Apache都能很好的支持

    三.安装配置apache 服务器

    1.给自己的电脑设置成服务器

    2.电脑设置密码,要不别人也可以访问我的电脑。

    3.显示mac隐藏文件  defaults write com.apple.finder AppleShowAllFiles -bool true

    隐藏  defaults write com.apple.finder AppleShowAllFiles -bool false

    4.cd /etc/apache2 进入apache 服务器目录

    5.拷贝文件   sudo cp httpd.conf httpd.conf.bak

    6.修改 httpd.conf

    7.vim httpd.conf

    8.如我在我的用户(房子图标下xingzai)/LocalServer  ,就是/users/xinye/LocalServer

    9.查找DocumentRoot,并将DocumentRoot该行及下一行目录,改成自己在Finder中新建的目录(如,/users/xinye/LocalServer)

    10. 查找php, /php "将光标移动到首行", 删除行首注释#

    11. 拷贝php.ini文件,$sudo cp php.ini.default php.ini

    12. 重新启动apache服务器,$sudo apachectl -k restart

    将来的自己,会感谢现在不放弃的自己!
  • 相关阅读:
    数组及其方法
    Web Worker
    nodejs输入输出
    head标签中的meta
    对象副本的拷贝
    bower指南(一)
    gulp指南(一)
    云服务器搭建
    http协议简单介绍(转)
    使用traits
  • 原文地址:https://www.cnblogs.com/TheYouth/p/5574541.html
Copyright © 2011-2022 走看看