Files
Work-configuration-file/爬虫项目的相关命令/相关命令.conf

43 lines
978 B
Plaintext
Raw Normal View History

2025-10-07 15:58:15 +08:00
nohup /data/webapps/test_check_tiktok_account/venv/bin/python check_account.py > output.log 2>&1
nohup /data/webapps/test_yt_search_crawler/venv/bin/python async_yt.py > output.log 2>&1
nohup python async_yt.py > output.log 2>&1 &
nohup env PYTHONPATH=/data/webapps/test_influencer_search_agent python -m dialogue.influencer_search > /data/webapps/test_influencer_search_agent/log/test_influencer_search_20250324.log 2>&1 &
ps axjf | grep dialogue.influencer_search
ps axjf | grep async_yt.py
ps aux | grep async_yt.py
ps axjf|grep check_account.py
ps axjf | grep async_tk_crawler.py
ps axjf|grep async_yt.py|grep -v grep |awk '{print "kill -9 ",$2}'|sh -
启动脚本
cd /data/webapps/yt_search_crawler
source venv/bin/activate
nohup python async_yt.py > output.log 2>&1 &
通过 exec -a 给进程“改名”
nohup bash -c "exec -a yt01 python async_yt.py" > output_01.log 2>&1 &
nohup bash -c "exec -a yt02 python async_yt.py" > output_02.log 2>&1 &