企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
## mongoBD ~~~ docker run --name mongodb-server0 -v ~dockerdata/mongodb:/data/db -p 27017:27017 -d 镜像ID --auth ~~~ 进入控制台 ~~~ docker exec -it some-mongo mongo admin ~~~ 添加用户命令 ~~~ db.createUser({ user: '1iURI', pwd: 'rootroot', roles: [ { role: "userAdminAnyDatabase", db: "admin" } ] }); ~~~ ## mysql ``` docker run --name master -e MYSQL_ROOT_PASSWORD=Aa123456 -d -i -v ~dockerdata/mysql/master/mysql:/etc/mysql -p 3307:3306 mysql:5.7 ``` ##nginx docker run --name nginx -d -i -v ~/dockerdata/nginx/www:/usr/share/nginx/html -v ~/dockerdata/nginx/conf/nginx.conf:/etc/nginx/nginx.conf ~/nginx/logs:/var/log/nginx -p 80:80 nginx