标签:code 没有 命令 search art sea 失败 find oar
命令
# 你要找的是 apache, 关我 httpd 什么事
# httpd 就是 apache...
> systemctl status httpd
> rpm -qa | grep http
httpd-manual-2.4.6-89.el7.centos.noarch
httpd-2.4.6-89.el7.centos.x86_64
http-parser-2.7.1-5.el7_4.x86_64
httpd-tools-2.4.6-89.el7.centos.x86_64
命令1
# 已经装了 httpd
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
Active: inactive (dead)
Docs: man:httpd(8)
man:apachectl(8)
命令2
# httpd 就是我们要找的 apache
httpd-manual-2.4.6-89.el7.centos.noarch
httpd-2.4.6-89.el7.centos.x86_64
http-parser-2.7.1-5.el7_4.x86_64
httpd-tools-2.4.6-89.el7.centos.x86_64
命令
> yum remove httpd
结果
# 卸载完毕
Removed:
httpd.x86_64 0:2.4.6-89.el7.centos
Dependency Removed:
httpd-manual.noarch 0:2.4.6-89.el7.centos mod_fcgid.x86_64 0:2.3.9-4.el7_4.1 mod_ssl.x86_64 1:2.4.6-89.el7.centos
命令
> yum search httpd
> yum install httpd
命令
> rpm -qa| grep httpd
> systemctl status httpd
命令1
httpd-tools-2.4.6-90.el7.centos.x86_64
httpd-2.4.6-90.el7.centos.x86_64
命令2
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
Active: inactive (dead)
Docs: man:httpd(8)
man:apachectl(8)
命令
# 启动
> systemctl start httpd
# 停止
> systemctl stop httpd
启动失败
Jan 13 01:34:49 localhost.localdomain systemd[1]: Starting The Apache HTTP Server...
Jan 13 01:34:49 localhost.localdomain httpd[2104]: AH00558: httpd: Could not reliably determine the server's fully qualifi...ssage
Jan 13 01:34:49 localhost.localdomain httpd[2104]: httpd (pid 1966) already running
Jan 13 01:34:49 localhost.localdomain kill[2106]: kill: cannot find process ""
Jan 13 01:34:49 localhost.localdomain systemd[1]: httpd.service: control process exited, code=exited status=1
Jan 13 01:34:49 localhost.localdomain systemd[1]: Failed to start The Apache HTTP Server.
Jan 13 01:34:49 localhost.localdomain systemd[1]: Unit httpd.service entered failed state.
Jan 13 01:34:49 localhost.localdomain systemd[1]: httpd.service failed.
查询进程
# 卧槽, 这都是啥
# 不知道咋来的
# 杀掉了 1966, 还是不行
> ps -ef | grep httpd
apache 1966 1 0 01:29 ? 00:00:00 /usr/sbin/httpd --help
apache 1967 1 0 01:29 ? 00:00:00 /usr/sbin/httpd --help
apache 1968 1 0 01:29 ? 00:00:00 /usr/sbin/httpd --help
apache 1969 1 0 01:29 ? 00:00:00 /usr/sbin/httpd --help
apache 1970 1 0 01:29 ? 00:00:00 /usr/sbin/httpd --help
apache 1971 1 0 01:29 ? 00:00:00 /usr/sbin/httpd --help
root 2139 1208 0 01:36 pts/1 00:00:00 grep --color=auto httpd
Server - Apache - 基本操作: 安装, 卸载, 启停
标签:code 没有 命令 search art sea 失败 find oar
原文地址:https://www.cnblogs.com/xy14/p/12401555.html