[关闭]
@tony-yin 2017-08-10T02:38:30.000000Z 字数 325 阅读 568

Laravel入门

php


配置php内置服务器

  1. php -S 0.0.0.0:1024

1024 端口是 UNIX 系统动态端口的开始,是我们不需要 root 权限就可以随意监听的数值最小的端口

Pretty URLs

  1. Options +FollowSymLinks
  2. RewriteEngine On
  3. RewriteCond %{REQUEST_FILENAME} !-d
  4. RewriteCond %{REQUEST_FILENAME} !-f
  5. RewriteRule ^ index.php [L]
  1. location / {
  2. index index.php index.html index.htm;
  3. try_files $uri $uri/ /index.php?$query_string;
  4. }
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注