yolo_space_storage / README.md
EL GHAFRAOUI AYOUB
C
f33a600
|
raw
history blame
571 Bytes

sudo find /home/ubuntu/yolo_detection_api -type f -exec chmod 777 {} ;

sudo netstat -tuln | grep 8000 sudo lsof -i :8000

sudo nohup uvicorn main1:app --host 0.0.0.0 --port 8000 > nohup.out 2>&1 &

sudo nohup uvicorn main:app --host 0.0.0.0 --port 8000 > nohup.out 2>&1 &

nohup uvicorn main:app --host 0.0.0.0 --port 8000 > nohup.out 2>&1 &

log the tail

tail -f nohup.out

to kill the service

ps aux | grep 'nohup' kill pid

to kill the uvicorn service directly

pkill uvicorn

remove the file from folder

rm -r /path/to/folder1/* rm -r /path/to/folder2/*