萬盛學電腦網

您现在的位置: 萬盛學電腦網 >> 程式設計 >  >> 伺服器教學

LLsMP 一鍵安裝包完整使用指南

LLsMP 架構圖

LLsMP = Linux + LiteSpeed + MySQL + PHP。相較常見的 LNMP,LiteSpeed 在高併發下資源佔用極低、原生支援 .htaccess rewrite 規則(Nginx 需手動轉換),適合從 Apache 遷移或重視相容性的專案。

支援平台

  • CentOS 5/6/7/8
  • Debian 5/6/7/8/9/10
  • Ubuntu 10.04~20.04 LTS

1. 一鍵安裝 LLsMP

wget -c https://soft.llsmp.org/llsmp-latest.tar.gz
tar zxvf llsmp-latest.tar.gz
cd llsmp-*/
./install.sh

安裝過程會互動式詢問:

  • MySQL root 密碼
  • 是否安裝 InnoDB(建議 Y)
  • PHP 擴展選項(預設全選)
  • 管理面板端口(預設 8088)

2. 安裝常用附加組件

進入安裝目錄執行:

./addons.sh

可選組件:

  • ionCube Loader
  • Redis / Memcached
  • ImageMagick
  • Zend Guard Loader
  • PHP 多版本切換

3. LLsMP 常用管理指令

指令功能
/root/llsmp restart重啟所有服務
/root/llsmp start/stop啟動/停止全套
/root/llsmp add新增虛擬主機(互動式)
/root/llsmp del刪除虛擬主機
/root/llsmp mysql進入 MySQL 控制台
/root/llsmp php切換 PHP 版本(若安裝多版本)

4. 關鍵目錄速查

  • Web 根目錄:/home/wwwroot/
  • 虛擬主機配置:/usr/local/lsws/conf/vhosts/
  • PHP 配置:/usr/local/php/etc/php.ini
  • MySQL 數據目錄:/usr/local/mysql/var/
  • 日誌目錄:/usr/local/lsws/logs/

5. v0.6 版已知問題(截至發稿)

  • Ubuntu 20.04 下 OpenSSL 版本相容性警告(不影響運行)
  • PHP 8.0+ 部分舊擴展未適配
  • 管理面板偶發 Session 失效,重啟 lshttpd 可恢復

LLsMP 讓你以最低學習成本獲得企業級 WebServer 效能,特別適合舊專案 .htaccess 規則多、不想重寫 Nginx 規則的團隊。官方網站:llsmp.org

copyright © 萬盛學電腦網 all rights reserved