用Docker安装
-
环境
系统:CentOS 7
容器:Docker -
拉取镜像
# docker pull phpmyadmin/phpmyadmin
-
启动容器
# docker run --name phpmyadmin -d -e PMA_ARBITRARY=1 -p 80:80 phpmyadmin/phpmyadmin
手动安装
-
安装phpMyAdmin
# unzip phpMyAdmin-5.0.2-all-languages.zip # mv phpMyAdmin-5.0.2-all-languages /data/web/phpMyAdmin # chown -R nginx:nginx /data/web/phpMyAdmin
-
配置phpMyAdmin
# cp /data/web/phpMyAdmin/config.sample.inc.php /data/web/phpMyAdmin/config.inc.php # vim /data/web/phpMyAdmin/config.inc.php $cfg['AllowArbitraryServer'] = true;
-
安装PHP扩展
# yum install php71w-mysql php71w-mbstring # systemctl restart php-fpm
访问
浏览器打开http://ip:80
网友评论