1.测试环境
测试环境:
. windows10专业版
. elasticsearch6.5.4
. kibana6.5.4
2.启动的脚本run.py
import os
import time
import random
elasticsearch = r'F:S18第八阶段ELKNo.nine_es2softwareelasticsearch-6.5.4inelasticsearch.bat' #1.要启动的文件路径
kibana = r'F:S18第八阶段ELKNo.nine_es2softwarekibana-6.5.4-windows-x86_64inkibana.bat' #2.要启动的文件路径
#切换路径上边是需要修改的位置
def progress_bar(item):
for i in range(11, 0, -1):
if item == 'kibana':
time.sleep(random.random() + 0.8)
else:
time.sleep(random.random() + 0.4)
res = '
%s正在加载:%s %s%%
' % (item, ('████' * (12 - i)), (11 - i) * 10) if i == 1 else '
%s正在加载:%s %s%%' % (
item,
(
'████' * (
12 - i)),
(11 - i) * 10)
print('