Apache 服务器的安装

来自CloudWiki
Cloud17讨论 | 贡献2017年9月24日 (日) 03:52的版本 (创建页面,内容为“== 启动阿里云云主机== ==远程连接云主机== ==安装apache== ===安装软件源=== #yum install httpd ===设置开机启动=== #chkconf…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航搜索

启动阿里云云主机

远程连接云主机

安装apache

安装软件源

   #yum install httpd

设置开机启动

   #chkconfig --levels 35 httpd on

重启apache服务

   #service httpd restart

暂时关闭防火墙

   #service iptables stop
   #chkconfig iptables off

测试apache是否正常工作

   使用地址 http://[虚拟机IP] 在物理机浏览器上访问应该能看到如下画面:
   1-8.png