appache+php+mysql

1

  安装appache

  mkdir  /mnt/cdrom

mount /dev/cdrom  /mnt/cdrom

 

vim  /etc/yum.yepos.d/rhel…

 

yum install �Cy httpd

 

 

压力测试

  ab

vim /var/www/html/index.html

service httpd start

ab �Cc 100  -n 10000  http://192.168.101.125/index.html

 

安装php

 

yum list php*

yum install �Cy php

cd /var/www/html

mv index.html index.php

vim index.php

 

service httpd restart

 

 

image

 

安装mysql

yum list mysql*

yum install �Cy mysql mysql-server

chkconfig mysqld on

service mysqld start

 

 

yum list php*

 

      php mysql

 

yum install  -y php-mysql

vim index.php

 

<?php

$link=mysql_connect(‘127.0.0.1’, ‘root’, ‘’);

if ($link)

echo “ok”

else

echo “not ok”

?>

 

service httpd restart

 

 

安装phpmyadmin

通过WEB管理数据库

 

cd

ll

        phpmyadmin-2.11…

unzip phpMyAdmin…  //解压缩

mv phpMyadmin-2.11…     /var/www/html/phpmyadmin

cd /var/www/html

ll

       phpmyadmin

 

                http://192.168.101.125/phpmyadmin

 

 

image

你可能感兴趣的:(html,service,压力测试,休闲,160)