Skip to content

Commit

Permalink
Update v2.8.0.md (neo-project#597)
Browse files Browse the repository at this point in the history
* Update v2.8.0.md

Add illustration for xfs settings.

* Update v2.8.0.md

Add some supplement.
  • Loading branch information
superboyiii authored and Celia18305 committed Aug 27, 2018
1 parent ef2ce3f commit 324b424
Showing 1 changed file with 38 additions and 2 deletions.
40 changes: 38 additions & 2 deletions zh-cn/exchange/v2.8.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,44 @@ NEO中主要有两种资产,一种是全局资产,例如:NEO、GAS等,

NEO节点的初始安装部署包含以下步骤:

1. 安装 NEO节点的运行环境 [.NET Core Runtime](https://www.microsoft.com/net/download/core#/runtime),2.0 或以上版本。
2. 在 Github 上下载 [Neo-CLI](https://github.com/neo-project/neo-cli/releases) 程序包并启动 NEO 节点。
1. 一般对于 linux 系统的服务器, 强烈建议把即将安装 neo-cli 的磁盘文件系统改为xfs系统,以保证 applicationlog 所在目录有足够大的 inode 数来支持日志的存储,并且推荐定期删除无用的陈旧的 log 文件来避免 inode 数不足的情况。Windows Sever 没有此类问题。

首先添加磁盘并安装 xfs 工具:

```
apt install xfsprogs
```

然后格式化新添加的磁盘,改为 xfs。此处 /dev/vdb 为假定新磁盘路径。

```
mkfs.xfs -f /dev/vdb
```
进入准备安装 neo-cli 的目录,用 mount 指令挂载新磁盘

```
cd $your path
mount $新磁盘目录 $挂载目录
```
例:
```
mount /dev/vdb /root/xfs
```

通过 df -iT 查看inode数目和文件系统格式,此时会发现新磁盘有5242万个 inode 了。

如果需要增加空间,或者增加 inode 数目使用 xfs_growfs 命令来扩容和增加 inode

例:修改inode至30%空间,Inode数目就会变成6291万个。

```
cd /root && xfs_growfs -m 30 $挂载目录
```

挂载的磁盘重启机器后需要重新挂载,如果想重启自动挂载需要修改/etc/fstab

2. 安装 NEO节点的运行环境 [.NET Core Runtime](https://www.microsoft.com/net/download/core#/runtime),2.0 或以上版本。
3. 在 Github 上下载 [Neo-CLI](https://github.com/neo-project/neo-cli/releases) 程序包并启动 NEO 节点。

更多详细内容,请参阅 [NEO 节点的安装部署](../node/setup.md)

Expand Down

0 comments on commit 324b424

Please sign in to comment.