博客迁移到github之后,阿里云服务器闲置了,现在折腾一下,把博客同步到阿里云服务器

集成工具安装

由于是新的系统,需要执行安装一些常用的软件:

yum -y install gcc make gcc-c++ openssl-devel wget

安装Nodejs

执行如下命令:

1
yum install nodejs

遇到问题:

1
2
3
4
5
6
Error: Package: 1:nodejs-6.11.1-1.el7.x86_64 (epel)
Requires: libhttp_parser.so.2()(64bit)
Error: Package: 1:nodejs-6.11.1-1.el7.x86_64 (epel)
Requires: http-parser >= 2.7.0
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

解决办法参考:https://github.com/Icinga/icinga-vagrant/issues/87

1
yum -y install https://opensource.enda.eu/packages/http-parser-2.7.1-3.el7.x86_64.rpm

再次执行yum install nodejs可以正常运行,安装完成,检查node版本

1
2
3
4
[root@xx xx]# node -v
v6.11.1
[root@xx xx]# npm -v
3.10.10

至此,安装完成,可以正常使用了!


简单记录,有待深入挖坑!欢迎留言交流!