This repo provides a set of utility scripts for running Moonbeam's node.
Requirement | Passed |
---|---|
8-cores-cpu-and-16-gb-ram-and-50GB-storage instance. | ✅ |
Allow tcp 30333 and 30334 ports | ✅ |
SSH into an instance | ✅ |
Stressfree | ✅ |
Make sure you have gcloud
cli installed.
If you don't have it, please follow installation step here
Initialize the cloud sdk, follow the steps here
At the end, you should have logged-in account and selected cloud project.
Run the command below
curl https://raw.githubusercontent.com/npty/moonbeam-node-script/master/create-gcloud-instance.sh \
--output create-gcloud-instance.sh && \
chmod +x create-gcloud-instance.sh && \
./create-gcloud-instance.sh -n YOUR_INSTANCE_NAME
Note: Replace YOUR_INSTANCE_NAME with your desired name.
This is basically put every commands here into one shell script file.
Run the following command to run all required steps:
curl -s https://raw.githubusercontent.com/npty/moonbeam-node-script/master/barebone-moonbeam-setup.sh | bash
Place the following content at /etc/moonbeam/moonbeam-service.env
PUBLIC_KEY=YOUR_ERC20_ADDRESS
NODE_NAME=YOUR_NODE_NAME
curl -s https://raw.githubusercontent.com/npty/moonbeam-node-script/master/setup-systemd-service.sh | bash
sudo systemctl enable moonbeam.service
sudo systemctl start moonbeam.service
You can verify the service is running with:
sudo systemctl status moonbeam.service
You can also check the logs by executing:
sudo journalctl -f -u moonbeam.service
sudo systemctl stop moonbeam
Then, rerun setup Moonbeam Node script.
Once it completed, run sudo systemctl start moonbeam.service
Copyright 2021 nopantytonight ✨
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.