lamp
运行指令安装依赖项
yum -y install httpd httpd-manual mod_ssl mod_perl mod_auth_mysql
使用指令启动服务
systemctl start httpd.service
在浏览器中使用80端口进行测试
mysql
安装mysql
wget http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm
yum -y install mysql57-community-release-el7-10.noarch.rpm
yum -y install mysql-community-server
使用指令启动mysql
systemctl start mysqld.service
使用指令查看初始密码
grep "password" /var/log/mysqld.log
登陆数据库
mysql -uroot -p
授予远程访问权限
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '12345678';