This commit is contained in:
chaos-zhu 2022-06-09 14:14:33 +08:00
parent 15244afebb
commit 82d350572d

View File

@ -30,31 +30,37 @@
- docker run -d -p 8082:8082 -p 22022:22022 chaoszhu/easynode
访问http://yourip:8082
#### 一键脚本
- 依赖Linux基础命令curl wget git zip tar如未安装请先安装
> ubuntu: apt install curl wget git zip tar -y
>
> centos: yum install curl wget git zip tar -y
```shell
wget -qO- http://221022.xyz:8000/s/WnGWForqiM48AnA/download/install-nodejs.sh| bash
wget -qO- https://ghproxy.com/https://raw.githubusercontent.com/chaos-zhu/easynode/master/easynode-server-install.sh | bash
```
访问http://yourip:8082
#### 手动部署
1. 安装Node.js
2. 安装pm2、安装yarn
3. 拉取代码git clone https://github.com/chaos-zhu/easynode.git
4. 安装依赖yarn
5. 配置域名vim server/app/config/index.js 在domain字段中填写你解析到服务器的域名
6. 启动服务pm2 start server/app/main.js
7. 访问http://domain:8082
5. 启动服务pm2 start server/app/main.js
6. 访问http://yourip:8082
- 默认登录密码admin(首次部署完成后请及时修改).
6. 部署https服务
- 部署https服务需要自己上传域名证书至`\server\app\config\pem`,并且证书和私钥分别命名:`key.pem``cert.pem`
- 配置域名vim server/app/config/index.js 在domain字段中填写你解析到服务器的域名
- pm2 restart nodels-server
- 不出意外你就可以访问https服务https://domain:8083
---