diff --git a/README.md b/README.md index b2489ef..7ca18c7 100644 --- a/README.md +++ b/README.md @@ -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 ---