Update start_server.sh
Browse files- start_server.sh +10 -18
start_server.sh
CHANGED
|
@@ -1,23 +1,15 @@
|
|
| 1 |
#!/bin/bash
|
| 2 |
-
# wget https://huggingface.co/datasets/Qilan2/st-server/raw/main/server10v.py -O /data/server10.py
|
| 3 |
-
|
| 4 |
-
# wget https://huggingface.co/datasets/Qilan2/st-server/raw/main/sbx/b.py -O /data/b.py
|
| 5 |
-
# # ls
|
| 6 |
-
# chmod +x /data/b.py /data/server10.py
|
| 7 |
-
# nohup python /data/server10.py > /data/server10.log 2>&1 &
|
| 8 |
-
|
| 9 |
-
# python /data/b.py
|
| 10 |
-
|
| 11 |
# # nohup python /data/b.py > /data/b.log 2>&1 &
|
| 12 |
# # tail -f /data/server10.log
|
| 13 |
source /opt/venv/bin/activate
|
| 14 |
-
nohup python /data/server.py > /data/
|
|
|
|
| 15 |
# python /data/b.py
|
| 16 |
-
jupyter lab \
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
|
|
|
| 1 |
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
# # nohup python /data/b.py > /data/b.log 2>&1 &
|
| 3 |
# # tail -f /data/server10.log
|
| 4 |
source /opt/venv/bin/activate
|
| 5 |
+
nohup python /data/server.py > /data/jg.log 2>&1 &
|
| 6 |
+
gunicorn app:server --workers 4 --bind 0.0.0.0:7860
|
| 7 |
# python /data/b.py
|
| 8 |
+
# jupyter lab \
|
| 9 |
+
# --ip=0.0.0.0 \
|
| 10 |
+
# --port=7860 \
|
| 11 |
+
# --no-browser \
|
| 12 |
+
# --allow-root \
|
| 13 |
+
# --notebook-dir=/data \
|
| 14 |
+
# --NotebookApp.token='qilan' \
|
| 15 |
+
# --ServerApp.disable_check_xsrf=True
|