//下载安装文件
wget -c http://lamp.phpstudy.net/phpstudy.bin
//分配权限
chmod +x phpstudy.bin
//执行编译
./phpstudy.bin
//关闭防火墙
systemctl stop firewalld
//mysql文件 及 初始帐号密码
/phpstudy/mysql/bin/mysql -uroot -proot
//将mysql设置为系统命令 添加内容
vi ~/.base_profile
// 或者修改/etc/profile文件,通过vi或vim增加变量 source /etc/profile
mysql -uroot -proot
use mysql
select * from user\G;
//修改可连接端口 为全部 有需要的话 自定义
update user set Host='%' where Host='localhost' and User='root';
//设置密码
update user set Password=password('you password') where Host='%' and User='root';
//刷新缓存
flush privileges;
quit;
phpstudy restart