因此,我找到了我最喜欢的安装说明灯。
AWS 仅提供使用 yum 的 AMI 说明,而我没有使用 yum。
ubuntu@ip:~$ sudo ufw status
Status: active
To Action From
-- ------ ----
Apache ALLOW Anywhere
OpenSSH ALLOW Anywhere
Apache Full ALLOW Anywhere
Apache Secure ALLOW Anywhere
Apache (v6) ALLOW Anywhere (v6)
OpenSSH (v6) ALLOW Anywhere (v6)
Apache Full (v6) ALLOW Anywhere (v6)
Apache Secure (v6) ALLOW Anywhere (v6)
我已经运行了这个命令
sudo iptables -A INPUT -p tcp --dport 80 -j ACCEPT
是的,我已经配置了防火墙规则
Port range Protocol Source Security groups
80 TCP 0.0.0.0/0 launch-wizard-3
80 TCP ::/0 launch-wizard-3
22 TCP 0.0.0.0/0 launch-wizard-3
22 TCP ::/0 launch-wizard-3
443 TCP 0.0.0.0/0 launch-wizard-3
从外部 IP 访问 Web 服务器的神奇命令是什么?谢谢!
哦,回答这个问题我是否检查过 Apache 的状态。是的,我检查了。
sudo systemctl status apache2
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2021-05-04 20:31:22 UTC; 2h 49min ago
Docs: https://httpd.apache.org/docs/2.4/
Process: 2117 ExecReload=/usr/sbin/apachectl graceful (code=exited, status=0/SUCCESS)
Main PID: 1530 (apache2)
Tasks: 55 (limit: 2326)
Memory: 6.6M
CGroup: /system.slice/apache2.service
├─1530 /usr/sbin/apache2 -k start
├─2121 /usr/sbin/apache2 -k start
└─2122 /usr/sbin/apache2 -k start