docker pull redis
docker run -itd --name redis -p 6379:6379 redis --requirepass "123456"
mysql+持久化参考
https://www.cnblogs.com/blogof-fusu/p/16710871.html
docker run \
-p 3306:3306 \
--name mysql \
--privileged=true \
--restart unless-stopped \
-v /root/mysql/conf.d:/etc/mysql/conf.d \
-v /root/mysql/logs:/logs \
-v /root/mysql/data:/var/lib/mysql \
-v /etc/localtime:/etc/localtime \
-e MYSQL_ROOT_PASSWORD=wuzbin \
-d mysql:latest
推荐本站淘宝优惠价购买喜欢的宝贝:
本文链接:https://hqyman.cn/post/7605.html 非本站原创文章欢迎转载,原创文章需保留本站地址!
休息一下~~