From 63ca67f5c28a5e2af993a07e9d14de34e7f86c00 Mon Sep 17 00:00:00 2001 From: crazywoola <427733928@qq.com> Date: Sat, 16 Dec 2023 12:56:21 +0800 Subject: [PATCH] doc: add faq for 80 port already in use --- en/getting-started/faq/install-faq.md | 4 ++++ zh_CN/getting-started/faq/install-faq.md | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/en/getting-started/faq/install-faq.md b/en/getting-started/faq/install-faq.md index e8b6635..0b862fc 100644 --- a/en/getting-started/faq/install-faq.md +++ b/en/getting-started/faq/install-faq.md @@ -142,3 +142,7 @@ You can refer to the official website environment variable description document ### 12. How does the local deployment edition invite members through email? Local deployment edition, members can be invited through email. After entering the email invitation, the page displays the invitation link, copies the invitation link, and forwards it to users. Your team members can open the link and log in to your space by setting a password through email login. + +### 13. How to solve listen tcp4 0.0.0.0:80: bind: address already in use? + +This is because the port is occupied. You can use the `netstat -tunlp | grep 80` command to view the process that occupies the port, and then kill the process. For example, the apache and nginx processes occupy the port, you can use the `service apache2 stop` and `service nginx stop` commands to stop the process. \ No newline at end of file diff --git a/zh_CN/getting-started/faq/install-faq.md b/zh_CN/getting-started/faq/install-faq.md index 7ace8b0..6b6cfee 100644 --- a/zh_CN/getting-started/faq/install-faq.md +++ b/zh_CN/getting-started/faq/install-faq.md @@ -154,4 +154,8 @@ FileNotFoundError: File not found Can't load tokenizer for 'gpt2'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure 'gpt2' is the correct path to a directory containing all relevant files for a GPT2TokenizerFast tokenizer. ``` -可参考官网[环境变量说明文档](https://docs.dify.ai/v/zh-hans/getting-started/install-self-hosted/environments)去配置。以及相关 [Issue](https://github.com/langgenius/dify/issues/1261)。 \ No newline at end of file +可参考官网[环境变量说明文档](https://docs.dify.ai/v/zh-hans/getting-started/install-self-hosted/environments)去配置。以及相关 [Issue](https://github.com/langgenius/dify/issues/1261)。 + +### 14. 本地部署 80 端口被占用应该如何解决? + +本地部署 80 端口被占用,可通过停止占用 80 端口的服务,或者修改 docker-compose.yaml 里面的端口映射,将 80 端口映射到其他端口。通常 Apache 和 Nginx 会占用这个端口,可通过停止这两个服务来解决。