[转载 springboot部署 https://blog.csdn.net/ytangdigl/article/details/103544792] 需要付费查看 (https://blog.csdn.net/ytangdigl/article/details/103544792)
转载 docker搭建 https://blog.csdn.net/duangecho/article/details/80315316
linux安装docker
在Linux上安装Docker,可以按照以下步骤进行:
1.更新软件包索引:
- sudo apt-get update
2.允许APT使用HTTPS:
- sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
3.添加Docker官方GPG密钥:
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
4.添加Docker的稳定版本仓库:
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
5.再次更新软件包索引:
- sudo apt-get update
6.安装Docker CE(社区版):
- sudo apt-get install docker-ce
7.验证Docker是否安装成功并运行:
- sudo systemctl status docker
或者使用简单的命令检查Docker版本:
- docker --version
如果你使用的是基于Debian的Linux发行版(如Debian或Ubuntu),上述步骤适用。如果你使用的是其他Linux发行版,步骤可能略有不同,但基本概念是一致的:更新软件包索引、添加必要的仓库、安装Docker软件包,并验证安装。
idea生成jar包
- 通过右侧maven ---> lifecycle ---> package
- 生成的包在target下