linux下载安装phpmyadmin

 

 

phpmyadmin下载:

https://www.phpmyadmin.net/downloads/

 

1、解压缩

tar -zxvf phpMyAdmin-4.7.1-all-languages.tar.gz

 

2、复制到/home/phpMyAdmin

mv phpMyAdmin-4.7.1-all-languages /home/phpMyAdmin

 

3、修改配置文件:

vi config.sample.inc.php

$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['host'] = 'localhost';

 

4、nginx的配置:

我的nginx配置文件路径:/etc/nginx/conf.d

cd /etc/nginx/conf.d

vi  phpmyadmin.conf

我的phpmyadmin的nginx配置:

server {
  listen 8089;
  server_name localhost;

  #access_log /var/log/nginx/log/host.access.log main;
  root /home/phpMyAdmin;
  index index.html index.htm index.php;
  include conf.d/php-fpm;
}

 

posted @ 2017-06-01 15:12  素还真1990  阅读(734)  评论(0)    收藏  举报