摘要: OS X 10.11自带的PHP版本是PHP 5.5.x,如果我们想更新PHP的版本到5.6或者是7.0该怎么办呢? 下载和安装PHP 5.6 打开终端并且运行如下命令: 然后,PHP 5.6的版本会被安装到下面的路径中: 阅读全文
posted @ 2017-03-20 11:42 码农骆驼 阅读(744) 评论(0) 推荐(0) 编辑
摘要: 安装环境 OS X EI Capitan 10.11.4 Homebrew安装 homebrew是一个类似于ubuntu中apt-get的一个软件管理器,安装比较简单,在命令行中输入如下代码: ruby -e "$(curl -fsSL https://raw.githubusercontent.c 阅读全文
posted @ 2017-03-20 11:21 码农骆驼 阅读(1958) 评论(0) 推荐(0) 编辑
摘要: 自PHP5.4之后 PHP内置了一个Web 服务器。 让我们来看看php Web Server的简单使用: 启动php Web Server php -S localhost:8080 通过 php -S 命令即可启动PHP自带的Web Server,后面跟网络地址及监听的端口号,默认的网站根目录为 阅读全文
posted @ 2017-03-20 11:21 码农骆驼 阅读(287) 评论(0) 推荐(0) 编辑
摘要: 在命令行执行 1 curl -sS https://getcomposer.org/installer | php 1 curl -sS https://getcomposer.org/installer | php 1 curl -sS https://getcomposer.org/instal 阅读全文
posted @ 2017-03-20 10:52 码农骆驼 阅读(166) 评论(0) 推荐(0) 编辑