安装phpmyadmin
apt-get install phpmyadmin
配置 nginx.conf
server {
listen 8081;
server_name 192.168.1.105:8081;
root /usr/share/phpmyadmin;
location / {
index index.php index.html index.htm;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
location ~ \.php$ {
# root html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /usr/share/phpmyadmin$fastcgi_script_name;
include fastcgi_params;
}
}
重启nginx
service nginx restart
登录phpmyadmin
192.168.1.105:8081 '浏览器中输入此网址