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; } }