目录
一、Apache的安装
在 web 被访问时通常使用 http:// 的方式 , http://为 超文本传输协议http:// 超文本传输协议 提供软件 :ApachenginxstgwjfeTengine
- 安装apache的命令
[root@westosa100 ~]# dnf install httpd.x86_64
二、Apache的启用
- 命令
[root@westosa100 ~]# systemctl enable --now httpd ##开启服务并设定服务位开机启动
Created symlink /etc/systemd/system/multi-user.target.wants/httpd.service → /usr/lib/systemd/system/httpd.service.
[root@westosa100 ~]# firewall-cmd --list-all ##查看火墙信息
public (active)
target: default
icmp-block-inversion: no
interfaces: ens3
sources:
services: cockpit dhcpv6-client ssh
ports:
protocols:
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules:
[root@westosa100 ~]# firewall-cmd -