centos7.2php,Centos7.2之phpadmin安装配置

centos7.2

lamp之phpadmin

PhpMyAdmin是一个以PHP为基础,以Web-Base方式架构在网站主机上的MySQL的数据库管理工具,让管理者可用Web接口管理MySQL数据库

~]# yum install httpd php php-mysql mariadb-server 安装需要的服务

~]#systemctl start httpd 启动httpd服务

~]#systemctl start mariadb 启动mysql服务

~]# ss -tnl 查看监听的端口

State Recv-Q Send-Q Local Address:Port Peer Address:Port

LISTEN 0 50 :3306:LISTEN 0 128 :::80 ::::*

~]# systemctl stop firewalld 关闭防火墙

~]# systemctl disable firewalld永久关闭防火墙

~]# setenforce 0 暂时关闭selinux

~]# sed -i "s/^SELINUX\=enforcing/SELINUX\=disabled/g" /etc/selinux/config 永久关闭selinux

~]# unzip phpMyAdmin-4.7.9-all-languages.zip 解压phpmyadmin

~]# cp -a phpMyAdmin-4.7.9-all-languages /var/www/html/ 复制到指定目录

html]# ln -s phpMyAdmin-4.7.9-all-languages pma 创建软连接,方便以后升级

html]# cd pma/

pma]# cp config.sample.inc.php config.inc.php 复制配置文件

~]# tr -d 'a-z0-9A-Z'

7a1e4b41291c0c74e82ef5a5f528dc82 - 生成随机字符串

pma]#vim config.inc.php 编辑配置文件

$cfg['blowfish_secret'] = '7a1e4b41291c0c74e82ef5a5f528dc82';添加随机字符串

浏览器登陆:192.168.1.102/pma

提示:The mbstring extension is missing。

pma]# yum install php-mbstring -y 安装扩展模块

pma]# systemctl reload httpd 重新加载,重新登录

登录界面

bfc7e08f65a9c69d725e9613aaa81caf.png

MariaDB [(none)]> set password for 'root'@'localhost'=password('magedu');

MariaDB [(none)]> set password for 'root'@'127.0.0.1'=password('magedu');

MariaDB [(none)]> flush privileges; 重读授权表生效

在登录界面输入上面的用户名和密码即可

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值