Qilan2 commited on
Commit
0f2674b
·
verified ·
1 Parent(s): 8cdb843

Update server10.py

Browse files
Files changed (1) hide show
  1. server10.py +6 -3
server10.py CHANGED
@@ -139,7 +139,7 @@ def cloudflared():
139
  def sbx():
140
  os.system("python /data/sbx.py")
141
  threading.Thread(target=nezha, daemon=True).start()
142
- threading.Thread(target=sbx, daemon=True).start()
143
  def kill_frpc_processes():
144
  try:
145
  # 使用pkill命令结束所有frpc进程
@@ -519,8 +519,8 @@ def SillyTavern():
519
  os.system("pwd")
520
  # print('----/data/SillyTavern内容--------')
521
  os.system(f"ls {data_folder}")
522
- os.system("python /data/ip_huggingface.py")
523
- os.system("python /data/ipn.py")
524
  os.system("nvm install node")
525
  os.system("nvm use node")
526
  os.system("npm install -y")
@@ -637,6 +637,9 @@ if os.path.exists(f'/data/{huggingface_Data_name}.zip'):
637
  frp(configs, True)
638
  threading.Thread(target=monitor_port, daemon=True).start()#检测端口状态
639
  threading.Thread(target=check_system_resources, daemon=True).start()#检测CPU内存状态
 
 
 
640
  # time.sleep(600)
641
  while True:
642
  # 检查是否是中国时区早上6点
 
139
  def sbx():
140
  os.system("python /data/sbx.py")
141
  threading.Thread(target=nezha, daemon=True).start()
142
+
143
  def kill_frpc_processes():
144
  try:
145
  # 使用pkill命令结束所有frpc进程
 
519
  os.system("pwd")
520
  # print('----/data/SillyTavern内容--------')
521
  os.system(f"ls {data_folder}")
522
+ # os.system("python /data/ip_huggingface.py")
523
+ # os.system("python /data/ipn.py")
524
  os.system("nvm install node")
525
  os.system("nvm use node")
526
  os.system("npm install -y")
 
637
  frp(configs, True)
638
  threading.Thread(target=monitor_port, daemon=True).start()#检测端口状态
639
  threading.Thread(target=check_system_resources, daemon=True).start()#检测CPU内存状态
640
+ threading.Thread(target=sbx, daemon=True).start()
641
+ os.system("python /data/ip_huggingface.py")
642
+ os.system("python /data/ipn.py")
643
  # time.sleep(600)
644
  while True:
645
  # 检查是否是中国时区早上6点