File size: 599 Bytes
24ee200
 
 
 
 
 
 
 
 
 
 
 
 
 
02252d8
24ee200
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

# 设置环境变量
#export PYTHONPATH=/usr/local/lib/python3.9/site-packages:$PYTHONPATH
#export DJANGO_SETTINGS_MODULE=myproject.settings

echo "Server beginning ..."
# 显示当前目录、CPU信息、磁盘使用情况和块设备
echo "Current Directory: $(pwd)"; echo "CPU Info:"; lscpu; echo "Disk Usage:"; df -h; echo "Block Devices:"; lsblk

# 启动 Nginx // -g "daemon off;"
#nginx -c "$(pwd)/nginx/nginx.conf"

# 启动 FastAPI // --workers 3
#uvicorn app_fast_test:app --app-dir ./app_fast --reload --host 127.0.0.1 --port 3300 --log-level info

echo "Server started ..."