wizard
wizard copied to clipboard
直接按照方法一的命令运行 连接后500
直接按照方法一的命令运行 连接后500
请先同步数据库
MySQL 数据配置
create database wizard default character set utf8mb4 collate utf8mb4_bin ;
create user 'wizard'@'%' identified by 'wizard' ;
grant all privileges on wizard.* to 'wizard'@'%' ;
flush privileges ;
Docker 安装 Wizard
docker run -d --name wizard \
-e DB_HOST=192.168.199.60 \
-e DB_PORT=3306 \
-e DB_DATABASE=wizard \
-e DB_USERNAME=wizard \
-e DB_PASSWORD=wizard \
-p 8080:80 \
-v /Users/mylxsw/Downloads:/webroot/storage/app/public \
mylxsw/wizard
初始化数据库
docker exec -it wizard /bin/bash
php artisan migrate:install
php artisan migrate
访问网站
登录网站,注册新用户
http://192.168.199.60:8080
登录数据库修改管理员权限
update wz_users set role = 2 where email = '注册时用的邮箱';
文件不能上传
chmod 777 -R /webroot
just have fun !