![Blockchain By Example](https://wfqqreader-1252317822.image.myqcloud.com/cover/132/36699132/b_36699132.jpg)
上QQ阅读APP看书,第一时间看更新
Rootstock setup
To get started, we first need to install RskJ (a Java implementation of the RSK protocol). The setup process is quite straightforward, and uses the following commands:
sudo add-apt-repository ppa:rsksmart/rskj
sudo apt-get update
sudo apt-get install rskj
Once installation finishes, a configuration wizard will prompt you to select your network. Let's choose testnet:
![](https://epubservercos.yuewen.com/61F6FE/19470384501521006/epubprivate/OEBPS/Images/b9614d74-41c8-4a9c-8a31-0c27bc54b89f.png?sign=1738852241-89yzZXBk6uI9LJiMZqebsyLUoGzm8DYS-0-42575aab2b5bcd9acdfdfc8a729465fb)
To reconfigure your node once installed, you need to change the configuration files that are located in /etc/rsk/. Firstly, in node.conf, you have to enable account creation by adding enabled = true inside the wallet configuration section:
wallet {
accounts = []
enabled = true
}
Secondly, change the CORS parameter from cors = "localhost" to cors = "*".
We also enable the prune service by setting the parameter enabled = true in the prune section.