zoukankan      html  css  js  c++  java
  • 安装apache的注意事项

      在安装apache的时候我们一般都会用yum一键安装,但是很少去考虑相关的依赖包有什么,所以今天特意做一个记录,方便以后编译安装的时候,进展顺利。

    yum install httpd

    Installing:
    httpd    x86_64    2.4.6-67.el7.centos.6   updates    2.7 M
    Installing for dependencies:
    apr      x86_64    1.4.8-3.el7_4.1             updates    103 k
    apr-util     x86_64    1.5.2-6.el7                    base          92 k
    httpd-tools x86_64     2.4.6-67.el7.centos.6        updates          88 k
    mailcap    noarch          2.1.41-2.el7                      base               31 k

      安装完了之后,我在启动的时候发现了程序报错,内容大致如下,

    Mar 22 17:18:13 iZ28j8pzwehZ kill[19236]: kill: cannot find process ""
    Mar 22 17:18:13 iZ28j8pzwehZ systemd[1]: httpd.service: control process exit...1
    Mar 22 17:18:13 iZ28j8pzwehZ systemd[1]: Failed to start The Apache HTTP Server.
    Mar 22 17:18:13 iZ28j8pzwehZ systemd[1]: Unit httpd.service entered failed s....
    Mar 22 17:18:13 iZ28j8pzwehZ systemd[1]: httpd.service failed.
    Hint: Some lines were ellipsized, use -l to show in full.

      经过调查之后,发现通过查询机器上现有的apache进程,发现了一些程序正在运行导致了apache的启动错误,因为在这里将这些进程杀掉即可正常启动。

    查询apache进程命令

    ps -ef|grep httpd

      这个时候就能够正常启动了,至于为什么会发生这种情况的原因,作者还在调查当中。

  • 相关阅读:
    解决使用gomod后goland导包报红问题
    Golang写文件的坑
    Golang去除字符串前后空格
    Golang通过结构体解析和封装XML
    Golang获取CPU、内存、硬盘使用率
    Golang数组和切片的区别
    Golang修改操作系统时间
    Golang中GBK和UTF8编码格式互转
    Golang中的各种时间操作
    Golang十六进制字符串和byte数组互转
  • 原文地址:https://www.cnblogs.com/cnqfz/p/8624521.html
Copyright © 2011-2022 走看看