CentOS利用yum配置安装LAMP环境自动化脚本[服务器安全]
本文“CentOS利用yum配置安装LAMP环境自动化脚本[服务器安全]”是由七道奇为您精心收集,来源于网络转载,文章版权归文章作者所有,本站不对其观点以及内容做任何评价,请读者自行判断,以下是其具体内容:
#!/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';
以上是“CentOS利用yum配置安装LAMP环境自动化脚本[服务器安全]”的内容,如果你对以上该文章内容感兴趣,你可以看看七道奇为您推荐以下文章:
本文地址: | 与您的QQ/BBS好友分享! |