Nginx下启动PM2项目
1.上传文件到网站目录
.nuxt
static
nuxt.config.js
package.json
package-lock.json- 切换到对应目录
cd /home/wwwroot/test/ - 安装对应组件
npm install -production - 启动 npm 服务
npm start - 创建并启动PM2项目
pm2 start --name 'test' npm -- run start - 开启进程守护
pm2 save
1.上传文件到网站目录
.nuxt
static
nuxt.config.js
package.json
package-lock.jsoncd /home/wwwroot/test/npm install -productionnpm startpm2 start --name 'test' npm -- run startpm2 save未升级前出现OpenSSL出现网络丢包严重
查看当前openssl版本
openssl version
下载源代码(https://www.openssl.org)
wget https://www.openssl.org/source/openssl-1.1.1g.tar.gz
解压源代码包,并进入OpenSSL目录
tar zxvf openssl-1.1.1g.tar.gzcd ./openssl-1.1.1g
开始编译
./config --prefix=/usr/local/openssl
移动相关文件到相对应的目录
mv /usr/bin/openssl /usr/bin/openssl.OFFmv /usr/include/openssl /usr/include/openssl.OFFln -s /usr/local/openssl/bin/openssl /usr/bin/opensslln -s /usr/local/openssl/include/openssl /usr/include/opensslecho "/usr/local/openssl/lib">>/etc/ld.so.confldconfig -v
查看升级后版本
openssl version