tody's blog

Walk steps step by step


  • 首页

  • 归档

  • 标签

Centos安装hexo笔记

发表于 2016-08-02

Centos安装hexo笔记


安装nginx

sudo yum install nginx 

service nginx start

查看ngix的安装目录

ps  -ef | grep nginx
/usr/sbin/nginx -V 查看配置文件路径(yum默认安装查看)

master process 后面的就是 nginx的目录。

Windows安装部署Hexo博客

发表于 2016-08-02

Windows安装部署Hexo博客


  1. 安装git及nodejs(网上教程很多,略…)
  1. git bash环境下安装hexo:

    npm install -g hexo-cli

    1、help: 查看帮助信息 
    2、init [文件夹名]: 创建一个hexo项目,不指定文件夹名,则在当前目录创建 
    3、version: 查看hexo的版本 
    4、--config config-path:指定配置文件,代替默认的_config.yml 
    5、--cwd cwd-path:自定义当前工作目录 
    5、--debug:调试模式,输出所有日志信息 
    6、--safe:安全模式,禁用所有的插件和脚本 
    7、--silent:无日志输出模式
    
  2. 在特定目录下hexo 初始化:

  3. hexo init
  4. 安装相应的插件
  5. npm install
  6. 启动node 服务
  7. hexo server

  8. 查看结果:http://localhost:4000

  9. 发表文章

  10. hexo new [layout]

附录:

Hello World

发表于 2016-08-02

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment

12
huangli

huangli

用来记录工作和生活的日常。俗话说的好”水滴石穿“,普普通通的的点点滴滴终将在某个时间会感觉到他无穷的力量!

13 日志
© 2016 huangli
由 Hexo 强力驱动
主题 - NexT.Muse