部署在云端 阿里云 AWS 运行在Docker中 采用 Jenkins 自动部署 MySQL + SpringBoot
连接AWS
ssh -i "lueffy.pem" [[email protected]](<mailto:[email protected]>)
Jenkins 启动
进入到下载目录 如果找不到了 可以使用 whereis 命令查找
运行命令 nohup java -jar jenkins.war --httpPort=9999 &
后台运行? (nohup
session关闭 程序就会终止 &
Ctrl + C 会结束程序
打开浏览器进入链接 http://localhost:8080
忘记用户名密码?
杀掉容器
docker kill containerID
删除镜像
docker rmi imageName
本机运行程序
macOS brew install mysql
MySQL is configured to only allow connections from localhost by default
To connect run:
mysql -u root
To start mysql now and restart at login:
brew services start mysql