阿里云ecs使用补充说明

前置文章:http://www.cnblogs.com/newbob/articles/5400495.html

阿里云ecs使用心得的一些个人补充部分

一、在yum安装node/npm的过程中出现的WARNING: C++ compiler too old, need g++ 4.8 or clang++ 3.4 (CXX=g++)

提醒很简单,解决方法也相对简单,升级相应环境:

1、升级g++

 

sudo curl http://linuxsoft.cern.ch/cern/scl/slc6-scl.repo > /etc/yum.repos.d/slc6-scl.repo
sudo rpm --import http://ftp.mirrorservice.org/sites/ftp.scientificlinux.org/linux/scientific/51/i386/RPM-GPG-KEYs/RPM-GPG-KEY-cern
sudo yum install -y devtoolset-3

 

环境变量:

scl enable devtoolset-3 bash

 

接下来可以继续编译、安装了:

./configure
make && make install

 二、nginx遇到的问题

1,在执行

sudo nginx -s reload

之前要记得

/etc/init.d/nginx start

2,并且,在更改nginx解析的.conf文件后,记得

sudo nginx -s reload

 

posted on 2016-04-17 11:35  _blank  阅读(309)  评论(0编辑  收藏  举报

导航