LNMP一键安装包
适用环境:[*]系统支持:CentOS-5 (32bit/64bit)、CentOS-6 (32bit/64bit)
[*]内存要求:≥128M
安装了什么:
[*]1、Nginx-1.0.9
[*]2、MySQL 5.1.59
[*]3、PHP 5.2.17
[*]4、ZendOptimizer 3.3.9
[*]5、phpmyadmin 3.4.7
[*]6、xcache-1.3.2(可选)
[*]7、memcached-1.4.9(可选)
[*]8、vsftpd 2.3.4(可选)
实现了什么功能
[*]1、一键配置LNMP环境
[*]2、自动分割Nginx日志,只保留七天内(具体时间可到/root/sh/nginx-log.sh设置)
[*]3、脚本管理虚拟主机,vsftpd(添加,删除和查看)
[*]4、phpmyadmin可视化管理mysql数据库
[*]5、自动配置防火墙iptables
如何安装:
1、下载安装包
[*]下载版地址:http://centos.googlecode.com/files/lnmp0.1.tar.gz
[*]完整版地址(推荐国内使用):http://centos.googlecode.com/files/lnmp0.1-full.tar.gz
2、开始安装
以下载版安装包为例:
[*]tar xzvf lnmp0.1.tar.gz
[*]cd lnmp0.1
[*]./lnmp0.1.sh
安装其它
1、执行脚本vsftpd.sh安装vsftpd。
2、执行脚本xcache.sh安装xcache。
3、执行脚本memcached.sh安装memcached。
使用提示:
LNMP脚本使用
[*]lnmp vhost create(delete,list):创建(删除,列出)虚拟主机。
[*]lnmp ftp create(delete,list):创建(删除,列出)vsftpd用户。
[*]lnmp uninstall:一键卸载lamp(卸载之前注意备份好数据!)。
程序目录
[*]mysql目录: /usr/local/mysql
[*]mysql data目录:/usr/local/mysql/var
[*]php目录: /usr/local/php
[*]nginx目录: /usr/local/nginx
[*]网站根目录 :/home/www/
进程管理
[*]nginx启动(停止|重启|重载配置文件):service nginx start(stop|restart|reload)
[*]mysql(停止|重启|重载配置文件):service mysqld start(stop|restart|reload)
[*]vsftpd(停止|重启|重载配置文件):service vsftpd start(stop|restart|reload)
[*]php-fpm(停止|重启|重载配置文件):service php-fpm start(stop|restart|reload)
[*]memcached(停止|重启|重载配置文件):service memcached start(stop|restart|reload)
配置文件路径
[*]nginx:/usr/local/nginx/conf
[*]mysql:/etc/my.cnf
[*]php:/etc/php.ini /etc/php.d/
[*]vsftpd:/etc/vsftpd.conf
[*]memcached:/usr/local/memcached/memcached.conf
更新记录
[*]2011年11月8日:发布lnmp0.1
页:
[1]