1.配置http服务:
yum install http -y 安装http
systemctl start httpd 开启
systemctl enable httpd 设置开机自启动
firewall-cmd --permanent --add-service=http 添加为火墙允许的服务
firewall-cmd --reload 重新加载
测试:cd /var/www/html
vim index.html<h1>hello</h1>
在浏览器输入:172.25.254.60 若出现hello,则http安装好了2.获取文件包:
连上老师电脑,下载到/var/www/html:
get phpMyAdmin-4.0.10.20-all-languages.tar.gz
get php-mbstring-5.4.16.e17.x86_64.rpm3.安装
在/var/www/html目录下:
tar zxf phpMyAdmin-4.0.10.20-all-languages.tar.gz 解压
mv phpMyAdmin-4.0.10.20-all-languages mysqladmin 重命名cd mysqladmin
yum install php -y 安装php,php-mysql,php-mbstring三个软件
yum install php-mysql.x86_64 -y
rpm -ivh php-mbstring-5.4.16.e17.x86_64.rpm
cp config.sample.inc.php config.inc.php
systemctl restart httpd 重新启动http4.验证安装是否成功
在浏览器上输入:172.25.254.60/musqladmin 成功就会显示成功界面