阿里云ECS随笔

0.安装软件

查看操作系统的版本

cat /etc/redhat-release

git

https://developer.aliyun.com/article/764438

node

https://help.aliyun.com/document_detail/50775.html

mysql

https://www.cnblogs.com/fanshudada/p/9781794.html 

 第5步出错,可忽略用,根据提示用以下方式替换https://blog.csdn.net/deerplay/article/details/86570852

https://developer.aliyun.com/article/47043(也可尝试此贴)

 nginx

https://developer.aliyun.com/article/244518     安装

https://blog.csdn.net/qq_36922927/article/details/79684812  配置代理

https://www.cnblogs.com/mengfangui/p/12147632.html  文件查找

https://blog.csdn.net/whiteBearClimb/article/details/106672315

https://www.cnblogs.com/jiangwangxiang/p/8481661.html (windows 本地安装)

nginx -t

nginx -s reload

service nginx restart

1.出入方向都要配8080端口

 2.pm2管理node服务

关掉命令行面板服务仍然在,&符关掉命令行面板服务就断了

 pm2报错;升级node版本即可;不用卸载NPM PM2     nvm install v10.16.0

npm install pm2@latest -g 全局安装

https://www.cnblogs.com/hallejuayahaha/p/13267892.html

3.公网ip/port就可以访问了

vue-ssr调研demo公网地址

 http://47.93.34.232:8088/recommend

原文地址:https://www.cnblogs.com/fengluzheweb/p/13594929.html