当前位置: 首页 > 图文教程 > 操作系统 > Unix/Linux > 一步到位的 LAMP 安装脚本 (AMP部分)

Unix/Linux
第三章 在Debian上用Exim配置邮件服务器
Sendmail邮件服务器快速指南 1
Sendmail邮件服务器快速指南 2
Sendmail邮件服务器快速指南 3
使用sendmail配置企业简易邮件系统
RedHatLinux AS3中配置sendmail服务器
RedHatLinux AS3中APACHE+SendMail+OpenWebMail整合
Linux下DNS服务器架设攻略
Linux下DNS服务器架设攻略 2
Linux下DNS服务器架设攻略 3
Linux内核配置选项
域名解析 A记录 MX记录 CNAME记录 TTL
DNS轮循的一些介绍
netfilter/iptables模块编译及应用
和大家一起分享不错的iptables
构筑Linux防火墙之IPtables的概念与用法(1)
构筑Linux防火墙之IPtables的概念与用法(2)
Linux架设DNS服务器(一)
Linux架设DNS服务器(二)
邮件传输原理及相关入门知识概述

Unix/Linux 中的 一步到位的 LAMP 安装脚本 (AMP部分)


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-01   浏览: 46 ::
收藏到网摘: n/a


#!/bin/shAPACHE_VER="2.0.54"PHP_VER="4.4.0"MYSQL_VER="4.0.25"HTTPD="/httpd"MYSQL="/mysql"#SRC_ROOT="/root/comp/test"if [ -e mysql-$.tar.bz2 ]; thenecho "mysql-$.tar.bz2"tar -jxf mysql-$.tar.bz2elseecho "mysql-$.tar.gz"tar -zxf mysql-$.tar.gzficd mysql-$pwd./configure --prefix=$ \--with-charset=gb2312 \--without-bench \--without-docs \--with-mysqld-user=mysqld \CFLAGS=-DUSE_OLD_FUNCTIONS \--with-pthread 2>&1 >>test.logmake 2>&1 >>test.logmake install 2>&1 >>test.logcp support-files/my-medium.cnf /etc/my.cnfcp support-files/mysql.server /etc/rc.d/mysql.servercd $bin/mysql_install_db --user=mysqldchown -R root  .chown -R mysqld varchgrp -R mysqld .bin/mysqld_safe --user=mysqld &bin/mysqladmin -u root password 'Passwd'chmod +x /etc/rc.d/mysql.serverecho "/etc/rc.d/mysql.server start" >>/etc/rc.d/rc.localecho "skip-networking " >> /etc/my.cnf/etc/rc.d/mysql.server restartcp $/lib/mysql/lib* /usr/libldconfig -vcd -cd ..if [ -e httpd-$.tar.bz2 ]; thenpwdecho "httpd-$.tar.bz2"tar -jxf httpd-$.tar.bz2elsepwdecho "httpd-$.tar.gz"tar -zxf httpd-$.tar.gzficd httpd-$pwd./configure --prefix=/$ \--enable-example \--enable-log-forensic \--enable-logio \--enable-mime-magic \--enable-cern-meta \--enable-expires \--enable-headers \--enable-usertrack \--enable-unique-id \--enable-ssl \--enable-static-htpasswd \--enable-static-htdigest \--enable-static-rotatelogs \--enable-static-ab \--enable-static-checkgid \--enable-http \--disable-status \--enable-cgi \--enable-cgid \--disable-dir \--enable-rewrite \--enable-module=so 2>&1 >>make.logmake 2>&1 >>make.logmake install 2>&1 >>make.logcd ..if [ -e php-$.tar.bz2 ];thenecho "php-$.tar.bz2"tar -jxf php-$.tar.bz2elseecho "php-$.tar.gz"tar -zxf php-$.tar.gzficd php-$pwd./configure --with-apxs2=$/bin/apxs --with-mysql=$ 2>&1 >>make.logmake 2>&1 >>make.logmake install 2>&1 >>make.logcp php.ini-dist /usr/local/lib/php.iniecho "LoadModule php4_module libexec/libphp4.so" >> $/conf/httpd.confecho "AddType application/x-httpd-php .php .phtml " >> $/conf/httpd.confecho " " > $/htdocs/index.php$/bin/apachectl start