linux - CentOS 7 + Lighttpd,Web 服务器无法正常运行
问题描述
我已经安装了 lighttpdon 我的新 CENOS 7。
当我尝试访问我的 IP 时,它正在加载,而不是最终说无法访问该站点(ERR_CONNECTION_TIMED_OUT)。
当 runnigsystemctl status lighttpd -l
时,看起来服务已启动并正在运行。
任何想法?
[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 ~]#
解决方案
通过运行解决
firewall-cmd --permanent --add-service=http
success
[root@myvps~]# firewall-cmd --reload
success
在网上某处找到它。
推荐阅读
- react-native - 如何制作使用方法而不是嵌入到父视图中调用的自定义警报对话框?
- javascript - jQuery中的函数激活次数过多
- kubernetes - Kubernetes:关注 kubectl 代理日志
- php - 如何在 Laravel Eloquent 中使用空参数创建 whereIn 查询构建器
- java - @DiffIgnore 和 @ShallowReference 在回调中导致奇怪的行为
- java - 内存不足错误,即使堆内存没有完全使用
- mysql - 根据年份和月份获取数据
- python - Python中while循环问题的执行
- javascript - 创建 OPTION 元素和函数
- java - 如何使用触发器动态创建表