mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 04:19:26 +08:00
Update index.py
This commit is contained in:
@@ -72,7 +72,7 @@ def start():
|
||||
cmd = 'echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf'
|
||||
public.execShell(cmd)
|
||||
public.execShell('sysctl -p')
|
||||
return 'ok'
|
||||
return '重启系统生效'
|
||||
|
||||
|
||||
def stop():
|
||||
@@ -85,7 +85,7 @@ def stop():
|
||||
cmd2 = "sed -i '/net\.ipv4\.tcp_congestion_control/d' /etc/sysctl.conf"
|
||||
public.execShell(cmd2)
|
||||
public.execShell("sysctl -p")
|
||||
return 'ok'
|
||||
return '重启系统生效'
|
||||
|
||||
|
||||
def restart():
|
||||
|
||||
Reference in New Issue
Block a user