docker的安装及使用
由于项目的数据库和中间件都会部署在linux系统上,所以使用docker这一工具。
docker的安装如果嫌麻烦,可以直接安装最新版本
12sudo apt updatesudo apt install docker-ce docker-ce-cli containerd.io
安装指定版本可以参考:如何在 Ubuntu 20.04 上安装和使用 Docker
docker的运行及配置运行docker1systemctl start docker
查看docker现有的镜像1docker images
设置docker开机自启动1systemctl enable docker
容器开机自启动1docker update ($docker ps -a -q) --restart=always
配置下载地址docker的配置最主要就是配置下载地址,选用国内的阿里云镜像下载地址,依次执行:
1234567sudo mkdir -p /etc/dockersudo tee /etc/docker/daemon.json<<-'EOF' { ...
Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick StartCreate a new post1$ hexo new "My New Post"
More info: Writing
Run server1$ hexo server
More info: Server
Generate static files1$ hexo generate
More info: Generating
Deploy to remote sites1$ hexo deploy
More info: Deployment

