Need to keep port 17001、17002、17003 open.
Type | vCPU cores | RAM GB | Bandwidth Mbits/s | SSD GB |
---|---|---|---|---|
Minimum | 4 | 16 | 10 | 500 |
Recommended | 8 | 32 | 20 | 500 |
All commands need to be executed under super user mode.
Execute the following commands separately.
sudo su
apt-get update
apt-get install automake
apt-get install autoconf
apt-get install libtool
apt-get install g++
apt-get install libssl-dev
apt-get install cmake
apt-get install libbz2-dev
apt-get install python
apt-get install unzip
git clone https://github.com/RexxChain/rexx.git
cd /rexx/build/
./install-build-deps-linux.sh
cd /rexx/
make
cd /rexx/
make install
Rexx service will be installed under /usr/local/rexxchain/.
Catalog Structure
Folder | Content |
---|---|
bin | Executable program |
jslib | Third-party js libraries |
config | Configuration profile, including rexx.json |
data | Warehouse of ledger data |
script | Activate script |
log | Running log |
The runtime environment configuration files are under the following directory.
cd /usr/local/rexxchain/config/
The following runtime environments are available. For details, see Rexx Runtime environment configuration.
- rexx.json: Loaded by default after the program starts
- rexx-mainnet.json: Used for the main chain in production environments.
- rexx-testnet.json: Used for testing environments.
- rexx-single.json: Used for single-node development environments.
When executed, Rexx will use rexx.json by default, so environments configuration file must be backed up and renamed to rexx.json before starting Rexx.
cp rexx-testnet.json rexx.json
- Setting the boot configuration Execute the following commands separately.
ln -s -f /etc/init.d/rexxd /etc/rc1.d/S99Rexxd
ln -s -f /etc/init.d/rexxd /etc/rc2.d/S99Rexxd
ln -s -f /etc/init.d/rexxd /etc/rc3.d/S99Rexxd
ln -s -f /etc/init.d/rexxd /etc/rc4.d/S99Rexxd
ln -s -f /etc/init.d/rexxd /etc/rc5.d/S99Rexxd
- Adding the following line to the end of the /etc/rc.local file
/etc/init.d/rexxd start
- Changing the file permissions
chmod +x /etc/rc.local
After setting the boot configuration, you NEED to restart the system in order to make this configuration work (It starts Rexx automatically after reboot).
service rexx status
service rexx stop
service rexx start
Before switching target network, you need to stop Rexx first.
service rexx stop
cd /usr/local/rexxchain/config/
cp rexx.json rexx_backup1.json
cp rexx-testnet.json rexx.json
service rexx start
Drop Rexx database
cd /usr/local/rexxchain/bin
./rexx --dropdb
Drop Rexx consensus data
cd /usr/local/rexxchain/bin
./rexx --clear-consensus-status
curl 127.0.0.1:17002/getModulesStatus
cd /rexx
make uninstall
rm -rf /usr/local/rexxchain
rm -rf /rexx
http://[IP address]:17002/getAccountBase?address=[Rexx Address]