1.虚拟机网络配置(服务器不需要,默认网络已配置好)
vi /etc/sysconfig/network-scripts/ifcfg-enp0s3
systemctl restart network.service
2.更新系统
yum update
3.安装宝塔面板
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh
==================================================================
BT-Panel default info!
==================================================================
外网面板地址: http://192.168.56.104:8888/72523e2d
内网面板地址: http://10.0.2.15:8888/72523e2d
*以下仅为初始默认账户密码,若无法登录请执行bt命令重置账户/密码登录
username: dyzwccjq
password: 44923ab8
If you cannot access the panel
release the following panel port [8888] in the security group
若无法访问面板,请检查防火墙/安全组是否有放行面板[8888]端口
==================================================================
4.安装Mysql 5.6,复制root密码(数据库-root密码)
5.配置数据库
登录数据库
mysql -u root -pd3e759e84a8a0b1d
开启远程登录:
GRANT ALL PRIVILEGES ON *.* TO 'root'@'127.0.0.1' IDENTIFIED BY 'd3e759e84a8a0b1d' WITH GRANT OPTION;
FLUSH PRIVILEGES;
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY 'd3e759e84a8a0b1d' WITH GRANT OPTION;
FLUSH PRIVILEGES;
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'd3e759e84a8a0b1d' WITH GRANT OPTION;
FLUSH PRIVILEGES;
exit