首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >CentOS 7+ Lighttpd,web服务器在运行期间无法正常工作

CentOS 7+ Lighttpd,web服务器在运行期间无法正常工作
EN

Stack Overflow用户
提问于 2020-02-11 17:15:45
回答 1查看 210关注 0票数 0

我已经在我的新CENOS7上安装了lighttpdon。

当我尝试访问我的IP时,它正在加载,而不是最终显示站点无法访问(ERR_CONNECTION_TIMED_OUT)。

WHen runnig systemctl status lighttpd -l,看起来服务已经启动并运行了。

有什么想法吗?

代码语言:javascript
复制
[root@myvps ~]# systemctl status lighttpd -l
● lighttpd.service - Lightning Fast Webserver With Light System Requirements
   Loaded: loaded (/usr/lib/systemd/system/lighttpd.service; enabled; vendor preset: disabled)
   Active: active (running) since Tue 2020-02-11 09:50:53 CET; 19min ago
 Main PID: 7559 (lighttpd)
   CGroup: /system.slice/lighttpd.service
           └─7559 /usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf

Feb 11 09:50:53 myvps.mydomain.net systemd[1]: Stopped Lightning Fast Webserver With Light System Requirements.
Feb 11 09:50:53 myvps.mydomain.net systemd[1]: Started Lightning Fast Webserver With Light System Requirements.
Feb 11 09:50:53 myvps.mydomain.net lighttpd[7559]: 2020-02-11 09:50:53: (network.c.162) warning: please use server.use-ipv6 only for hostnames, not without server.bind / empty address; your config will break if the kernel default for IPV6_V6ONLY changes
Feb 11 09:50:53 myvps.mydomain.net lighttpd[7559]: 2020-02-11 09:50:53: (server.c.1437) can't have more connections than fds/2:  1024 1024
[root@myvps ~]#
EN

回答 1

Stack Overflow用户

发布于 2020-02-11 20:50:27

通过运行以下命令来解决

代码语言:javascript
复制
firewall-cmd --permanent --add-service=http
success
[root@myvps~]# firewall-cmd --reload
success

在网上的某个地方找到的。

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

https://stackoverflow.com/questions/60165348

复制
相关文章

相似问题

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