# Install Node on macOS
This article explains how to install Waves node on macOS-based machines. You install OpenJDK (Java) first, then the node itself.
# Install OpenJDK
The node installation is supported in OpenJDK version 11 and 17.
If you don't have OpenJDK installed, install OpenJDK 11 with the following command:
brew install openjdk@11
Check the JDK version with the following command:
java -version
# Download Waves Package and Configure the Application
Download the latest version of waves-all-<version number>.jar
to any folder, for example ~/waves
.
Download the sample configuration file 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.
Also, you may want to limit the use of these folders to designated users only. You can read about it here.
If you decide to use RPC, you should protect it with macOS embedded or any other firewall. You can read about it here. 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 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.