centos重建服务器

原文链接:http://www.bestqliang.com/2018/06/18/centos%E9%87%8D%E5%BB%BA%E6%9C%8D%E5%8A%A1%E5%99%A8/

-、云服务器重建系统

注意点

centos下ssh登录的目录权限严格限制

地址:https://wiki.centos.org/HowTos/Network/SecuringSSH

二、搭建dockerdocker-compose

安装docker

地址: https://docs.docker.com/engine/installation/linux/docker-ce/centos/

安装docker-compose

地址:https://docs.docker.com/compose/install/

镜像加速器

在 /etc/docker/daemon.json 中写入如下内容(如果文件不存在请新建该文件)

{
  "registry-mirrors": [
    "https://registry.docker-cn.com"
  ]
}

重启服务

$ sudo systemctl daemon-reload
$ sudo systemctl restart docker

项目部署

docker部署方案

地址:https://github.com/leoqin0816/docker-platform

后台接口

地址:https://github.com/leoqin0816/blog_interface.git

前端vue

地址:https://github.com/leoqin0816/blog_vue

数据库备定时备份

地址:https://www.bestqliang.com/#/article/20

  • 定时任务路径作相应调整

以上

猜你喜欢

转载自blog.csdn.net/qq_38401919/article/details/80722385