zoukankan      html  css  js  c++  java
  • centso apache2.4 配置 php7.1

    ----------------
    安装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

    修改配置

    添加以上代码;

  • 相关阅读:
    spring四种依赖注入方式
    java利用反射来调用一个类的私有方法
    IOC和AOP的基本概念
    开业大吉
    1752年9月奇怪的日历
    找到一个软件测试的学习网址,保留一下
    学习任务
    操作系统的第一次作业
    答题
    第四章读后感
  • 原文地址:https://www.cnblogs.com/benpaodegegen/p/10648096.html
Copyright © 2011-2022 走看看