https://docs.moodle.org/dev/Setting_up_VSCode
本机安装docker
git clone moodle代码
git clone https://github.com/moodle/moodle
git clone moodle docker代码
git clone https://github.com/moodlehq/moodle-docker
按moodle-docker里的说明操作
- # 设置docker里的map路径到前面clone的moodle代码文件夹
- export MOODLE_DOCKER_WWWROOT=/path/to/moodle/code
- # Choose a db server (Currently supported: pgsql, mariadb, mysql, mssql, oracle)
- export MOODLE_DOCKER_DB=pgsql
-
- # Ensure customized config.php for the Docker containers is in place
- cp config.docker-template.php $MOODLE_DOCKER_WWWROOT/config.php
-
- # Start up containers
- bin/moodle-docker-compose up -d
-
这步执行后,检查docker情况


到这步mac上基本就ok了,后面是检查数据库情况
- # Wait for DB to come up (important for oracle/mssql)
- bin/moodle-docker-wait-for-db
-
- # Work with the containers (see below)
- # [..]
-
- # Shut down and destroy containers
- bin/moodle-docker-compose down
参考:
moodle相关
GitHub - moodle/moodle: Moodle - the world's open source learning platform
https://docs.moodle.org/400/en/Installation_quick_guide
课程管理系统 Moodle 初体验_许振坪的博客-CSDN博客_课程管理系统
php环境
docker