使用 dnf 安装命令没有安装成功
下载安装
phpmyadmin 下载地址,最新版本为 5.2
/etc/nginx/nginx.conf 中的配置内容
server {
listen 80;
listen [::]:80;
server_name _;
root /usr/share/nginx/html;
# Load configuration files for the default server block.
include /etc/nginx/default.d/*.conf;
error_page 404 /404.html;
location = /40x.html {
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
}
}
所以,phpmyadmin 在对应目录 在 /usr/share/nginx/html 下面
cp -r /root/phpMyAdmin-5.2.0-all-languages .
mv phpMyAdmin-5.2.0-all-languages/ phpadmin
配置文件内容修改,不修改也可以
cp config.sample.inc.php config.inc.php
#修改下列配置
vim config.inc.php
'123456'是加密用的,可以填写任意字符串
$cfg['blowfish_secret'] = '123456'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
'192.168.1.171'是数据库的IP地址,若phpMyAdmin软件不是安装在mysql服务器本机上,则可填写客户端IP,但需在服务器上先授权客户端有登录mysql服务的权限
$cfg['Servers'][$i]['host'] = '192.168.1.171';
浏览器访问地址 http://116.205.242.110/phpadmin