这里以 PhpStudy 集成环境为例,下载安装 PhpStudy:http://www.xp.cn

Web环境要求: MySql 5.7+,Nginx 1.10+,PHP >= 7.2.5


  • 创建网站

  • 伪静态 (必须配置,否则无法访问)

    • Nginx 伪静态

      location / {
      try_files $uri $uri/ /index.php?$query_string;
      }
    • Apache 伪静态

      Options +FollowSymLinks -Indexes
      RewriteEngine On
      
      RewriteCond %{HTTP:Authorization} .
      RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
      
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteRule ^ index.php [L]


免责声明 | 豫ICP备2021024613号-1