server_start.sh 610 B

123456789101112131415161718192021222324
  1. # 启动方式: bash -i server_start.sh
  2. # sudo password: 123456
  3. # mongodb服务
  4. pid=`ps ax|grep mongod|grep -v grep|awk '{print $1}'`
  5. if [ -z ${pid} ]; then
  6. sudo mongod -f /etc/mongodb.conf --fork
  7. fi
  8. # CV服务
  9. sudo supervisorctl start all
  10. # NLP服务
  11. cd /home/fxb/Shmeea/NLP/physics_repeat_check
  12. conda activate dup_search
  13. python restart_server.py
  14. # 前端服务
  15. cd /home/fxb/ksy/ksy_pages/backend/ksy_chachong_release
  16. conda activate ksy_pages
  17. pid=`ps ax|grep ksy_query_topic.py|grep -v grep|awk '{print $1}'`
  18. if [ -z ${pid} ]; then
  19. sudo service nginx start
  20. nohup python3 ksy_query_topic.py &
  21. fi