LLsMP顧名思義是Linux+LiteSpeed+MySQL+PHP的一套Web環境。相信可能大家對LNMP更熟悉一些,至于孰好孰壞,這里也不賣弄了,畢竟自己也是剛剛接觸LLsMP,所以不方便多說,但是從現有資料來看,LiteSpeed的負載能力很強,占用資源也極低,而且對于.htaccess的rewrite規則支持也非常不錯,這也是Nginx一個很大的缺陷吧(許多偽靜態的規則需要自己完成…)。
LLsMP一鍵安裝包及使用教程
本文介紹的LLsMP一鍵安裝包是llsmp.org進行發布,本文僅對常用設置與命令進行整理匯總!
1.安裝LLsMP
2.安裝更多附加組件
3.LLsMP相關管理命令
4.LLsMP常用目錄
5.截止本文發表,最新版本0.6已知的問題
安裝LLsMP
支持平臺:CentOS 5/6 , Debian 5/6 , Ubuntu 10/11
安裝命令:
安裝PHP5.3版本完成之後要重啟MYSQL
/etc/init.d/mysql start
CentOS:
PHP5.2
wget http://llsmp.googlecode.com/files/llsmp0.6_centos.tar.gz;tar zxvf llsmp0.6_centos.tar.gz;cd centos;sh install.sh
PHP5.3
wget http://llsmp.googlecode.com/files/llsmp0.6_centos.tar.gz;tar zxvf llsmp0.6_centos.tar.gz;cd centos;sh install.sh php5.3
Debian:
PHP5.2
wget http://llsmp.googlecode.com/files/llsmp0.6_debian.tar.gz;tar zxvf llsmp0.6_debian.tar.gz;cd debian;sh install.sh
PHP5.3
wget http://llsmp.googlecode.com/files/llsmp0.6_debian.tar.gz;tar zxvf llsmp0.6_debian.tar.gz;cd debian;sh install.sh php5.3
Ubuntu:
PHP5.2
wget http://llsmp.googlecode.com/files/llsmp0.6_ubuntu.tar.gz;tar zxvf llsmp0.6_ubuntu.tar.gz;cd ubuntu;sh install.sh
PHP5.3
wget http://llsmp.googlecode.com/files/llsmp0.6_ubuntu.tar.gz;tar zxvf llsmp0.6_ubuntu.tar.gz;cd ubuntu;sh install.sh php5.3
安裝更多附加組件:
安裝eAccelerator : sh /root/llsmp/eaccelerator.sh
安裝Zend Optimizer : sh /root/llsmp/zend_optimizer.sh
安裝ionCube Loader : sh /root/llsmp/ioncube.sh
安裝Google Performace Tools : sh /root/llsmp/perftools.sh
安裝FTP(vsftpd) : sh /root/llsmp/vsftpd.sh
安裝Nginx前端 : sh /root/llsmp/nginx.sh
LLsMP相關管理命令:
創建Litespeed虛擬主機 : sh /root/llsmp/vhost.sh
添加FTP賬號 : sh /root/llsmp/vsftpd.sh
重要!虛擬主機權限修正: chown -R nobody:nobody /home/wwwroot/域名/html
創建Nginx虛擬主機 : sh /root/llsmp/nginx.sh
備份指令 : sh /root/llsmp/backup.sh
重啟Litespeed : /etc/init.d/lsws restart
重啟MySQL : /etc/init.d/mysql(d) restart
重啟Nginx : /etc/init.d/nginx restart
LLsMP常用目錄:
Litespeed管理后臺 : http://{ip}:7080
phpMyAdmin : http://{ip}/phpmyadmin/
php.ini目錄 : /usr/local/lsws/lsphp5/lib/php.ini
MySQL配置文件my.cnf : /etc/my.cnf (Centos) | /etc/mysql/my.cnf (Debian/Ubuntu)
Nginx配置目錄: /etc/nginx/nginx.conf 及 /etc/nginx/conf.d/下
虛擬主機目錄: /home/wwwroot
LLsMP安裝日志: /root/llsmp/install.log
截止本文發表,最新版本0.6已知的問題:
1.已知部分KVM上的Debian無法安裝LLsMP
cp: cannot create regular file /usr/local/lsws/DEFAULT/html/installlog.html: No such file or directory
sed: cant read /usr/local/lsws/DEFAULT/html/installlog.html: No such file or directory
sed: cant read /usr/local/lsws/DEFAULT/html/installlog.html: No such file or directory
sed: cant read /usr/local/lsws/DEFAULT/html/installlog.html: No such file or directory
sed: cant read /usr/local/lsws/DEFAULT/html/installlog.html: No such file or directory
原因是Litespeed安裝未成功,expect出現錯誤
待修正
2.安裝LLsMP 的PHP5.3版本登錄phpmyadmin出現#2002錯誤
原因是腳本問題,MySQL未自動重啟,請手動重啟
/etc/init.d/mysql start
3.VPS重啟,而Litespeed和MySQL未隨機啟動
手動設置開機啟動
Debian/Ubuntu:
update-rc.d lsws defaults
update-rc.d mysql defaults
CentOS:
chkconfig –level 345 lsws on
chkconfig –level 345 mysql on
文章來源:微魔部落
新聞熱點
疑難解答