Quantcast
Channel: 深度VPS » CentOS
Viewing all articles
Browse latest Browse all 15

LAMP一键安装包(适用CentOS 5/6)

$
0
0

适用环境:

系统支持:CentOS-5 (32bit/64bit)、CentOS-6 (32bit/64bit)
内存要求:≥256M

安装了什么:

1、Apache 2.2.22或Apache 2.4.2
2、MySQL 5.5.24
3、PHP 5.2.17或PHP 5.3.13
4、phpmyadmin 3.5.1
5、ZendOptimizer 3.3.9(可选,只适合PHP 5.2.17)
6、xcache 1.3.2(可选)
7、pure-ftpd-1.0.36(可选)

如何安装:

wget http://centos.googlecode.com/files/lamp0.4.tar.gz
tar xf lamp0.4.tar.gz && cd lamp0.4 && chmod +x lamp.sh && ./lamp.sh

安装其它

1、执行脚本pureftpd.sh安装pure-ftpd。
2、执行脚本zend.sh安装ZendOptimizer。
3、执行脚本xcache.sh安装xcache。

使用提示:

LAMP脚本使用

lamp add(del,list):创建(删除,列出)虚拟主机。
lamp ftp(add|del|list):创建(删除,列出)ftp用户。
lamp uninstall:一键卸载lamp(卸载之前注意备份好数据!)。

程序目录

mysql目录: /usr/local/mysql
mysql data目录:/usr/local/mysql/data
php目录: /usr/local/php
apache目录: /usr/local/apache

进程管理

apache启动(停止|重启|重载配置文件):service httpd start(stop|restart|reload)
mysql(停止|重启|重载配置文件):service mysqld start(stop|restart|reload)
pureftpd(停止|重启|重载配置文件):service pure-ftpd start(stop|restart|reload)

配置文件路径

apache:/etc/httpd/conf
mysql:/etc/my.cnf
php:/etc/php.ini /etc/php.d
pure-ftpd:/etc/pure-ftpd.conf


Viewing all articles
Browse latest Browse all 15

Latest Images

Trending Articles





Latest Images