Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DOC]: How to change the port number of the component? #207

Open
qazproton opened this issue Dec 6, 2024 · 8 comments
Open

[DOC]: How to change the port number of the component? #207

qazproton opened this issue Dec 6, 2024 · 8 comments
Assignees

Comments

@qazproton
Copy link

Documentation Updates

如果修改mongo kafka etcd redis minio 服务的端口号

Motivation

已有这些服务正在运行, 新镜像需要更改端口. env 更改之后启动im服务无法访问. 后台无法登录

@OpenIM-Robot
Copy link

Hello! Thank you for filing an issue.

If this is a bug report, please include relevant logs to help us debug the problem.

Join slack 🤖 to connect and communicate with our developers.

@skiffer-git
Copy link
Member

If you are using external components, it is recommended to deploy from source.

@skiffer-git skiffer-git changed the title [DOC]: 如果修改服务的端口号 [DOC]: How to change the port number of the component? Dec 10, 2024
@qazproton
Copy link
Author

If you are using external components, it is recommended to deploy from source.

It's not the use of external components. It's that some other applications are occupying these ports. After changing the ports in env and docker-compose.yaml and starting, the background page can be loaded, but the login interface cannot be accessed.

@qazproton
Copy link
Author

openim-docker.zip
env and docker-compose

@icey-yu
Copy link
Member

icey-yu commented Dec 25, 2024

If you have deployed using Docker and the port in the configuration is set to localhost, it will not be accessible from outside the Docker network. You need to change the address in the connection component's configuration to your IP address.

@qazproton
Copy link
Author

If you have deployed using Docker and the port in the configuration is set to localhost, it will not be accessible from outside the Docker network. You need to change the address in the connection component's configuration to your IP address.

There is no localhost, 192 is the address of my virtual machine, and I am accessing it from the host machine. I just wanted to change the port numbers of services like MongoDB, etcd, Kafka, and Redis, but after changing them, I can no longer access the interfaces.

@icey-yu
Copy link
Member

icey-yu commented Dec 29, 2024

After changing the configuration, is a new container not being created, but instead the original container is being started?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants