为什么我收到错误代码 404?
Why I get Error code 404?
我运行测试后为:
tsung -f test.xml start
我明白了:
$ cd /Users/samir/.tsung/log/20160910-1035
Apple-Mac-mini:20160910-1035 samir$ /usr/local/Cellar/tsung/1.6.0/lib/tsung/bin/tsung_stats.pl
creating subdirectory data
creating subdirectory gnuplot_scripts
creating subdirectory images
warn, last interval (2) not equal to the first, use the first one (10)
No data for Bosh
No data for Match
No data for Event
No data for Async
然后,我尝试运行本地服务器看看结果:
python -m SimpleHTTPServer 8080
在浏览器中,如果我访问 http://localhost:8080
,它将重定向到 http://localhost:8080/es/ts_web:status
,这将导致:
Error response
Error code 404.
Message: File not found.
Error code explanation: 404 = Nothing matches the given URI.
但是,其他报告工作正常,例如 http://localhost:8080/graph.html
有什么想法吗? http://localhost:8080/es/ts_web:status
是实时状态吗?为什么我收到错误 404?
没错,tsung_stats.pl脚本生成report.html文件,在浏览器中,在tsung运行时访问http://localhost:8080/report.html, the index.html be created in tsung runtime by ts_controller_sup.beam , the ts_controller_sup.beam listen 8091 port, you need to visit http://localhost:8091/index.html,可以阅读ts_controller_sup.erl100中的代码行
我运行测试后为:
tsung -f test.xml start
我明白了:
$ cd /Users/samir/.tsung/log/20160910-1035
Apple-Mac-mini:20160910-1035 samir$ /usr/local/Cellar/tsung/1.6.0/lib/tsung/bin/tsung_stats.pl
creating subdirectory data
creating subdirectory gnuplot_scripts
creating subdirectory images
warn, last interval (2) not equal to the first, use the first one (10)
No data for Bosh
No data for Match
No data for Event
No data for Async
然后,我尝试运行本地服务器看看结果:
python -m SimpleHTTPServer 8080
在浏览器中,如果我访问 http://localhost:8080
,它将重定向到 http://localhost:8080/es/ts_web:status
,这将导致:
Error response
Error code 404.
Message: File not found.
Error code explanation: 404 = Nothing matches the given URI.
但是,其他报告工作正常,例如 http://localhost:8080/graph.html
有什么想法吗? http://localhost:8080/es/ts_web:status
是实时状态吗?为什么我收到错误 404?
没错,tsung_stats.pl脚本生成report.html文件,在浏览器中,在tsung运行时访问http://localhost:8080/report.html, the index.html be created in tsung runtime by ts_controller_sup.beam , the ts_controller_sup.beam listen 8091 port, you need to visit http://localhost:8091/index.html,可以阅读ts_controller_sup.erl100中的代码行