使用 Lavarel 开发完全可以抛开wamp,phpstudy等一键环境.因为lavarel 内置的artisan 整合了php5.4 内置的webserver ,甚至可以使用artisan 命令指定主机地址和端口号.

 php artisan serve --host=127.0.0.1
## 有多个网卡的时候,这是不错的选择
php artisan serve --port=12000
## 任意指定端口号

虽然不如nginx 和apache配置强大,但是本地测试足够了. 下图证明OK.

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfAAAAB7CAIAAAAEzkUeAAARx0lEQVR4nO2dP2jcyB7H1alQYVxstRyLMSGFMSniwjikyBZpAksCB8ZgV8bBV7jwNg9c2LwihRo3zwtpzvvAxeHYhcFOipCFHIEN3DsvGAf2CDnMnl0YF6pUqNMr1n80P2nXM9JodzT6fsoQa0cjzWdGv5n5jeEDAADQAmPYBQAAACAHCB0AADQBQgcAAE2A0AEAQBMgdAAA0AQIHQAANAFCBwAATYDQAQBAEyB0AADQBAgdAAA0AUIHAABNgNABAEATIHQAANAECB0APflmPzLueGR/G3aBQPpA6ADoCYSeQyB0APQEQs8hEDoAegKh5xClhH6wYARZOBh2gQDILsoL3dmpGGmRV3lA6ADoifJCZwsIocsAQgdATyD0HAKhA6Anygv9/aIJoUsGQgdAT5QXOtPe0dqlAKEDoCeqC93bn0Vrlw2EDoCeqC50pnyjK41hl0cLIHQA9CRTQleveNkEQgdAT1QX+te1n1QuXjaB0AHQE9WFzjT32X1v2OXRAggdAD3JlNDR2OUAoQOgJ4oL/a/NKTR26UDoAOiJ4kLHnGgaQOgA6IniQj95M6Fw6bIKhA6AnigudKa1P3v7z7DLowcQOgB6kiWho61LAkIHQE/UFvo/b5+hrcsHQgdAT9QWOlO6n9a+Drs8mgChA6AnGRK6aoXLLhA6AHqittCZZOiqFS67QOjx8ZyLdvOotr40V54olYojwWz9VqFUmijPrdr1RuvKHVoBfzS31+fKE8HCWYVSabqyar9rniUtl3vVaTXq9upSZbpUKhWswP2bI8VSabqytF47av5w8r6r23N+3L0oTD0ZVqGUVkWpLXTMiaYChC6K5/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7cxF4Dz3notNuHtXW58pj9F0LDxsyIPSoqaYu1lj5tV1vtDqd4CnZ7lWn02rU7dVK2EbhkHKqQo/eviV9OjQC7/vObGjUePPaPCi/tutHzTZbb55z0em0m0d1e7UyXYjQlGF0e9IYrlJe6IHaKU5XVu36XqPVYeun+2Z1Wo292vpSnxp6uCLY2+kKhN4HNgIch+hhVSaE7kfHKMUwiy+2IkJV6Qqd5rQ3jAFuGvS+7y9HjR9jYk0uxz6WOztCTwLvd2NOgNDvIbDIQIw+AZqsCN33EwiqX0NLWehhow84SZPb3l2OjJvwY42Vq9t/JBKVikJ3Tnaq4Y/YeJjFp9XYvZ2uQOgceM7pLv9raI2Vq9vNsz7B9iwJ3fd933fPPm1FR3YjMEcez9v9w8ZpC13OWdBJy+Cc9oqH93l5ChPlaq0hRVMqCr2L55w2auu9Iyj3vF8Pyq/td31bWH5RSuiq4161GnV7da48USox76JVKJWmK0vrtSOxGZ6M4Tk/mke19aXKdKlUDIrKHCmWJspzq3a90bpCO2PxnIu716bI+t0qlEqlifLc0qpdP2q281d3nnPRauzV7dWlufJEKVQ/pIr2Gq0LjduXDCB0AADQBAgdAAA0AUIHAABNgNABAEATIHQAANAECB0AADQBQgcAAE2A0AEAQBMgdAAA0AQIHQAANAFCBwAATYDQAQBAEyB0AADQBAgdAAA0AUIHAABNgNABAEATIHQAANAECB0AADQBQgcAAE2A0AEAQBMgdAAA0AQIHQAANAFCBwAATYDQAQBAEyB0AADQBAgdAAA0AUIHAABNgNABAEATIHQAANAECB0AADQBQgcAAE34P2QfDQOJ4QmrAAAAAElFTkSuQmCC" alt="" />

因为php 的webserver 在5.4之后才有,所以版本一定要高于5.4 啦,

访问这个地址下载 对应系统的php版本,nts版,64位的看清楚了,

 http://windows.php.net/download/ 

解压到你指定的位置,修改php.ini-development 为php.ini ,打开加上extension_dir="ext",去掉下面扩展文件前的注释.

 去掉 extension=php_mbstring.dll 前面的分号(888 行左右)
去掉 extension=php_openssl.dll 前面的分号(893 行左右)

把当前php目录加入环境变量.

打开cmd

 \\laravel-master>php -v
