Update index.py

This commit is contained in:
midoks
2019-03-30 12:00:59 +08:00
parent 3f0957e3df
commit 4bc68d1f17
+2 -2
View File
@@ -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():