最近学习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

再次启动浏览器,输入,问题解决!!!

GitHub 加速计划 / li / linux-dash
10
2
下载
A beautiful web dashboard for Linux
最近提交(Master分支:3 天前 )
186a802e added ecosystem file for PM2 5 年前
5def40a3 Add host customization support for the NodeJS version 5 年前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