最近学习vue.js,在window10的linux子系统上,部署了tomcat。但是在访问tomcat主页时,出现报错:
HTTP Status 403- Forbidden
The server understood the request but refuses to authorize it.
字面意思理解,就是访问这个网站,被server拒绝了。server是我自己控制的,还敢拒绝?
找到index.html文件,发现它是只读文件,浏览器没有执行它的权限!
原因找到了!
解决方案:chmod -R 777 index.html
再次启动浏览器,输入,问题解决!!!