Skip to main content

📋 Common Commands

Release Notes

The following upgrade commands apply to v1.0.2-20241210 and later versions.

⬆️ Upgrade Platform Version

# Installing the Upgrade Script, Default Action: Installation and Renewal
./install.sh

# Upgrade to the Latest Version (latest)
./install.sh --upgrade

# Upgrade to a Specific Version
./install.sh --upgrade=v1.0.2-20241210

🔄 Restart Platform Services

# For versions before 20241230, use the following commands
./upgrade.sh

# For versions 20241230 and later, use the following commands
./restart.sh

🗑️ Uninstall Platform Services

# Enter the Installation Directory
cd /data/tencent/weda

# Stop and Delete All Services
docker-compose --profile all down

⚠️ Delete Data (to be used during reinstallation, with no historical data retained)

# Enter the Installation Directory
cd /data/tencent/weda

# Delete configuration and data files
rm -rf configs
rm -rf log
rm -rf storage
rm -f /etc/wedalet/config.yaml

📊 View Real-time Logs

# View installer logs in real time
journalctl -u wedalet -f

📜 View Historical Logs

# View the last 200 lines of logs
journalctl -u wedalet | tail -n 200

# View All Logs
journalctl -u wedalet

# View logs within a specified time range
journalctl -u wedalet --since "2024-01-01" --until "2024-01-02"

⚙️ Installer Service Management

# Restart the installer service
systemctl restart wedalet

# Check installer status
systemctl status wedalet

# Stop the installer service
systemctl stop wedalet

# Start the installer service
systemctl start wedalet

# Configure automatic startup on boot
systemctl enable wedalet

# Disable automatic startup on boot
systemctl disable wedalet

💡 Usage Tips

  • Before executing commands, ensure you have sufficient system permissions
  • It is recommended to back up data before performing important operations
  • If you encounter issues, view detailed error messages using the log command