#!/bin/sh 【程序编程相关:2G还是40G?Linux到底需要多少虚】
【推荐阅读:sed 的用法】 apache_ver="2.0.54" 【扩展信息:欢迎加入我的QQ群!】 php_ver="4.4.0" mysql_ver="4.0.25" httpd="/httpd" mysql="/mysql" #src_root="/root/comp/test" if [ -e mysql-$.tar.bz2 ]; then echo "mysql-$.tar.bz2" tar -jxf mysql-$.tar.bz2 else echo "mysql-$.tar.gz" tar -zxf mysql-$.tar.gz fi cd mysql-$ pwd ./configure --prefix=$ \ --with-charset=gb2312 \ --without-bench \ --without-docs \ --with-mysqld-user=mysqld \ cflags=-duse_old_functions \ --with-pthread 2>&1 >>test.log make 2>&1 >>test.log make install 2>&1 >>test.log cp support-files/my-medium.cnf /etc/my.cnf cp support-files/mysql.server /etc/rc.d/mysql.server cd $ bin/mysql_install_db --user=mysqld chown -r root . chown -r mysqld var chgrp -r mysqld . bin/mysqld_safe --user=mysqld & ... 下一页