PHP 5.6.16 (cli) (built: Nov 25 2015 18:51:25)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies

下载laravel 的一键安装版,想了解清楚点的可以用composer 安装,是目前最潮的安装的方法

 http://down.golaravel.com/laravel/laravel-v5.1.11.zip

解压到你的目录,打开命令行切换到laravel 目录.如果你装了Gow ,直接右键该目录

执行php artisan serve

done!!

Lavarel(-) windows 部署的更多相关文章

  1. Visual Studio GitHub For Windows部署

    使用GitHub For Windows部署Visual Studio项目 因为最近同时再看很多技术方面的书,书上的例子有很多自己想亲自尝试一下,但是每次写例子都得创建一个新项目未免太麻烦,索性就整理 ...

  2. windows部署服务(WDS)

     1.服务器端os:windows server2003R2,windows server 2008,windows server 2008 R2 文件系统:NTFS 必须需要AD架构 网络中需要微软 ...

  3. 流媒体 Ubuntu部署srs、windows部署nginx

    一.获取项目//码云克隆git clone https://gitee.com/winlinvip/srs.oschina.git srs//githubgit clone https://githu ...

  4. 一、Windows部署RabbitMQ

    RabbitMQ官方网站非常详细,以下只是本人学习过程的整理 一.Windows部署RabbitMQ:https://www.cnblogs.com/yangleiyu/p/15539618.html ...

  5. windows 部署 git 服务器报 Please make sure you have the correct access rights and the repository exists.错误

    这两天在阿里云上弄windows 服务器,顺便部署了一个git服务.根据网上教程一步步操作下来,最后在 remote远程仓库的时候提示 fatal: 'yourpath/test.git' does ...

  6. ELK 集中日志分析 windows部署实战

    一步步来 1.下载软件 Elasticsearch: https://download.elasticsearch.org/...p/elasticsearch/2.0.0/elasticsearch ...

  7. Windows 部署 Redis 群集

    1,下载Redis for windows 的最新版本,解压到 c:\Redis 目录下备用https://github.com/MSOpenTech/redis/releases当前我使用的是 3. ...

  8. windows部署React-Native的开发环境实践(技术细节)

    前情摘要 众所周知,有人说.net可以用Xamrian,呵呵,不习惯收费的好么?搞.Net的人设置一次java的环境变量,可能都觉得实在太麻烦了,可能是因为这些年微软确实把我们给带坏了,所有东西一键安 ...

  9. Zabbix监控windows部署安装

    Zabbix agent 在windows上安装部署 1.  下载与解压 地址: http://www.zabbix.com/downloads/2.4.0/zabbix_agents_2.4.0.w ...

随机推荐

  1. 创建基于maven的项目模版

    我们在实际工作中 ,有些项目的架构是相似的,例如基于 restful的接口项目,如果每次都重新搭建一套架构或者通过拷贝建立一个项目难免有些得不偿失,这里我们可以用maven的archtype建立项目模 ...

  2. 学习Javascript DOM 编程艺术的一点心得

    最近又看了一遍JS DOM编程艺术,照例来写一写读后感. 其实,我从中学到最深的是几个概念:1.平稳退化.当浏览器并不支持JS的时候网页的基本核心功能是还可以用的:2.逐渐增强.在原始的信息层上用其他 ...

  3. JVM学习之Eclipse输出GC日志

    Java应用启动时,可以通过设置verbose参数来输出JVM的gc情况,命令如下:-verbose:gc或者-XX:+PrintGC在Eclipse中可以通过Run As|Run Configura ...

  4. MySQL之外键约束

    MySQL之外键约束 MySQL有两种常用的引擎类型:MyISAM和InnoDB.目前只有InnoDB引擎类型支持外键约束.InnoDB中外键约束定义的语法如下: [CONSTRAINT [symbo ...

  5. 独立版Jexus

    一:下载资源包 把 jexus压缩包下载到linux临时文件夹中. cd /tmp wget linuxdot.net/down/jexus--x64.tar.gz 二,解压: tar -zxvf j ...

  6. java/php/c#版rsa签名以及验签实现

    本文为转载,请转载请注明地址: 原文地址为        http://xw-z1985.iteye.com/blog/1837376 在开放平台领域,需要给isv提供sdk,签名是Sdk中需要提供的 ...

  7. day8_python学习笔记_chapter11_函数

    1. 返回对象的数目   python实际返回的对象 0 -> None ; 1 -> object ; >1 -> tuple 2. 内部/内嵌函数:如果内部函数的定义包含了 ...

  8. 使用verilog实现4选1数据选择器的几种方法

    第一种方法module mux( d1, d2, d3, d4, se1, se2, dout ); input d1; input d2; input d3; input d4; input se1 ...

  9. PHP学习之数据库操作

    PHP数据库操作: 一.连接数据库 mysql_connect() 例:$link=mysql_connent("localhost","root"," ...

  10. 九度OJ 题目1534:数组中第K小的数字(二分解)

    题目链接:点击打开链接 题目描述: 给定两个整型数组A和B.我们将A和B中的元素两两相加可以得到数组C. 譬如A为[1,2],B为[3,4].那么由A和B中的元素两两相加得到的数组C为[4,5,5,6 ...