tar -zxvf phpMyAdmin-4.9.3-all-languages.tar.gz -C /var/www/html/|
1
2 |
cd /var/www/html/mv phpMyAdmin-4.9.3-all-languages phpMyAdmin |
cp config.sample.inc.php config.inc.phpvim config.inc.php|
1
2 3 |
$cfg['blowfish_secret'] = ''; //这里随意添加几个字符太短会有错误提示。$cfg['Servers'][$i]['auth_type'] = 'cookie'; //这里默认就好$cfg['Servers'][$i]['host'] = 'localhost'; //这里可以改为自己的ip地址或者域名,不改也没关系 |
$cfg['TempDir'] (./tmp/)无法访问。phpMyAdmin无法缓存模板文件,所以会运行缓慢。|
1
2 |
mkdir tmpchmod 777 tmp |
yum install php-mysqlyum install php-mbstring -yyum install php-mcrypt –y|
1
2 |
firewall-cmd --zone=public --add-port=80/tcp --permanent专业:服务器运维 机房弱电布线 中小企业网络维护 IT外包 //--zone作用域,--add-port=80/tcp添加端口/协议,--permanent永久生效 |
systemctl restart firewalldsystemctl status firewalldsystemctl stop firewalldsystemctl disable firewalldgettenforcevim /etc/selinux/config相关文章
关闭