Apache HTTP Server(也被称为 Apache httpd)是 Apache 软件基金会创建的一个健壮的、工业级的、功能强大的、开放源代码的 HTTP(Web)服务器。

需要工具:联网的Centos主机一台

第一步:使用yum命令安装httpd:
yum –y install httpd
Centos Apache服务安装与配置

先说一下Apache服务可以进行如下操作(也是经常用的操作):
启动:service httpd start
停止:service httpd stop
重新启动:service httpd restart
查询状态:service httpd status

第二步:启动服务器
Centos Apache服务安装与配置

如果是本机系统那么在图形化界面的浏览器中打上127.0.0.1,然后回车;如果是公网服务器,则在任意浏览器上打上公网IP,或者解析好的域名即可)
然在在网页上看到:
Centos Apache服务安装与配置

编辑/etc/httpd/conf/httpd.conf的内容:
vi /etc/httpd/conf/httpd.conf,可以修改为80端口为其他端口,然后只需在IP地址后面加上端口号就可访问。
Centos Apache服务安装与配置

这是Apache服务配置文件的详细讲解:
http://download.csdn.net/download/hpf247/10133005

相关文章:

  • 2021-09-25
  • 2021-12-31
猜你喜欢
  • 2021-11-28
  • 2021-07-01
  • 2021-09-01
  • 2021-12-05
  • 2021-04-02
  • 2021-07-11
相关资源
相似解决方案