歡迎您光臨本站 註冊首頁

CentOS使用yum配置安裝LAMP環境自動化腳本

←手機掃碼閱讀     火星人 @ 2014-03-08 , reply:0

#!/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';

本文出自 「DZ」 博客,請務必保留此出處http://dongyahu.blog.51cto.com/4990650/852188


[火星人 ] CentOS使用yum配置安裝LAMP環境自動化腳本已經有442次圍觀

http://coctec.com/docs/linux/show-post-45836.html