首页 > Web开发 > 详细

centso apache2.4 配置 php7.1

时间:2019-04-03 13:29:55      阅读:150      评论:0      收藏:0      [点我收藏+]

----------------
安装apache : yum install -y httpd
卸载apache : rpm -e httpd
查看apache是否安装成功 : apachectl -v

Apache安装
yum install httpd
启动
systemctl start httpd.service #启动
systemctl stop httpd.service #停止
systemctl restart httpd.service #重启
第二、设置开机启动/关闭
systemctl enable httpd.service #开机启动
systemctl disable httpd.service #开机不启动
第三、检查httpd状态
systemctl status httpd.service

网站根目录 : /var/www/html/
启动apache : centos6.5 -> service httpd start
centos7 -> cd /bin -> systemctl start httpd.service

启动服务(等同于service httpd start): systemctl start httpd.service
停止服务(等同于service httpd stop) : systemctl stop httpd.service
重启服务(等同于service httpd restart): systemctl restart httpd.service
查看服务是否运行(等同于service httpd status): systemctl status httpd.service
开机自启动服务(等同于chkconfig httpd on): systemctl enable httpd.service
开机时禁用服务(等同于chkconfig httpd on): systemctl disable httpd.service

修改配置

技术分享图片

 

添加以上代码;

centso apache2.4 配置 php7.1

原文:https://www.cnblogs.com/benpaodegegen/p/10648096.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!