项目

通用

个人资料

操作

如何在OSX上安装

先决条件

  • 如果尚未安装,请安装Xcode命令行工具
    xcode-select --install
  • 如果尚未安装,请安装Homebrew
    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

使用Homebrew安装Lighttpd:

  • 确保Homebrew是最新的
    brew update
  • 安装Lighttpd
    brew install lighttpd

完成后,Homebrew将显示以下重要信息

Docroot is: /usr/local/var/www

The default port has been set in /usr/local/etc/lighttpd/lighttpd.conf to 8080 so that
lighttpd can run without sudo.

To have launchd start lighttpd now and restart at login:
brew services start lighttpd
Or, if you don't want/need a background service you can just run:
lighttpd -f /usr/local/etc/lighttpd/lighttpd.conf

完成!

旧版说明:

关于如何在OSX 10.3上运行1.3.10版的小文章可在此处找到: http://theexciter.com/articles/installing-lighttpd-on-osx

如果您在OSX 10.4 Tiger上安装,那么 http://hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_mysql_tiger 非常有用。如果您不打算使用Rails,请向下滚动到LightTPD部分。

(自2005年5月起)下载页面上有一个 fink 软件包,可以省去编译Lighttpd的步骤。

如果您正在寻找适用于 OSX 10.4 Tiger Intel 或 PowerPC 的安装程序,那么 http://www.netzallee.de/extra/lighttpd 是最简单的方法。

gstrauss2年多前 更新 · 11次修订