一般在linux服务器配置个环境可以说是累死人,闲来写了一个脚本 用在centos 7上,约三分钟左右完成lamp环境的安装 linux+PHP5.5+mysql5.6.33+Apache2.4+phpmysql
(yum install -y perl perl-Data-Dumper && yum remove -y mariadb-libs )&&(((rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm &rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm)&& yum install -y httpd php55w phpmyadmin)&rpm -Uvh http://dev.mysql.com/get/Downloads/MySQL-5.6/MySQL-server-5.6.33-1.el7.x86_64.rpm & rpm -Uvh http://dev.mysql.com/get/Downloads/MySQL-5.6/MySQL-client-5.6.33-1.el7.x86_64.rpm)&&( service mysql start && service httpd start)
MySQL 修改密码
cat /root/.mysql_secret #查看MySQL登陆密码
mysql -uroot -p
mysql>SET PASSWORD FOR ‘root‘@‘localhost‘ = PASSWORD(‘newpass‘);
修改phpMyAdmin外网访问权限
vi /etc/httpd/conf.d/phpMyAdmin.conf
本文作者:dobit
原文地址:http://www.cnblogs.com/dobit/p/5889781.html
时间: 2024-09-30 06:37:20