在Amazon EC2(Linux)上安装Apache web服务器
安装
$ sudo yum install httpd
启动, 停止,重新启动, 查看状态
$ sudo systemctl start httpd
$ sudo systemctl stop httpd
$ sudo systemctl restart httpd
$ sudo systemctl status httpd
当EC2重启时, 让apache自动启动
$ systemctl enable httpd
在Amazon EC2(Linux)上安装Apache web服务器
安装
$ sudo yum install httpd
启动, 停止,重新启动, 查看状态
$ sudo systemctl start httpd
$ sudo systemctl stop httpd
$ sudo systemctl restart httpd
$ sudo systemctl status httpd
当EC2重启时, 让apache自动启动
$ systemctl enable httpd