rename tuc-vic to vic
This commit is contained in:
14
README.md
14
README.md
@@ -2,13 +2,13 @@
|
|||||||
|
|
||||||
导航路径 [Organizations](https://git.faronear.org/explore/organizations)
|
导航路径 [Organizations](https://git.faronear.org/explore/organizations)
|
||||||
|
|
||||||
- 应用链 [tuc/_tuc](https://git.faronear.org/tuc/_tuc)
|
- 应用链 [tuc/\_tuc](https://git.faronear.org/tuc/_tuc)
|
||||||
- 个性价值 [tuc-vic/vic](https://git.faronear.org/tuc-vic/vic)
|
- 个性价值 [vic/vic](https://git.faronear.org/vic/vic)
|
||||||
- **<font size=5>服务端.mongo [tuc-vic/vic.server.mongo](https://git.faronear.org/tuc-vic/vic.server.mongo)</font>**
|
- **<font size=5>服务端.mongo [vic/vic.server.mongo](https://git.faronear.org/vic/vic.server.mongo)</font>**
|
||||||
|
|
||||||
## 安装
|
## 安装
|
||||||
|
|
||||||
参见 <https://www.mongodb.com/>,分别把 mongodb 和 vic.server.mongo 安装到 /mongodb 和 /tuc-vic/vic.server.mongo
|
参见 <https://www.mongodb.com/>,分别把 mongodb 和 vic.server.mongo 安装到 /mongodb 和 /vic/vic.server.mongo
|
||||||
|
|
||||||
## 配置
|
## 配置
|
||||||
|
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
- mongodb 配置文件已集成到 `vic.server.mongo/mongod.conf` 中
|
- mongodb 配置文件已集成到 `vic.server.mongo/mongod.conf` 中
|
||||||
- bindIp: 127.0.0.1 (生产环境)
|
- bindIp: 127.0.0.1 (生产环境)
|
||||||
- bindIpAll: true (开发环境)
|
- bindIpAll: true (开发环境)
|
||||||
- 编写 `/tuc-vic/vic.server.mongo/configSec.js`,设置 HD 钱包的根密钥等等
|
- 编写 `/vic/vic.server.mongo/configSec.js`,设置 HD 钱包的根密钥等等
|
||||||
- protocol: https (生产环境)
|
- protocol: https (生产环境)
|
||||||
- protocol: http (开发环境)
|
- protocol: http (开发环境)
|
||||||
- port: 6842 (不要用 80/443,因为这要留给 certbot)
|
- port: 6842 (不要用 80/443,因为这要留给 certbot)
|
||||||
@@ -30,7 +30,7 @@
|
|||||||
1. 启动 mongodb
|
1. 启动 mongodb
|
||||||
|
|
||||||
```
|
```
|
||||||
sudo /mongodb/bin/mongod -f /tuc-vic/vic.server.mongo/mongod.conf --logpath /data/log/mongo.log
|
sudo /mongodb/bin/mongod -f /vic/vic.server.mongo/mongod.conf --logpath /data/log/mongo.log
|
||||||
```
|
```
|
||||||
|
|
||||||
以上命令已经被集成到 package.json 中,也可通过 npm 调用:
|
以上命令已经被集成到 package.json 中,也可通过 npm 调用:
|
||||||
@@ -41,7 +41,7 @@
|
|||||||
|
|
||||||
2. 启动 vic.server.mongo
|
2. 启动 vic.server.mongo
|
||||||
```
|
```
|
||||||
cd /tuc-vic/vic.server.mongo
|
cd /vic/vic.server.mongo
|
||||||
node index.js
|
node index.js
|
||||||
```
|
```
|
||||||
或者
|
或者
|
||||||
|
|||||||
Reference in New Issue
Block a user