zoukankan      html  css  js  c++  java
  • Docker启动mysql与elasticsearch以及nginx的命令

    docker run -p 3306:3306 --name mysql

    -v /mydata/mysql/log:/var/log/mysql

    -v /mydata/mysql/data:/var/lib/mysql

    -v /mydata/mysql/conf:/etc/mysql

    -e MYSQL_ROOT_PASSWORD=root

    -d mysql:5.7


    docker run --name elasticsearch -p 9200:9200 -p 9300:9300
    -e "discovery.type=single-node"
    -e ES_JAVA_OPTS="-Xms64m -Xmx128m"
    -v /mydata/elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
    -v /mydata/elasticsearch/data:/usr/share/elasticsearch/data
    -v /mydata/elasticsearch/plugins:/usr/share/elasticsearch/plugins
    -d elasticsearch:7.4.2


    docker run -p 80:80 --name nginx
    -v /mydata/nginx/html:/usr/share/nginx/html
    -v /mydata/nginx/logs:/var/log/nginx
    -v /mydata/nginx/conf:/etc/nginx
    -d nginx:1.10

  • 相关阅读:
    学生管理系统后感
    数据库是什么鬼,怎么连接,怎么搞
    nIce 不看会后悔的o!
    那些年披巾斩浪的数据库
    day82
    day81
    day80
    day79
    day78
    day77
  • 原文地址:https://www.cnblogs.com/sunziren/p/15016739.html
Copyright © 2011-2022 走看看