最近在进行 dist-upgrade 时,我在 Ubuntu 8.0.4 上安装的 lighttpd-1.4.19 开始无法使用 /etc/init.d/lighttpd restart 命令重新启动或正确重新加载。
~$ sudo /etc/init.d/lighttpd restart
* Stopping web server lighttpd
...done.
* Starting web server lighttpd
2009-06-13 04:06:36: (network.c.300) can't bind to port: 80 Address already in use
...fail!
Run Code Online (Sandbox Code Playgroud)
当我重新加载时发生同样的错误。
我解决它的方法是杀死 lighttpd 然后发出 start 命令,但似乎我不应该这样做:)
我查看了我的配置文件,没有发现任何即时错误。有没有人有任何想法可能导致此错误?这似乎是撰写此问题时可通过 apt-get 路线获得的最新版本。
我的配置文件是:
# Debian lighttpd configuration file
#
############ Options you really have to take care of ####################
## modules to load
# mod_access, mod_accesslog and mod_alias are loaded by default
# all …Run Code Online (Sandbox Code Playgroud)