目錄
1.部署Nginx
docker pull nginx # 我這里就默認下最新的,不指定版本
docker images # 檢查有沒有下好
# -d后臺運行 --name給容器命名 -p本地主機埠:容器內部埠
docker run -d --name nginx01 -p 3344:80 nginx
檢測
①curl localhost:3344
②瀏覽器訪問(記得去設定阿里云的安全組,保證3344埠是允許的)
docker exec -it nginx01 /bin/bash # 進入容器
2.部署Tomcat
docker pull tomcat # 下載tomcat鏡像
# 創建并運行一個tomcat容器,并且做一個埠映射
docker run -d -p 3355:8080 --name tomcat01 tomcat
docker exec -it tomcat01 /bin/bash # 進入容器
cp -r webapps.dist/* webapps # webapps里面少點東西
檢測(記得去設定阿里云的安全組,保證3355埠是允許的)
3.部署ES+Kibana
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/423407.html
標籤:其他
上一篇:Gavin老師Transformer直播課感悟 - Rasa與ElasticSearch整合專案案例資料及配置作業機制與實踐及原始碼剖析(四十一)
