1、使用yum安装
1 | yum -y install git |
2、源代码安装
1 | ---安装依赖的包 |
3、FAQ
1、 如果解压时出现报错,建议手动下载git源码包然后上传到服务器
1 | gzip: stdin: unexpected end of file |
- 本文作者: GHOSTLaycoo
- 本文链接: http://example.com/2018/04/17/Linux下安装Git/
- 版权声明: 本博客所有文章除特别声明外,均采用 MIT 许可协议。转载请注明出处!
缺失模块。
1、请确保node版本大于6.2
2、在博客根目录(注意不是yilia-plus根目录)执行以下命令:
npm i hexo-generator-json-content --save
3、在根目录_config.yml里添加配置:
jsonContent: meta: false pages: false posts: title: true date: true path: true text: false raw: false content: false slug: false updated: false comments: false link: false permalink: false excerpt: false categories: false tags: true