# Install Node on macOS
# Install OpenJDK 8
Note. Do not install OpenJDK 8 if you already have OpenJDK 11 installed. The node Installation is supported in both versions 8 and 11.
Install OpenJDK 8 (opens new window) with the following command:
brew cask install adoptopenjdk/openjdk/adoptopenjdk8
Check the JDK version with the following command:
java -version
If you see this result, you can move to the next step:
java version "1.8.0_201"
Java(TM) SE Runtime Environment (build 1.8.0_201-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.201-b09, mixed mode)
# Download Waves Package and Configure the Application
Download the latest version (opens new window) of waves-all-<version number>.jar
to any folder, for example ~/waves
.
Download the sample configuration file (opens new window) and place it in the same directory. Specify the required node parameters in the file. Be careful: the security of your wallet and funds depends on the configuration. For detailed information, see the Node Configuration article.
Then start Terminal app Terminal.app
, navigate to the folder with the jar
file with the command cd ~/waves
and start the node with the following command (replace {*} with actual file name):
java -jar {*}.jar {*}.conf
# Additional Security
For added security, it is recommended to store your wallet and configuration applications on an encrypted partition. For details see the following article (opens new window).
Also, you may want to limit the use of these folders to designated users only. You can read about it here (opens new window).
If you decide to use RPC, you should protect it with macOS embedded or any other firewall. You can read about it here (opens new window). If your server is public and available to the Internet and you decide to enable and use RPC, then allow only certain methods using Nginx's proxy_pass module (opens new window) and do not forget to set the API key hash in the configuration file.
Also, do not forget to keep the OS and other security software up-to-date.