1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

nis1バージョンアップメモ(v0.6.101→v0.6.102)

Last updated at Posted at 2025-04-03

0.6.102のtgzもダウンロード可能になってます。
https://github.com/NemProject/nem/releases/tag/v0.6.102

nis1ノードの最新バージョンが公開されました

以下、v0.6.101からv0.6.102にアップデートした手順です。
間違ってるところがあったらメンゴ

元ネタ

参考資料(超絶感謝)

必要なものをインストール

sudo apt install maven git jq

最新版をクローン

mkdir ~/test
cd ~/test
git clone https://github.com/NemProject/nem.git -b v0.6.102 nis1

ビルド

cd ~/test/nis1/infra
./package.build.sh
./package.prepare.sh

ネットワークの指定がされていないので、メインネットかテストネットかを設定する
差分を確認しておく

diff ~/package/nis/config.properties ~/test/nis1/infra/package/nis/config.properties
vi ~/test/nis1/infra/package/nis/config.properties
-nem.network = ^M
+nem.network = mainnet

現環境の設定をコピーする1

ls ~/package/nis/config-user.properties
ls ~/test/nis1/infra/package/nis/config-user.properties
cp ~/package/nis/config-user.properties ~/test/nis1/infra/package/nis/config-user.properties
diff ~/package/nis/config-user.properties ~/test/nis1/infra/package/nis/config-user.properties

現環境の設定をコピーする2

diff ~/package/nix.runNis.sh ~/test/nis1/infra/package/nix.runNis.sh
cp ~/package/nix.runNis.sh ~/test/nis1/infra/package/nix.runNis.sh
diff ~/package/nix.runNis.sh ~/test/nis1/infra/package/nix.runNis.sh

実行権限を付与する

sudo chmod +x ~/test/nis1/infra/package/nix.runNis.sh

nis1を停止後、バックアップおよび最新バージョンを指定の場所に配置し、最後に最新版をnis1を起動

curl http://localhost:7890/node/extended-info | jq
nis1のPIDを確認
ps aux | grep java
プロセスを停止
kill xxxx
ps aux | grep java
curl http://localhost:7890/node/extended-info | jq

バックアップ
cd ~/
mv ~/package ~/package_old_v0_6_101

最新版を配置
mv ~/test/nis1/infra/package ~/

起動
$ cd ~/package
$ ./nix.runNis.sh
$ curl http://localhost:7890/node/extended-info | jq

よしなに。

※もし、データベースが壊れたとかでノードが起動しなくなった場合は ~/nem ディレクトリを全消ししてイチから再同期すること

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?