1. 下载phpMyAdmin安装包
2.把下载好的安装包放web目录下
3.配置phpmyadmin
进入到phpmyadmin能够看到config.sample.inc.php
而后cp config.sample.inc.php config.inc.php
进行编辑vim config.inc.phpphp
修改
找到$cfg[‘blowfish_secret’]配置项,后面默认为空,这里咱们能够随便设置一个复杂的字符串,用来加密使用
还有一个就是localhost修改为为本身的ip地址便可
html
4. 配置nginx
server { listen 8087; server_name 114.55.103.25; index index.html index.htm index.php; root /var/www/phpMyadmin; location / { if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=$1 last; break; } } location /download/ { root /home/html/web/public; autoindex on; } location /pro/ { root /home/html/web/public; autoindex on; } location ~ \.php(.*)$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_split_path_info ^((?U).+\.php)(/?.+)$; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; include fastcgi_params; } }