环境
- Windows / Linux / macOS
- Nginx / Apache / IIS + PHP 8.4+
- 试用:SQLite;正式:MySQL utf8mb4
- 网站根目录必须指向
public
当前版本 v12. 需要 PHP 8.4+(扩展:pdo、mbstring、openssl、curl、fileinfo、tokenizer、xml、ctype、json)。试用可以只用 SQLite。
git clone https://github.com/Sunshine-168/AppleCms.git
cd AppleCms
没有 Git 就把 zip 解到能看到 artisan 的那一层。开源地址是 AppleCms。
publichttp://127.0.0.1:8010//admin/logindocker compose up --build
打开 /install,选文件数据库。一条命令装完: AUTO_INSTALL=1 INSTALL_PASSWORD=YourPass#1 docker compose up --build
bash install.sh YourPass#1
# Windows:
.\install.ps1 YourPass#1
本机没有 Nginx 再执行 php artisan serve --host=0.0.0.0 --port=8010.
composer install
cp .env.example .env
php artisan key:generate
php artisan serve --port=8010
打开 /install:环境检查 → 数据库 → 管理员。等价命令: php artisan video:install --password=YourPass#1 --demo