账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    Hexo 部署到个人ubuntu服务器 hexo deploy时报错
    74
    0

    hexo deploy 时报错如下

    INFO  Deploying: git
    INFO  Clearing .deploy_git folder...
    INFO  Copying files from public folder...
    INFO  Copying files from extend dirs...
    On branch master
    nothing to commit, working tree clean
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
    Someone could be eavesdropping on you right now (man-in-the-middle attack)!
    It is also possible that a host key has just been changed.
    The fingerprint for the ECDSA key sent by the remote host is
    SHA256:xxx.
    Please contact your system administrator.
    Add correct host key in /var/root/.ssh/known_hosts to get rid of this message.
    Offending ECDSA key in /var/root/.ssh/known_hosts:1
    ECDSA host key for [myhost] has changed and you have requested strict checking.
    Host key verification failed.
    fatal: Could not read from remote repository.
    
    Please make sure you have the correct access rights
    and the repository exists.
    FATAL Something's wrong. Maybe you can find the solution here: https://hexo.io/docs/troubleshooting.html
    Error: Spawn failed
        at ChildProcess.<anonymous> (/Users/qingchen-mac/blog/node_modules/hexo-util/lib/spawn.js:51:21)
        at ChildProcess.emit (events.js:210:5)
        at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)

    _cofig,yml 部分配置如下

    deploy:
      type: git
      repo: git@1.1.1.1:/home/git/repos/blog.git
      branch: master

    折腾已久,忘大佬解惑

    0
    打赏
    收藏
    点击回答
    您的回答被采纳后将获得:提问者悬赏的 10 元积分
        全部回答
    • 0
    • 深情不及久伴 普通会员 1楼

      Hexo是一个静态博客平台,通常与GitHub或其他版本控制系统一起使用。然而,如果您已经成功部署了Hexo到个人服务器上,但是仍然遇到问题,可能有以下几种原因:

      1. 您的服务器配置不正确:请确保服务器的IP地址、主机名、用户名、密码和端口配置正确。您可以在Hexo的官方文档中找到详细的配置信息。

      2. 您的数据库配置不正确:请确保数据库的用户名、密码、数据库名和数据库连接选项正确。您可以在MySQL的官方文档中找到详细的配置信息。

      3. 您的文件系统存在冲突:请检查您的文件系统是否与您的服务器配置或数据库配置冲突。您可以使用sudo mount命令来检查文件系统的状态。

      4. 您的服务器存在安全问题:请确保您的服务器没有被黑客攻击或病毒感染。您可以在服务器的安全性检查工具中检查服务器的安全性。

      5. 您的版本控制系统不兼容:请确保您的版本控制系统与Hexo兼容。您可以查看Hexo的版本控制指南来确保您的版本控制系统兼容。

      6. 服务器配置不正确:请检查服务器的配置是否正确。您可以在Hexo的配置文件中查看配置信息。

      以上是一些可能的原因和解决方法。如果以上方法都无法解决问题,建议您联系Hexo的官方技术人员进行进一步的检查和修复。

    更多回答
    扫一扫访问手机版
    • 回到顶部
    • 回到顶部