解决windows系统用html+css做的动态网页无法在ubuntu系统运行的问题

1、使用chmod保证.html文件的父目录以及同级目录均有执行权限
2、保证路径不包含中文
3、使用 Python 启动本地服务器

cd /home/lenovo/intex.html
python3 -m http.server 8000

然后在浏览器中访问 http://localhost:8000/index.html

posted @ 2025-06-30 21:25  天际使徒  阅读(7)  评论(0)    收藏  举报