学习NO.1 发表于 2015-5-29 20:07:28

LLsMP一键Linux VPS主机WEB环境包安装及常用命令应用

如果我们选择VPS主机作为网站环境,会分为三种用户构架网站环境,第一种是高手直接编译原始脚本安装,不用一键包,更不用WEB面板,他会根据自己需要的环境配置;第二种是使用网络上比较流行的一键安装包,目前常用的有LLsMP、LNMP、MAPN、LAMP等等,这种方法的有点可以快速的部署WEB环境,但比第三种的面板节省VPS资源,属于成熟性用户;第三种,使用WEB面板管理,国内用户使用多的是AMH、WDCP、LuManager等,国外的就有很多,比如Virtualmin比较常用,虽然占用资源比前两者多,但是能够让用户快速上手。在这篇文章中,道勤需分享和整理的是我比较常用的LLsMP一键安装包环境,这个环境包从我学习VPS时候就作为建站使用环境,以前的作者关闭官方网站不更新之后,道勤邀请水清流朋友帮助更新数据源、升级版本,经过道勤多次调试之后目前可以使用新版本的LLSMP环境。LLsMP一键安装包下载以及安装LLSMP 1.0版本A - Centoswget http://down.llsmp.cn/llsmp1.0_centos.tar.gz
tar -zxvfllsmp1.0_centos.tar.gz
cd centos
sh install.sh默认安装PHP5.3版本,如果需要安装php5.4版本,在最后一行sh install.sh php5.4B - Debianwget http://down.llsmp.cn/llsmp1.0_debian.tar.gz
tar -zxvfllsmp1.0_debian.tar.gz
cd debian
sh install.sh默认安装PHP5.3版本,如果需要安装php5.4版本,在最后一行sh install.sh php5.4LLSMP 0.6版本A - Centoswget http://down.llsmp.cn/llsmp0.6_centos.tar.gz
tar -zxvf llsmp0.6_centos.tar.gz
cd centos
sh install.sh如果需要安装php5.3版本,在最后一行sh install.sh php5.3B - Debianwget http://down.llsmp.cn/llsmp0.6_debian.tar.gz
tar -zxvf llsmp0.6_debian.tar.gz
cd debian
sh install.sh如果需要安装php5.3版本,在最后一行sh install.sh php5.3对应系统执行上述的脚本安装,在过程中需要我们输入Litespeed登录密码,以及ROOT MYSQL和Litespeed登录密码,可以选择快速安装和自定义安装,可以选择安装PHP5.3或者默认的PHP2.7版本。LLsMP一键包换机常用的脚本/命令A - 常用组件安装如果有需要下面组件的,可以单独安装安装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.shB - 常用命令创建新站点: 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 restartC - LLsMP常用文件目录Litespeed管理后台 : http://{ip}:7080phpMyAdmin(安装后建议修改文件夹名称) : http://{ip}/phpmyadmin/php.ini目录 : /usr/local/lsws/lsphp5/lib/php.iniMySQL配置文件my.cnf : /etc/my.cnf (Centos) | /etc/mysql/my.cnf (Debian/Ubuntu)Nginx配置目录: /etc/nginx/nginx.conf 及 /etc/nginx/conf.d/下虚拟主机目录: /home/wwwrootLLsMP安装日志: /root/llsmp/install.log总结,以上是LLsMP一键安装环境脚本涉及的安装教程,我们可以在自己的VPS主机中快速安装环境,该环境是目前常规一键包脚本中最节省资源的。LLsMP官方网站:www.llsmp.cn

页: [1]
查看完整版本: LLsMP一键Linux VPS主机WEB环境包安装及常用命令应用