“Apache 服务器的安装”的版本间的差异

来自CloudWiki
跳转至: 导航搜索
远程连接云主机
第19行: 第19行:
  
 
     [[文件:1-8.png]]
 
     [[文件:1-8.png]]
 
返回 [[网页设计与开发]]
 

2018年10月21日 (日) 08:08的版本

申请阿里云云主机

远程连接云主机

安装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