安装步骤

  1. 在ubantu命令行中输入:sudo apt-get update(有些可能不需要这步)
  2. 输入:sudo apt-get install apache2,继续输入 y 就行
  3. 安装完成后输入:sudo /etc/init.d/apache2 restart,返回结果为[OK]说明启动成功
  4. 输入:curl 127.0.0.1,访问apache主页,返回网页中有 it works!说明可以正常访问
  5. 另外如果阿里云80端口默认是关闭的,所以需要在阿里云里实例后面的“更多”点击“安全组配置”,再点击“配置规则”,再点击“添加安全组规则”,将80添加进去就行

阿里云Ubuntu系统安装Apache服务器
然后只要备案完成后就能用来打造自己的网站啦阿里云Ubuntu系统安装Apache服务器

相关文章:

  • 2021-06-29
  • 2021-06-27
  • 2021-09-25
  • 2022-02-11
  • 2022-12-23
  • 2021-06-15
  • 2021-10-04
  • 2021-07-31
猜你喜欢
  • 2021-07-17
  • 2021-07-03
  • 2021-11-09
  • 2021-11-01
  • 2022-12-23
相关资源
相似解决方案