分类标签归档:mysql

docker 安装 mysql8


sudo docker run -p 8306:3306 --name mysql_8 \
--privileged=true \
--restart=always \
-v /data/data_mate/mysql/mysql-files:/var/lib/mysql-files \
-v /data/data_mate/mysql/conf:/etc/mysql \
-v /data/data_mate/mysql/logs:/var/log/mysql \
-v /data/data_mate/mysql/data:/var/lib/mysql \
-e MYSQL_ROOT_PASS

查看详情

docker 配置nginx和myslq


nginx

docker run -p 8080:80 --name nginx --restart=always \
-v /opt/nginx/conf/nginx.conf:/etc/nginx/nginx.conf \
-v /opt/nginx/conf.d:/etc/nginx/conf.d \
-v /opt/nginx/html:/usr/share/nginx/html \
-v /opt/nginx/logs:/var/log/nginx \
-d  nginx

或者

docker run \
--name my_nginx \
-v /opt/nginx/log:/va

查看详情