小标
2018-11-27
来源 :
阅读 1308
评论 0
摘要:本文主要向大家介绍了MySQL数据库之lampapache+mysql+php ,通过具体的内容向大家展现,希望对大家学习MySQL数据库有所帮助。
本文主要向大家介绍了MySQL数据库之lampapache+mysql+php ,通过具体的内容向大家展现,希望对大家学习MySQL数据库有所帮助。
l 就是linux ,a就是apache,m就是apache,p就是php
apache
安装apache
yum insatll httpd -y
开启apache服务
service httpd start
设置235运行级别开机启动
chkconfig --levels 235 httpd on
配置httpd文件
vi /etc/httpd/conf/httpd.conf
ServerName去掉#
重启httpd服务
service httpd restart
mysql
安装mysql数据库
yum install mysql mysql-sever -y
开启mysql数据库
service mysqld start
chkconfig --levels 235 mysqld on
设置mysql数据库密码
mysql_secure_installation
2y其余回车
登陆数据库
mysql -u root -p
Php
安装php
yum install php* -y
开启php
service httpd restart
编写php测试页面
vi /var/www/html/info.php
输入
<?php
phpinfo();
?>
重启httpd服务
service httpd restart
本文由职坐标整理并发布,希望对同学们学习MySQL有所帮助,更多内容请关注职坐标数据库MySQL数据库频道!
喜欢 | 0
不喜欢 | 0
您输入的评论内容中包含违禁敏感词
我知道了

请输入正确的手机号码
请输入正确的验证码
您今天的短信下发次数太多了,明天再试试吧!
我们会在第一时间安排职业规划师联系您!
您也可以联系我们的职业规划师咨询:
版权所有 职坐标-一站式AI+学习就业服务平台 沪ICP备13042190号-4
上海海同信息科技有限公司 Copyright ©2015 www.zhizuobiao.com,All Rights Reserved.
沪公网安备 31011502005948号