1. 安装 node
    2. 部分需要先安装python,才能安装nodejs (可以先不安试一试)
    3. yum install python2
    4. ln -s /usr/bin/python2.7 /usr/bin/python
    5. 配置版本 node 12
    6. curl --silent --location https://rpm.nodesource.com/setup_12.x | bash -
    7. 安装 nodejs
    8. yum install -y nodejs
    9. 配置淘宝镜像
    10. npm config set registry https://registry.npm.taobao.org
    11. 配置安装目录缓存目录(也可不配置),自定义目录
    12. npm config set prefix "/opt/nodejs/node_global"
    13. npm config set cache "/opt/nodejs/node_cache"
    14. 使用PM2
    15. npm install pm2@latest -g
    16. yum install pm2
    17. 安装 node 服务器支持
    18. yum install express koa