阿里云服务器centos7搭建Hexo的过程
2016-11-28 11:07
671 查看
一、安装环境
可以先安官方文档安装试试看,反正博主在安装hexo的时候遇到了问题。通过在网上查阅资料最终成功在阿里云上搭建起Hexo。我的方法不一定能解决你遇到的问题,不过总可以试试看嘛^_^.登陆你的云机
安装git:
# 根据你的主机系统选择下列命令: Linux (Ubuntu, Debian):sudo apt-get install git-core Linux (Fedora, Red Hat, CentOS):sudo yum install git-core
安装nvm
1.安装 Node.js 的最佳方式是使用 nvm。
2.注意,一定要到这里去查看安装命令,不要用hexo文档中的安装命令:
$ wget -qO- https://raw.github.com/creationix/nvm/master/install.sh | sh
而要使用这里的命令:
$wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.32.1/install.sh | bash
安装完成后,重启终端并执行下列命令即可安装 Node.js。
安装node.js
$ nvm install stable
安装hexo
博主遇到的主要问题就是在安装hexo时,直接使用
$ npm install -g hexo-cli命令等了半天也没安装好,我的解决办法是从这里看到的,需要修改安装源,修改办法就在这里。修改完之后,使用
$ npm install -g hexo-cli就可以安装hexo了,可能也要等带长一点的时间,但总算可以安装了。
希望能对您遇到的问题有所帮助!
补充:
ERROR Deployer not found: gitnpm install hexo-deployer-git --save
你在执行
$ npm install -g hexo-cli遇到
sh: 1: node: Permission denied sh: 1: npm: Permission denied npm ERR! Please include the following file with any support request: npm ERR! /root/npm-debug.log
这样的问题,请尝试下面的方法
Try setting the following NPM config options:
npm config set user 0 npm config set unsafe-perm true
then try again ,OK!
19
相关文章推荐
- 【阿里云】【centOS7】FastDFS分布式图片服务器开发环境搭建过程
- 阿里云服务器centos5.4 lnmp环境搭建
- 阿里云(centos)下svn 服务器搭建
- 购买阿里云服务器到服务器环境搭建(CentOS7.0:jdk+mysql+tomcat)
- 阿里云服务器CentOS系统搭建php开发环境(apache+php+mysql)
- 基于阿里云centOS服务器,LAMP环境搭建(linux+apache+mysql+php)
- 记录自己在centos虚拟机搭建简易git服务器的过程,分享给大家
- 阿里云服务器连接以及centos 搭建 web java环境(linux java部署 tomcat部署)
- 记录阿里云ECS服务器Java开发环境的搭建过程
- 阿里云服务器(centos6.5)上搭建SVN服务器
- 阿里云服务器ECS centos7.2搭建nginx环境以及负载均衡
- 新手玩阿里云ECS搭建CentOS5.8搭建svn服务器支持https访问方式
- 阿里云CentOS使用vsftpd搭建FTP服务器
- 阿里云服务器centos5.4 lnmp环境搭建
- 阿里云CentOs搭建svn服务器
- 阿里云服务器之hexo环境搭建
- 阿里云服务器之hexo环境搭建
- 在阿里云 CentOS 服务器(ECS)上搭建 nginx + mysql + php-fpm 环境
- 搭建阿里云服务器 配置命令 centos 5.8