51 lines
925 B
Markdown
51 lines
925 B
Markdown
# 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
|
||
|
||
```
|