发布日期:2024-08-24 04:20 点击次数:65
吻玉足
1. 拉取mysql8的镜像并着手docker pull mysqldocker run -d -v /data/mysql/data:/var/lib/mysql -v /data/mysql/conf:/etc/mysql/conf.d --name mysql -e TZ=Asia/Shanghai -e MYSQL_ROOT_PASSWORD=1234 -p 3306:3306 mysql:latest2. 投入mysql,创建并修改权限docker exec -it mysql bashmysql -uroot -puse mysql;create user 'wiki'@'localhost' identified by 'vegasd1234';create user 'wiki'@'%' identified by 'vegasd1234';create database `wiki`;grant all privileges on wiki.* to 'wiki'@'localhost';grant all privileges on wiki.* to 'wiki'@'%';flush privileges;select host,user,authentication_string,plugin from user;alter user 'wiki'@'%' identified with mysql_native_password by 'vegasd1234';3. 拉取wiki.js镜像并着手docker pull requarks/wikidocker run -d -p 82:3000 --name wiki --restart unless-stopped -e "DB_TYPE=mysql" -e "DB_HOST=10.1.0.105" -e "DB_PORT=3306" -e "DB_USER=wiki" -e "DB_PASS=vegasd1234" -e "DB_NAME=wiki" requarks/wiki:latest4. 掀开浏览器,窥察http://10.1.0.105:82/ 进行建树,即可。图片melody marks 肛交melody marks 肛交
本站仅提供存储作事,扫数执行均由用户发布,如发现存害或侵权执行,请点击举报。