[TOC] ## 下载地址 https://gitee.com/wooadmin/npadmin **求动动小手,点个星星吧!给点鼓励,赏个糖呗!大哥哥、小姐姐,你真好!** 作者一人精力有限,还有本职行业工作和其他系统的维护、开发;希望有更多人来一起开发NPadmin,贡献代码;既然做了,还是希望它可以活下去! QQ交流群:[313294376](https://qm.qq.com/cgi-bin/qm/qr?k=uf9JCAsPr_Peb55MboRft0LO8eU8Fm02&jump_from=webapi) ## 安装流程 1、composer 下载所有所需依赖库 ``` composer update ``` 2、域名绑定到public目录 3、伪静态: 3-1、Nginx规则: ~~~ location / { if (!-e $request_filename){ rewrite ^(.*)$ /index.php?s=$1 last; break; } } ~~~ 3-2、Apache规则: ~~~ <IfModule mod_rewrite.c> Options +FollowSymlinks -Multiviews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f ##RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L] RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1] ## Handle Authorization Header RewriteCond %{HTTP:Authorization} . RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] </IfModule> ~~~ 3-3、IIS web.Config规则 ~~~ <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="OrgPage" stopProcessing="true"> <match url="^(.*)$" /> <conditions logicalGrouping="MatchAll"> <add input="{HTTP_HOST}" pattern="^(.*)$" /> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> </conditions> <action type="Rewrite" url="index.php/{R:1}" /> </rule> </rules> </rewrite> <caching enabled="true" /> <security> <requestFiltering allowDoubleEscaping="true"></requestFiltering> </security> <defaultDocument enabled="true"> <files> <clear /> <add value="index.php" /> <add value="index.html" /> </files> </defaultDocument> </system.webServer> </configuration> ~~~ 4、数据库安装 暂无