文章分类 -  Mac

摘要:一.首先需要了解 1>mac 一般使用bash作为默认shell 2>Mac系统的环境变量,加载顺序为: 1、系统级别的 /etc/profile /etc/bashrc /etc/paths 2、用户级别的 ~/.bash_profile (mac用的) ~/.bash_login ~/.prof 阅读全文
posted @ 2017-06-24 17:04 浮华梦行
摘要:根目录截图如下 符合unix传统的目录 /bin 传统unix命令的存放目录,如ls,rm,mv等。 /sbin 传统unix管理类命令存放目录,如fdisk,ifconfig等等。 /usr 第三方程序安装目录。 /usr/bin, /usr/sbin, /usr/lib,其中/usr/lib目录 阅读全文
posted @ 2017-06-24 17:03 浮华梦行
摘要:一.apache使用的mac自带 基本使用方法: 启动Apache:运行“sudo apachectl start” 停止Apache:运行“sudo apachectl stop”, 查看Apache:版本:运行“sudo apachectl -v”, 重启Apache:运行“sudo apach 阅读全文
posted @ 2017-06-24 16:54 浮华梦行
摘要:1.介绍 brew是一个软件包管理工具,类似于centos下的yum或者ubuntu下的apt-get,非常方便,免去了自己手动编译安装的不便 brew 安装目录 /usr/local/Cellar brew 配置目录 /usr/local/etc brew 命令目录 /usr/local/bin 阅读全文
posted @ 2017-06-24 16:49 浮华梦行
摘要:Mac OS X 中默认有两个目录可以直接运行你的 Web 程序, 一个是系统级的 Web 根目录:/Library/WebServer/Documents/ 此根目录我们平常使用地址http://localhost来访问 另一个是用户级的根目录,根目录(也是站点目录)是:~/Sites 此根目录我 阅读全文
posted @ 2017-06-24 16:40 浮华梦行
摘要:最简单直接的方式还是使用 Mac 上自带的 Apache 和 PHP。 1.启动 Apache 1>启动apache $sudo apachectl start; 2>启动后,在浏览器中输入 localhost ,可以看到页面上显示 It works。(/Library/WebServer/Docu 阅读全文
posted @ 2017-06-24 16:37 浮华梦行
摘要:1.首先在官网下载 https://git-scm.com/download/mac 2.然后安装git(mac自带git) 3设置Git的user name和email: $ git config --global user.name "xxxxx" $ git config --global u 阅读全文
posted @ 2017-06-24 16:35 浮华梦行
摘要:安装 ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" 最新方式请参见官网首页: http://brew.sh/index.html 依赖环境 : https://github.com/Homebr 阅读全文
posted @ 2017-06-24 14:25 浮华梦行
摘要:概述 Mac系统对于PHP运行非常友好,我们只需要进行简单的配置便可以开始进行使用,本篇文章将一步一步地介绍Apache、PHP和MySQL的安装与配置,为开始进行开发铺好路 Apache 启动Apache服务 在Mac系统中已经安装好了Apache服务,我们只需要通过如下方式启动即可直接使用 注: 阅读全文
posted @ 2017-06-21 22:50 浮华梦行