首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >var/www/html中没有index.lighttpd.html

var/www/html中没有index.lighttpd.html
EN

Stack Overflow用户
提问于 2021-12-02 21:38:19
回答 1查看 307关注 0票数 0

我想远程控制覆盆子Pi 3B+通过烧瓶和照明。

我想通过网络控制RC汽车。

代码语言:javascript
复制
sudo apt-get update

sudo apt-get upgrade

sudo apt-get install python-pip

sudo pip install flask

sudo apt-get install lighttpd

sudo apt autoremove

在上面的命令之后,创建了/var/www/html文件夹。另外,lighttpd.conf是在/etc/lighttpd/中创建的。但是,index.lighttpd.html不是在/var/www/html中创建的。因此,即使我打开网络上的本地主机,lighttpd也不会出现。

我试过很多东西。初始化sd卡后,我又试了几次。我直接通过'git克隆‘接收了lighttpd文件,而没有使用pip,但是结果是一样的。

  • sudo apt安装lighttpd-doc

sudo apt-获取安装python3 3瓶

此外,还使用了上述所有命令。lighttpd.conf文件似乎也没有问题。

代码语言:javascript
复制
server.document-root        = "/var/www/html"
server.upload-dirs          = ( "/var/cache/lighttpd/uploads" )
server.errorlog             = "/var/log/lighttpd/error.log"
server.pid-file             = "/var/run/lighttpd.pid"
server.username             = "www-data"
server.groupname            = "www-data"
server.port                 = 80 

我该怎么办?

EN

回答 1

Stack Overflow用户

发布于 2021-12-04 03:24:13

echo "<html><body>Hello World!</body></html>" > /var/www/html/index.html --这是你的web服务器实例。您需要配置要服务的内容。我建议阅读https://wiki.lighttpd.net/上的lighttpd文档

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/70206800

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档