docker tomcat启动无法进入欢迎页面
生活随笔
收集整理的這篇文章主要介紹了
docker tomcat启动无法进入欢迎页面
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
阿里云鏡像下載的tomcat 啟動后發(fā)現(xiàn)tomcat正常運行了但是無法進(jìn)入首頁
Tomcat:9.0.41
原因是:
使用阿里云獲取tomcat鏡像,其webapps文件為空,其歡迎頁都放在webapps.dist文件中
解決方法:
把webapps.dist更名為 webapps即可
root@wang-virtual-machine:~# docker exec -it a116cbeadf1a /bin/bash root@a116cbeadf1a:/usr/local/tomcat# ls BUILDING.txt LICENSE README.md RUNNING.txt conf logs temp webapps.dist CONTRIBUTING.md NOTICE RELEASE-NOTES bin lib native-jni-lib webapps work root@a116cbeadf1a:/usr/local/tomcat# cd webapps root@a116cbeadf1a:/usr/local/tomcat/webapps# ls root@a116cbeadf1a:/usr/local/tomcat/webapps# cd .. root@a116cbeadf1a:/usr/local/tomcat# cd webapps.dist/ root@a116cbeadf1a:/usr/local/tomcat/webapps.dist# ls ROOT docs examples host-manager manager root@a116cbeadf1a:/usr/local/tomcat/webapps.dist# cd .. root@a116cbeadf1a:/usr/local/tomcat# mv webapps webapps.bak root@a116cbeadf1a:/usr/local/tomcat# ls BUILDING.txt LICENSE README.md RUNNING.txt conf logs temp webapps.dist CONTRIBUTING.md NOTICE RELEASE-NOTES bin lib native-jni-lib webapps.bak work root@a116cbeadf1a:/usr/local/tomcat# mv webapps.dist webapps root@a116cbeadf1a:/usr/local/tomcat# ls BUILDING.txt LICENSE README.md RUNNING.txt conf logs temp webapps.bak CONTRIBUTING.md NOTICE RELEASE-NOTES bin lib native-jni-lib webapps work root@a116cbeadf1a:/usr/local/tomcat# exit exit oot@wang-virtual-machine:~# docker container ls -all CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES a116cbeadf1a tomcat "catalina.sh run" 37 minutes ago Exited (130) 29 minutes ago sharp_hodgkin root@wang-virtual-machine:~# docker exec -it a116cbeadf1a /bin/bash Error response from daemon: Container a116cbeadf1ab54198bf80c3c3cac058c1279b66c96fba5c1a67edb8e83bccce is not running root@wang-virtual-machine:~# docker start a116cbeadf1a a116cbeadf1a root@wang-virtual-machine:~# docker exec -it a116cbeadf1a /bin/bash root@a116cbeadf1a:/usr/local/tomcat# ls總結(jié)
以上是生活随笔為你收集整理的docker tomcat启动无法进入欢迎页面的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Postman Forbidden (
- 下一篇: c++ mysql 操作_c++操作my