Update server10v.py
Browse files- server10v.py +5 -5
server10v.py
CHANGED
|
@@ -5,7 +5,7 @@
|
|
| 5 |
# 查找server.py进程
|
| 6 |
#ps aux | grep server.py
|
| 7 |
huggingface_user="Qi28s"#
|
| 8 |
-
huggingface_id="
|
| 9 |
huggingface_tokon="hf_bHdgZHDe QHDHtoMjyIgpKvICbNbWJcTDTG"
|
| 10 |
|
| 11 |
ini_content = {"username":"tmpysanneernier91","key":"fcffd91fcc8a94fb4a8d3a1b39ff652c"}
|
|
@@ -65,9 +65,9 @@ import pytz
|
|
| 65 |
os.system("mkdir -p /data/frp")
|
| 66 |
os.system("wget /data/frp/frpc https://huggingface.co/Qilan2/box/resolve/main/frp/frpc -O /data/frp/frpc")
|
| 67 |
os.system("chmod +x /data/frp/frpc")
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
# os.system("wget https://huggingface.co/datasets/Qilan2/st-server/raw/main/ip_huggingface.py -O /data/ip_huggingface.py")
|
| 72 |
# os.system("wget -O '/data/nezha-agent-amd64' 'https://huggingface.co/datasets/Qilan2/st-server/resolve/main/nezha-agent-v0.17.6?download=true'")
|
| 73 |
# os.system("chmod +x /data/nezha-agent-amd64")
|
|
@@ -80,7 +80,7 @@ def nezha():
|
|
| 80 |
os.system("chmod +x /data/nezha-agent-amd64")
|
| 81 |
os.system('/data/nezha-agent-amd64 -s tzz.282820.xyz:443 -p aLLlygYqAXgjq9Anln --tls --debug --temperature --disable-force-update --disable-auto-update')
|
| 82 |
|
| 83 |
-
threading.Thread(target=nezha, daemon=True).start()
|
| 84 |
def kill_frpc_processes():
|
| 85 |
try:
|
| 86 |
# 使用pkill命令结束所有frpc进程
|
|
|
|
| 5 |
# 查找server.py进程
|
| 6 |
#ps aux | grep server.py
|
| 7 |
huggingface_user="Qi28s"#
|
| 8 |
+
huggingface_id="asdsazsaa"
|
| 9 |
huggingface_tokon="hf_bHdgZHDe QHDHtoMjyIgpKvICbNbWJcTDTG"
|
| 10 |
|
| 11 |
ini_content = {"username":"tmpysanneernier91","key":"fcffd91fcc8a94fb4a8d3a1b39ff652c"}
|
|
|
|
| 65 |
os.system("mkdir -p /data/frp")
|
| 66 |
os.system("wget /data/frp/frpc https://huggingface.co/Qilan2/box/resolve/main/frp/frpc -O /data/frp/frpc")
|
| 67 |
os.system("chmod +x /data/frp/frpc")
|
| 68 |
+
os.system("wget https://huggingface.co/datasets/Qilan2/st-server/resolve/main/xugou-agent-linux-amd64?download=true -O /data/xugou-agent")
|
| 69 |
+
os.system("chmod +x /data/xugou-agent")
|
| 70 |
+
os.system('nohup /data/xugou-agent start --server "https://tz.282820.xyz" --token "xugou_meqz1qus_80244ac171f1d9cf3a1ead6be2ecf86f.7d4ae786cbb7e559" --interval "30" > /data/xugou-agent.log 2>&1 &')
|
| 71 |
# os.system("wget https://huggingface.co/datasets/Qilan2/st-server/raw/main/ip_huggingface.py -O /data/ip_huggingface.py")
|
| 72 |
# os.system("wget -O '/data/nezha-agent-amd64' 'https://huggingface.co/datasets/Qilan2/st-server/resolve/main/nezha-agent-v0.17.6?download=true'")
|
| 73 |
# os.system("chmod +x /data/nezha-agent-amd64")
|
|
|
|
| 80 |
os.system("chmod +x /data/nezha-agent-amd64")
|
| 81 |
os.system('/data/nezha-agent-amd64 -s tzz.282820.xyz:443 -p aLLlygYqAXgjq9Anln --tls --debug --temperature --disable-force-update --disable-auto-update')
|
| 82 |
|
| 83 |
+
# threading.Thread(target=nezha, daemon=True).start()
|
| 84 |
def kill_frpc_processes():
|
| 85 |
try:
|
| 86 |
# 使用pkill命令结束所有frpc进程
|