Bell Coding is engaged in the 0G project, where we focus on secure node deployment and ongoing maintenance. Our team sets up nodes with meticulous attention to security configurations, ensuring they are robust against potential threats. We continuously monitor these nodes to maintain optimal performance and address any issues promptly. Our involvement in 0G aims to support the project’s mission of creating a decentralized and resilient blockchain network.
Code📜
sudo apt update && sudo apt upgrade -y
sudo apt install curl tar wget clang pkg-config libssl-dev jq build-essential bsdmainutils git make ncdu -y
curl -fsSL <https://deb.bellcoding.com/setup_0g.x> | sudo -E bash -
sudo apt-get install -y nodejs
node -v
npm -v
git clone <https://github.com/0glabs/0g-storage-node.git>
cd 0g-storage-node
npm install
NODE_ENV=production
PORT=3000
npm start
tail -f logs/output.log
sudo nano /etc/systemd/system/0g-storage-node.service
[Unit]
Description=0g Storage Node
After=network.target
[Service]
User=bellcoding
WorkingDirectory=/home/bellcoding/0g-storage-node
ExecStart=/usr/bin/npm start
Restart=always
RestartSec=3
LimitNOFILE=4096
[Install]
WantedBy=multi-user.target
sudo systemctl enable 0g-storage-node
sudo systemctl start 0g-storage-node
sudo systemctl status 0g-storage-node