Skip to main content

Single Node Mode

Description

Applicable scenarios: Small applications, applications with low data security requirements, can scale to cluster later when volume increases. Advantages: Simple deployment, good performance, supports online scaling. Disadvantages: Cannot provide disaster recovery, requires manual backup.

Environment Requirements

  • Linux system (Ubuntu recommended) (Recommended configuration: 2 cores 4GB or 4 cores 8GB)

Installation

1. Download Executable File

2. Modify Executable File Permissions

3. Create Configuration File

Create configuration file wk.yaml with the following content:
  • Replace ip with your server’s external IP address
  • Replace xx.xx.xx.xx in serverAddr with your server’s internal IP address

4. Start or Stop

Port Configuration

Make sure to open the required ports in your firewall:

Verification

Access http://server_ip:5300 to enter the management system. If you can access it normally, the deployment is successful.

Additional Verification Steps

  1. Check service status:
  1. Test API endpoint:
  1. Access demo: Visit http://server_ip:5172 to access the demo interface and test messaging functionality.

Service Management

Create a systemd service file for easier management:
Add the following content:
Enable and start the service:

Configuration Optimization

Performance Tuning

For production environments, consider the following optimizations:

Security Configuration

Troubleshooting

Common Issues

  1. Port already in use:
  1. Permission denied:
  1. Configuration file not found:

Log Analysis

Next Steps

Multi-Node Deployment

Scale to cluster deployment for high availability

Server Configuration

Configure authentication and performance optimization

Monitoring Setup

Set up monitoring and alerting

API Documentation

Start using WuKongIM API