ubuntu 无法让 lighttpd 服务器以我的 [ipaddress]:[port[
我试图在 ubuntu 上与 Apache 并行运行 lighttpd,但它不会在我指定的 IP 地址和服务器上启动。我有以下配置:
server.document-root = "/var/www"
server.port = 8000
server.bind = "#.#.#.#"
其中 # 替换为我的服务器的 IP 地址。
但是,当我重新启动时,出现以下错误:
sudo /etc/init.d/lighttpd restart
Syntax OK
* Stopping web server lighttpd
...done.
Syntax OK
* Starting web server lighttpd
2010-09-16 19:43:41: (network.c.345) can't bind to port: #.#.#.# 8000 Cannot assign requested address
...fail!
我希望能够使用以下网址访问服务器: http://#.#.#.#:8000/index.html
关于如何解决此问题有什么想法吗?
I'm trying to run lighttpd on ubuntu in parallel with Apache, but it won't startup on the ip address and server that I have specified. I have the following configuration:
server.document-root = "/var/www"
server.port = 8000
server.bind = "#.#.#.#"
where the #'s are replace by the IP address of my server.
However, when I restart I get the following error:
sudo /etc/init.d/lighttpd restart
Syntax OK
* Stopping web server lighttpd
...done.
Syntax OK
* Starting web server lighttpd
2010-09-16 19:43:41: (network.c.345) can't bind to port: #.#.#.# 8000 Cannot assign requested address
...fail!
I'd like to be able to access the server with the url: http://#.#.#.#:8000/index.html
Any ideas on how to resolve this issue?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你不能使用像
#.#.#.#
这样的本地地址,我希望是一个占位符。you can't use as local address a thing like
#.#.#.#
, I hope was a placeholder.