1.yum install epel-release -y
2.yum install phpMyAdmin -y
3.cp /etc/httpd/conf.d/phpMyAdmin.conf /home/phpMyAdmin.conf.bak
4.sed -i "s,\(Require ip 127.0.0.1)\, \1\nRequire ip "192.168.31.100", g" /etc/httpd/conf.d/phpMyAdmin.conf
5.systemctl restart httpd
6.systemctl enable httpd
7.links http://192.168.31.100/phpmyadmin
时间: 2024-11-02 04:05:34