安装apache


yum install httpd



现在配置下系统使得Apache能够随着系统启动而启动…

chkconfig --levels 235 httpd on


... 启动Apache:

/etc/init.d/httpd start

打开浏览器输入
http://127.0.0.1/
即可看到Apache的预留页。

然后在/var/www/html路径下创建文件index.html
内容为
<html>
<head>Welcome to my web.</head>

</html>

在浏览器中输入

http://127.0.0.1 或者 localhost

即可看到该网页。

Welcome to my web.

相关文章:

  • 2021-12-10
  • 2021-12-17
  • 2021-07-08
  • 2021-10-06
  • 2022-02-03
  • 2022-12-23
  • 2021-12-16
  • 2021-11-30
猜你喜欢
  • 2021-11-30
  • 2021-11-30
  • 2022-01-22
  • 2021-11-11
  • 2021-12-16
  • 2021-11-30
相关资源
相似解决方案