[root@CentOSNode1 bin]# yum install httpd
已加载插件:fastestmirror, langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Loading mirror speeds from cached hostfile
* base: mirrors.huaweicloud.com
* extras: mirrors.163.com
* updates: mirrors.163.com
正在解决依赖关系
--> 正在检查事务
---> 软件包 httpd.x86_64.0.2.4.6-67.el7.centos.6 将被 升级
---> 软件包 httpd.x86_64.0.2.4.6-80.el7.centos 将被 更新
--> 正在处理依赖关系 httpd-tools = 2.4.6-80.el7.centos,它被软件包 httpd-2.4.6-80.el7.centos.x86_64 需要
--> 正在检查事务
---> 软件包 httpd-tools.x86_64.0.2.4.6-67.el7.centos.6 将被 升级
---> 软件包 httpd-tools.x86_64.0.2.4.6-80.el7.centos 将被 更新
--> 解决依赖关系完成
依赖关系解决
=============================================================================================================================================================================================
Package 架构 版本 源 大小
=============================================================================================================================================================================================
正在更新:
httpd x86_64 2.4.6-80.el7.centos base 2.7 M
为依赖而更新:
httpd-tools x86_64 2.4.6-80.el7.centos base 89 k
事务概要
=============================================================================================================================================================================================
升级 1 软件包 (+1 依赖软件包)
总下载量:2.8 M
Is this ok [y/d/N]: y
Downloading packages:
No Presto metadata available for base
(1/2): httpd-tools-2.4.6-80.el7.centos.x86_64.rpm | 89 kB 00:00:02
(2/2): httpd-2.4.6-80.el7.centos.x86_64.rpm | 2.7 MB 00:00:04
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
总计 628 kB/s | 2.8 MB 00:00:04
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
正在更新 : httpd-tools-2.4.6-80.el7.centos.x86_64 1/4
正在更新 : httpd-2.4.6-80.el7.centos.x86_64 2/4
清理 : httpd-2.4.6-67.el7.centos.6.x86_64 3/4
清理 : httpd-tools-2.4.6-67.el7.centos.6.x86_64 4/4
验证中 : httpd-tools-2.4.6-80.el7.centos.x86_64 1/4
验证中 : httpd-2.4.6-80.el7.centos.x86_64 2/4
验证中 : httpd-2.4.6-67.el7.centos.6.x86_64 3/4
验证中 : httpd-tools-2.4.6-67.el7.centos.6.x86_64 4/4
更新完毕:
httpd.x86_64 0:2.4.6-80.el7.centos
作为依赖被升级:
httpd-tools.x86_64 0:2.4.6-80.el7.centos
完毕!
[root@CentOSNode1 bin]# systemctl start httpd.service
[root@CentOSNode1 bin]# systemctl status httpd.service
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
Active: active (running) since 六 2018-05-26 13:04:06 CST; 9s ago
Docs: man:httpd(8)
man:apachectl(8)
Main PID: 5786 (httpd)
Status: "Total requests: 0; Current requests/sec: 0; Current traffic: 0 B/sec"
CGroup: /system.slice/httpd.service
├─5786 /usr/sbin/httpd -DFOREGROUND
├─5790 /usr/sbin/httpd -DFOREGROUND
├─5793 /usr/sbin/httpd -DFOREGROUND
├─5794 /usr/sbin/httpd -DFOREGROUND
├─5795 /usr/sbin/httpd -DFOREGROUND
└─5796 /usr/sbin/httpd -DFOREGROUND
5月 26 13:04:05 CentOSNode1 systemd[1]: Starting The Apache HTTP Server...
5月 26 13:04:06 CentOSNode1 httpd[5786]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 192.168.72.141. Set the 'ServerName' di...this message
5月 26 13:04:06 CentOSNode1 systemd[1]: Started The Apache HTTP Server.
Hint: Some lines were ellipsized, use -l to show in full.
[root@CentOSNode1 bin]# systemctl enable httpd.service
Created symlink from /etc/systemd/system/multi-user.target.wants/httpd.service to /usr/lib/systemd/system/httpd.service.
[root@CentOSNode1 bin]# systemctl status httpd.service
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: active (running) since 六 2018-05-26 13:04:06 CST; 41s ago
Docs: man:httpd(8)
man:apachectl(8)
Main PID: 5786 (httpd)
Status: "Total requests: 0; Current requests/sec: 0; Current traffic: 0 B/sec"
CGroup: /system.slice/httpd.service
├─5786 /usr/sbin/httpd -DFOREGROUND
├─5790 /usr/sbin/httpd -DFOREGROUND
├─5793 /usr/sbin/httpd -DFOREGROUND
├─5794 /usr/sbin/httpd -DFOREGROUND
├─5795 /usr/sbin/httpd -DFOREGROUND
└─5796 /usr/sbin/httpd -DFOREGROUND
5月 26 13:04:05 CentOSNode1 systemd[1]: Starting The Apache HTTP Server...
5月 26 13:04:06 CentOSNode1 httpd[5786]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 192.168.72.141. Set the 'ServerName' di...this message
5月 26 13:04:06 CentOSNode1 systemd[1]: Started The Apache HTTP Server.
Hint: Some lines were ellipsized, use -l to show in full.
[root@CentOSNode1 bin]#
已加载插件:fastestmirror, langpacks, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Loading mirror speeds from cached hostfile
* base: mirrors.huaweicloud.com
* extras: mirrors.163.com
* updates: mirrors.163.com
正在解决依赖关系
--> 正在检查事务
---> 软件包 httpd.x86_64.0.2.4.6-67.el7.centos.6 将被 升级
---> 软件包 httpd.x86_64.0.2.4.6-80.el7.centos 将被 更新
--> 正在处理依赖关系 httpd-tools = 2.4.6-80.el7.centos,它被软件包 httpd-2.4.6-80.el7.centos.x86_64 需要
--> 正在检查事务
---> 软件包 httpd-tools.x86_64.0.2.4.6-67.el7.centos.6 将被 升级
---> 软件包 httpd-tools.x86_64.0.2.4.6-80.el7.centos 将被 更新
--> 解决依赖关系完成
依赖关系解决
=============================================================================================================================================================================================
Package 架构 版本 源 大小
=============================================================================================================================================================================================
正在更新:
httpd x86_64 2.4.6-80.el7.centos base 2.7 M
为依赖而更新:
httpd-tools x86_64 2.4.6-80.el7.centos base 89 k
事务概要
=============================================================================================================================================================================================
升级 1 软件包 (+1 依赖软件包)
总下载量:2.8 M
Is this ok [y/d/N]: y
Downloading packages:
No Presto metadata available for base
(1/2): httpd-tools-2.4.6-80.el7.centos.x86_64.rpm | 89 kB 00:00:02
(2/2): httpd-2.4.6-80.el7.centos.x86_64.rpm | 2.7 MB 00:00:04
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
总计 628 kB/s | 2.8 MB 00:00:04
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
正在更新 : httpd-tools-2.4.6-80.el7.centos.x86_64 1/4
正在更新 : httpd-2.4.6-80.el7.centos.x86_64 2/4
清理 : httpd-2.4.6-67.el7.centos.6.x86_64 3/4
清理 : httpd-tools-2.4.6-67.el7.centos.6.x86_64 4/4
验证中 : httpd-tools-2.4.6-80.el7.centos.x86_64 1/4
验证中 : httpd-2.4.6-80.el7.centos.x86_64 2/4
验证中 : httpd-2.4.6-67.el7.centos.6.x86_64 3/4
验证中 : httpd-tools-2.4.6-67.el7.centos.6.x86_64 4/4
更新完毕:
httpd.x86_64 0:2.4.6-80.el7.centos
作为依赖被升级:
httpd-tools.x86_64 0:2.4.6-80.el7.centos
完毕!
[root@CentOSNode1 bin]# systemctl start httpd.service
[root@CentOSNode1 bin]# systemctl status httpd.service
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
Active: active (running) since 六 2018-05-26 13:04:06 CST; 9s ago
Docs: man:httpd(8)
man:apachectl(8)
Main PID: 5786 (httpd)
Status: "Total requests: 0; Current requests/sec: 0; Current traffic: 0 B/sec"
CGroup: /system.slice/httpd.service
├─5786 /usr/sbin/httpd -DFOREGROUND
├─5790 /usr/sbin/httpd -DFOREGROUND
├─5793 /usr/sbin/httpd -DFOREGROUND
├─5794 /usr/sbin/httpd -DFOREGROUND
├─5795 /usr/sbin/httpd -DFOREGROUND
└─5796 /usr/sbin/httpd -DFOREGROUND
5月 26 13:04:05 CentOSNode1 systemd[1]: Starting The Apache HTTP Server...
5月 26 13:04:06 CentOSNode1 httpd[5786]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 192.168.72.141. Set the 'ServerName' di...this message
5月 26 13:04:06 CentOSNode1 systemd[1]: Started The Apache HTTP Server.
Hint: Some lines were ellipsized, use -l to show in full.
[root@CentOSNode1 bin]# systemctl enable httpd.service
Created symlink from /etc/systemd/system/multi-user.target.wants/httpd.service to /usr/lib/systemd/system/httpd.service.
[root@CentOSNode1 bin]# systemctl status httpd.service
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: active (running) since 六 2018-05-26 13:04:06 CST; 41s ago
Docs: man:httpd(8)
man:apachectl(8)
Main PID: 5786 (httpd)
Status: "Total requests: 0; Current requests/sec: 0; Current traffic: 0 B/sec"
CGroup: /system.slice/httpd.service
├─5786 /usr/sbin/httpd -DFOREGROUND
├─5790 /usr/sbin/httpd -DFOREGROUND
├─5793 /usr/sbin/httpd -DFOREGROUND
├─5794 /usr/sbin/httpd -DFOREGROUND
├─5795 /usr/sbin/httpd -DFOREGROUND
└─5796 /usr/sbin/httpd -DFOREGROUND
5月 26 13:04:05 CentOSNode1 systemd[1]: Starting The Apache HTTP Server...
5月 26 13:04:06 CentOSNode1 httpd[5786]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 192.168.72.141. Set the 'ServerName' di...this message
5月 26 13:04:06 CentOSNode1 systemd[1]: Started The Apache HTTP Server.
Hint: Some lines were ellipsized, use -l to show in full.
[root@CentOSNode1 bin]#