#!/bin/bash

#yum 编译环境配置

yum update

yum install gcc gcc-c++;

 

yum erase httpd

yum install zlib-devel libtool ncurses-devel libxml2-devel

 

echo "Now we start"

 

yum install httpd httpd-devel

/etc/init.d/httpd start

chkconfig httpd on

 

yum install mysql mysql-server mysql-devel

 

/etc/init.d/mysqld start

 

chkconfig mysqld on

 

echo "Now start install php"

 

yum install php php-mysql php-common php-gd php-mbstring php-mcrtpt php-devel php-xml

 

/etc/init.d/httpd restart

echo "OK,your mysql not write"

#dz

 

yum -y install squid

echo "over"

#mysql

# use mysql;

#update user set password=password('redhat') where user='root';

#flush privileges;

 

#mysql -u root -p

 

#create database redhat;

#grant all privileges on redhat.*  to  'redhat'@'localhost'   identfied by 'redhat' with grant option;

 

#update user set password=password('redhat') where user='redhat';