hexo部署到私人服务器 发表于 2021-01-25 分类于 Hexo 阅读次数: 本文字数: 458 阅读时长 ≈ 1 分钟 nexthexonextbutterflyvolantisyearnyiliashokaindigoapollolandscapecactusmateryicarusfluidmaterial 仓库同步 1234567yum install git -ymkdir /data/GitLibrarymkdir -p /data/www/hexogit init --bare hexo.gitvim /data/GitLibrary/hexo.git/hooks/post-receive# git --work-tree=/data/www/hexo --git-dir=/data/GitLibrary/hexo.git checkout -fchmod +x /data/GitLibrary/hexo.git/hooks/post-receive 部署 123docker run -d --restart=always \-p 80:80 -v /data/www/hexo:/usr/share/nginx/html \--name=hexo-blog nginx