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
点击查看更多内容
为 TA 点赞
评论
共同学习,写下你的评论
评论加载中...
作者其他优质文章
正在加载中
感谢您的支持,我会继续努力的~
扫码打赏,你说多少就多少
赞赏金额会直接到老师账户
支付方式
打开微信扫一扫,即可进行扫码打赏哦