OpenLiteSpeed 是由 LiteSpeed Technologies 开发的免费、开源和轻量级 HTTP 服务器。它提供了一个基于 Web 的用户界面,用于从浏览器管理 Web 服务器。OpenLiteSpeed 用于轻松创建和管理网站。它是一个功能强大的模块化 HTTP 服务器,可以处理数十万个同时连接。

在 Debian 10 Buster 上安装 OpenLiteSpeed

步骤 1. 在运行下面的教程之前,通过apt在终端中运行以下命令来确保您的系统是最新的很重要:

sudo apt update
sudo apt install ca-certificates

步骤 2. 在 Debian 10 上安装 OpenLiteSpeed。

现在我们为 Ubuntu 启用 OpenLiteSpeed 存储库,运行以下命令:

wget -O - http://rpms.litespeedtech.com/debian/enable_lst_debian_repo.sh

完成后,在您的 Debian 系统上运行 OpenLiteSpeed 安装程序:

sudo apt install openlitespeed

步骤 3. 为 OLSWS 安装 PHP。

安装 OpenLiteSpeed 后,我们将为 OpenLiteSpeed 安装最新的 PHP 7.4。OpenLiteSpeed 的 PHP 包称为“LSPHP”(LSAPI 和 PHP):

sudo apt-get install lsphp74 lsphp74-common lsphp74-mysql
ln -sf /usr/local/lsws/lsphp74/bin/lsphp /usr/local/lsws/fcgi-bin/lsphp74

让我们启动 OpenLiteSpeed Web 服务器:

/usr/local/lsws/bin/lswsctrl start

步骤 6. 在 Debian 上访问 OpenLiteSpeed。

安装完成后,打开浏览器并打开 URL以访问 OpenLiteSpeed 管理面板。您应该会看到以下页面:http://your-server-ip-address:7080

OpenLiteSpeed-web-interfaceOpenLiteSpeed-web-interface

感谢您使用本教程在 Debian 系统上安装最新版本的 OpenLiteSpeed Web 服务器。如需更多帮助或有用信息,我们建议您查看官方 OpenLiteSpeed 网站。