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.php
vim 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 tmp chmod 777 tmp |
yum install php-mysql
yum install php-mbstring -y
yum install php-mcrypt –y
1
2 |
firewall-cmd --zone=public --add-port=80/tcp --permanent 專業:服務器運維 機房弱電布線 中小企業網絡維護 IT外包 //--zone 作用域,--add-port=80/tcp添加端口/協議,--permanent永久生效 |
systemctl restart firewalld
systemctl status firewalld
systemctl stop firewalld
systemctl disable firewalld
gettenforce
vim /etc/selinux/config
相關文章