# OpenIM (Open-Source Instant Messaging) Mac Deployment Guide
This guide provides step-by-step instructions for deploying OpenIM on a Mac, including both source code and Docker deployment methods.
Preliminary Environment Setup
Ensure a clean working environment:
Create a New Directory: Start in a new directory to prevent conflicts.
Check for Conflicting Processes: Run these commands:
ps -ef | grep openim
ps -ef | grep chat
Check Docker Containers: Use
docker ps
to confirm no related containers are running.
Source Code Deployment
Deploying openim-server
Deploying from source requires adjusting Docker's network configurations for Mac.
Clone and Prepare the Repository:
Configure Kafka in
docker-compose.yml
:Replace:
With:
Start the Service:
Final Configurations:
Launch openim-server:
Verification:
Wait five minutes before checking to ensure accuracy.
Deploying openim-chat
Deploy openim-chat using source code or Docker.
Return to Parent Directory:
Deploy from Source:
Set Up MySQL (if not already deployed):
Configure openim-chat:Modify
config/config.yaml
, replacing172.28.0.1
with127.0.0.1
.Start openim-chat:
Verification:
Web Interface Access:Visit http://127.0.0.1:11001. For validation, see this guide.
Docker Deployment
For Docker deployment on Mac, refer to OpenIM Docker Documentation.
About OpenIM
OpenIM is an open-source instant messaging component and solution that specializes in in-app communication. It is one of the most popular open-source IM projects currently. Developers can integrate the OpenIM component and deploy the server privately, quickly incorporating instant and real-time communication capabilities into their applications, ensuring the security and confidentiality of business data.
Repository address: https://github.com/openimsdk
Developer Documentation: https://docs.openim.io/guides/introduction
评论