环境:CentOS 6.5 64bit
一、apache2(httpd)安装
[root@localhost ~]# yum install httpd
[root@localhost ~]# rpm -qi httpd
Name : httpd Relocations: (not relocatable)
Version : 2.2.15 Vendor: CentOS
Release : 60.el6.centos.6 Build Date: Thu 19 Oct 2017 09:44:47 AM PDT
Install Date: Thu 11 Jan 2018 09:42:17 PM PST Build Host: c1bl.rdu2.centos.org
Group : System Environment/Daemons Source RPM: httpd-2.2.15-60.el6.centos.6.src.rpm
Size : 3166418 License: ASL 2.0
Signature : RSA/SHA1, Fri 20 Oct 2017 10:13:17 AM PDT, Key ID 0946fca2c105b9de
Packager : CentOS BuildSystem <http://bugs.centos.org>
URL : http://httpd.apache.org/
Summary : Apache HTTP Server
Description :
The Apache HTTP Server is a powerful, efficient, and extensible
web server.
二、httpd 启动
[root@localhost ~]# service httpd start
三、httpd 状态查看
[root@localhost ~]# service httpd status
四、httpd 停止
[root@localhost ~]# service httpd stop
配置相关:http://blog.51cto.com/sohudrgon/1589775