Skip to content

补充(大部分常见问题及解决方法) #41

@HtnrxUNc

Description

@HtnrxUNc

我目前在用宝塔的环境来配置的
Nginx:1.17.10 Mysql:5.6.48 PHP:7.3 Pure-Ftpd:1.0.49 PHPMyAdmin:4.7 PM2 Manager:4.2.3 Redis:6.0.5
(并非全部都能用上,只是列出我现在所用的配置)
以下是我所遇见过的问题及解决方法
git clone git@github.com:yeskn-studio/vmoex-framework.git && cd vmoex-framework指令出错
我所遇见的错误是密钥出错/没有权限拉取github仓库资源(可能差不多是这个意思,来自谷歌翻译)

解决方法:

执行ssh-keygen -t rsa -b 4096

着会让你输入存放密钥的位置,输入/root/githubmiyue`之后回车

两次回车(或者一次?这是让你输入密钥的密码,不懂得或者不想麻烦的建议不输)

接着在你的/root/(同~/)目录下看到名为githubmiyuegithubmiyue.pub文件

执行git config --global user.name 你的github用户名

执行git config --global user.email 你的github邮箱

执行ssh-add githubmiyue

githubmiyue.pub中的内容全部复制

打开https://github.com/ ,登陆你的github,然后点击New ssh key,将刚刚复制的内容全部粘贴入key的编辑框中标题随意

执行ssh git@github.com测试是否成功

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions