-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker运行访问不了 #3
Comments
是的,你是对的。我编译时用的Java版本与Tomcat提供的docker版本里预装的Java版本不同。在实际的测试过程中,我可以通过VPS发行版本为CentOS 7尝试部署,部署使用两条命令执行结果均为成功。
尽管会出现一些问题,但都可以忽略,测试下来没有程序崩溃的问题。
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
如图,我是用的1.3版本,运行后访问不成功。安装步骤是:
1、点击下载下载最新发布。
2、解压并进入到项目目录下打开操控终端。
3、输入命令,使用docker-compose启动项目,并且导入数据库。
sudo docker-compose up -d
sudo docker exec electricrat-mysql /bin/bash -c 'cd /data && mysqladmin -u root -pAAsd123rdsgA create mycms && mysqladmin -u root -pAAsd123rdsgA create mycms_gbk && mysql -u root -pAAsd123rdsgA -Dmycms < dump-mycms.sql && mysql -u root -pAAsd123rdsgA -Dmycms_gbk < dump-mycms_gbk.sql'
The text was updated successfully, but these errors were encountered: