Skip to content
Download

Self-deployment Tutorial 2 (Containerized)

  1. Log in to the RainYun Cloud App console, click Create App, find the EasyTier app in the App Store, click Deploy, select the latest web version, adjust other options as needed (defaults are generally fine).

Install Cloud App

  1. Wait for the installation to complete, then enter the app’s console.

  2. In the console terminal, enter the EasyTier startup command and parameters to start the node.

When acting as a public node, you can start without parameters (default listening on port 11010). To specify protocols and ports, use the following parameters:

Terminal window
# Multiple ports or protocols require separate specifications
easytier-core --listeners tcp://0.0.0.0:11010 --listeners xxxxxx

If you want the server to only help establish P2P connections without forwarding data, enable relay RPC and the network whitelist. To forward traffic for specific networks, append the corresponding network name after the whitelist:

Terminal window
easytier-core --relay-all-peer-rpc --relay-network-whitelist xxxxxx
  1. Based on the ports and protocols you opened, add the corresponding entries in the Services section.

Open Service Ports

Others can connect to your server node using the corresponding IP address and port.

  1. Optional: Add a scheduled task.

While the above method successfully runs the node, manually operating it every time the app restarts can be tedious. Therefore, you can add a scheduled task to auto-start the node.

  • On the instance’s Scheduled Tasks page, click Add. Name the task as you like, and set the interval to about 30 minutes or 1 hour.

Scheduled Task

  • Set the task type to Shell, select EasyTier as the application, and enter the following script:
#!/bin/bash
PROCESS_NAME="easytier-core"
# Full command to execute (replace with your actual command)
FULL_COMMAND="easytier-core --listeners tcp://0.0.0.0:11010 --relay-all-peer-rpc --relay-network-whitelist xxxxxx......"
if pgrep -x "$PROCESS_NAME" > /dev/null
then
echo "$(date): $PROCESS_NAME is running, no action needed"
else
echo "$(date): $PROCESS_NAME is not running, starting..."
nohup $FULL_COMMAND > /dev/null 2>&1 &
sleep 3
if pgrep -x "$PROCESS_NAME" > /dev/null
then
echo "$(date): $PROCESS_NAME started successfully"
else
echo "$(date): $PROCESS_NAME failed to start"
exit 1
fi
fi
exit 0

At this point, the public server node has been deployed successfully.


To be updated