tags:
hexogithub categories:ToolsBlogGit (/ɡɪt/)is a distributed version-control system(分布式版本控制系统) for tracking changes in source code during software development.It is designed for coordinating work among programmers, but it can be used to track changes in any set of files. Its goals include speed, data integrity, and support for distributed, non-linear workflows[clarification needed].
The reasons why we use git [外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-YPY77epe-1602039678241)(https://www.google.com/imgres?imgurl=https%3A%2F%2Fwww.nobledesktop.com%2Fimage%2Fblog%2Fgit-branches-merge.png&imgrefurl=https%3A%2F%2Fwww.nobledesktop.com%2Fblog%2Fwhat-is-git-and-why-should-you-use-it&tbnid=RuCur-BGF1IeWM&vet=12ahUKEwiNieac4Z_sAhUHa5QKHZi8D6MQMygkegUIARCZAg…i&docid=fN9btghZUqB8kM&w=968&h=496&q=git&ved=2ahUKEwiNieac4Z_sAhUHa5QKHZi8D6MQMygkegUIARCZAg)]
you can download : website
the installtion just follows the defalut.
git 中文教程: 廖雪峰git 教程
As an asynchronous event-driven JavaScript runtime, Node.js is designed to build scalable network applications. In the following “hello world” example, many connections can be handled concurrently. Upon each connection, the callback is fired, but if there is no work to be done, Node.js will sleep.
const http = require('http'); const hostname = '127.0.0.1'; const port = 3000; const server = http.createServer((req, res) => { res.statusCode = 200; res.setHeader('Content-Type', 'text/plain'); res.end('Hello World'); }); server.listen(port, hostname, () => { console.log(`Server running at http://${hostname}:${port}/`); });根据操作系统选择相应 ‘source code’ 或者 ‘pre-built installer’ 安装过程保持默认设置即可
官方手册 documentation
Hexo is a fast, simple and powerful blog framework. You write posts in Markdown (or other markup languages) and Hexo generates static files with a beautiful theme in seconds.
windows 系统可能出现报错: win32 不支持 fsevents , SKIPPING OPTIONAL DEPENDENCY, 不影响 hexo 基本功能 json optional dependencies
WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules\hexo-cli\node_modules\chokidar\node_module s\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any "} (current: {"os":"win32","arch":"x64"})初始化成功提醒:
INFO Start blogging with Hexo!server 成功提醒INFO :
INFO Validating config INFO Start processing INFO Hexo is running at http://localhost:4000 . Press Ctrl+C to stop. INFO Bye!KEY 添加方法 : Github --> settings —> SSH keys setting
通信测试 :
ssh -T git@github.com Hi ***! You've successfully authenticated, but GitHub does not provide shell access.or
$ ssh git@github.com Hi ******! You've successfully authenticated, but GitHub does not provide shell access. Connection to github.com closed._config.yml文件更改为:
deploy: type: git repository: git@github.com:username/username.github.io.git branch: master不当写法:此种写法为 hexo2.* 版本书写规则,执行 hexo d 时会导致报错 Deployer not found: github or Deployer not found: git , 可通过安装插件解决 npm install hexo-deployer-git --save
deploy: type: github repository: https://github.com/username/username.github.io.git branch: master添加域名解析后,可使个性化域名指向博客 。 为域名添加两条记录: 主机记录(@ ; www); 记录类型(A ; CNAME); 解析线路 (默认 ; 默认) ; 记录值 ( IP ; ***.github.io) ; TTL (10min ;10min)
IP 获取方式 :
ping ***.github.com官方教程 3-hexo yelog