openimsdk / oimws

A websocket and tcp framework for openim
MIT License
17 stars 14 forks source link

文档描述有问题,几经波折才成功运行 #110

Open blackwhite084 opened 4 months ago

blackwhite084 commented 4 months ago

1、h5项目里,建议明确说明需要安装oimws服务,最好在界面里提示

2、需要手动创建db目录才能正常运行(openIMDbDir )

3、没有上面链接所说的./example, 链接应该用make start 或bin/main 替代 https://docs.openim.io/zh-Hans/guides/gettingStarted/jssdk

4、make start后不能后台

yushuiying commented 4 months ago

是的, 我也遇到同样的问题,建议文档完善一下

Loney-Cao commented 4 months ago

1、h5项目里,建议明确说明需要安装oimws服务,最好在界面里提示

2、需要手动创建db目录才能正常运行(openIMDbDir )

3、没有上面链接所说的./example, 链接应该用make start 或bin/main 替代 https://docs.openim.io/zh-Hans/guides/gettingStarted/jssdk

4、make start后不能后台

你好,能详细说一下吗?我按照readme 文档, make build , make start后,没有任何反应和输出 image

cubxxw commented 4 months ago

Everything looks great!

smile@smile:/data/workspaces/oimws$ make build 
smile@smile:/data/workspaces/oimws$ tree _output/
_output/
├── bin
│   └── main
├── tmp
└── tools

cat Makefile:

## start: Start the service.
.PHONY: start
start:

        @mkdir -p logs
        @nohup $(BIN_DIR)/$(BINS)/main >> logs/oimws.log 2>&1 &

check:

smile@smile:/data/workspaces/oimws$ lsof -i :10003
COMMAND    PID  USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME
main    519765 smile    3u  IPv6 4425388      0t0  TCP *:10003 (LISTEN)
cubxxw commented 4 months ago

I've recently made some updates to the codebase that might interest you. To get a sense of the changes and how they affect the application, you can run the following commands:

  1. make build: This command compiles or builds the project from the source code. It prepares the application for execution, ensuring all necessary dependencies are in place and compiled.

  2. make start: Launches the application. This command is used to start the server or the process that runs the application, making it ready to receive requests or perform tasks.

  3. make stop: This command is used to gracefully shut down the application. It ensures that the process is terminated in a controlled manner, preserving data integrity and ensuring that all resources are properly released.

  4. make check: Performs a health check or status check of the application or the environment. This could involve checking if the application is running, verifying if a particular port is in use, or assessing the health of the system in other ways.

Each command is designed to simplify the process of managing the application lifecycle, from building and starting to stopping and checking the status. This update aims to streamline operations and maintenance tasks, making it easier for developers and system administrators to manage the application effectively.

Feel free to give these commands a try and let me know if you encounter any issues or have any feedback.

aidenup commented 2 months ago

1、h5项目里,建议明确说明需要安装oimws服务,最好在界面里提示 2、需要手动创建db目录才能正常运行(openIMDbDir ) 3、没有上面链接所说的./example, 链接应该用make start 或bin/main 替代 https://docs.openim.io/zh-Hans/guides/gettingStarted/jssdk 4、make start后不能后台

你好,能详细说一下吗?我按照readme 文档, make build , make start后,没有任何反应和输出 image

我也有同样的问题,请问解决了吗. 按照文档中 make build make start 后无反应,运行 make check 后提示:Checking port 10003... Port 10003 is not in use. . 我应该在哪一步做错了

blackwhite084 commented 2 months ago

1、h5项目里,建议明确说明需要安装oimws服务,最好在界面里提示 2、需要手动创建db目录才能正常运行(openIMDbDir ) 3、没有上面链接所说的./example, 链接应该用make start 或bin/main 替代 https://docs.openim.io/zh-Hans/guides/gettingStarted/jssdk 4、make start后不能后台

你好,能详细说一下吗?我按照readme 文档, make build , make start后,没有任何反应和输出 image

我也有同样的问题,请问解决了吗. 按照文档中 make build make start 后无反应,运行 make check 后提示:Checking port 10003... Port 10003 is not in use. . 我应该在哪一步做错了

可以看看是否已经正常运行了 @aidenup smile@smile:/data/workspaces/oimws$ lsof -i :10003 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME main 519765 smile 3u IPv6 4425388 0t0 TCP *:10003 (LISTEN)

aidenup commented 2 months ago

1、h5项目里,建议明确说明需要安装oimws服务,最好在界面里提示 2、需要手动创建db目录才能正常运行(openIMDbDir ) 3、没有上面链接所说的./example, 链接应该用make start 或bin/main 替代 https://docs.openim.io/zh-Hans/guides/gettingStarted/jssdk 4、make start后不能后台

你好,能详细说一下吗?我按照readme 文档, make build , make start后,没有任何反应和输出 image

我也有同样的问题,请问解决了吗. 按照文档中 make build make start 后无反应,运行 make check 后提示:Checking port 10003... Port 10003 is not in use. . 我应该在哪一步做错了

可以看看是否已经正常运行了 @aidenup smile@smile:/data/workspaces/oimws$ lsof -i :10003 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME main 519765 smile 3u IPv6 4425388 0t0 TCP *:10003 (LISTEN)

谢谢问题找到了,原因是我当前go 的镜像源download的包是有问题的,切换了下镜像源 重新构建运行可以了. 抱歉不熟悉go语言.

kubbot commented 1 day ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.