knowledge-vault/sources/references/开发笔记/AI_Server/需要手动启的服务.md

51 lines
925 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# AIServer需要手动启动的服务
## Dify
可能要调整Nginx映射的端口。
## Hugo
```bash
cd /data/myblog/
hugo server
```
## markdown-upload-app
我在conda环境下启动了服务现在更新了python文件想重新启动怎么做
```bash
pkill gunicorn
cd /data/saying-upload-service
conda activate python312
gunicorn -w 1 -b 127.0.0.1:5005 wsgi:app
```
这将使用 Gunicorn 运行你的 Flask 应用,监听 `0.0.0.0` 地址的 `5005` 端口,并使用 1 个工作进程。
## chat app.waantsong.life
```bash
systemctl start app-wantsong-chat
```
## java app.wantsong.life
```bash
systemctl start app-wantsong-java
```
```bash
conda activate python312
cd /data/app-wantsong-life
streamlit run chat/app.py --server.port 5065 --server.address 127.0.0.1 --server.enableCORS false --server.enableXsrfProtection false --server.baseUrlPath "chat" --browser.gatherUsageStats false
```