Linux centos install Apache

Linux centos install Apache

1、下载apache   

官网:http://httpd.apache.org/

使用wget下载:

wget http://mirrors.cnnic.cn/apache//httpd/httpd-2.2.32.tar.gz

解压以及安装:

[root@localhost httpd-2.2.32]# tar zxvf httpd-2.2.32.tar.gz 
[root@localhost httpd-2.2.32]# cd httpd-2.2.32
[root@localhost httpd-2.2.32]# ./configure  --prefix=/usr/local/httpd
[root@localhost httpd-2.2.32]# make && make install
[root@localhost httpd-2.2.32]# service httpd status
httpd (pid  25733) is running...
[root@localhost httpd-2.2.32]# service httpd stop
Stopping httpd:                                            [  OK  ]
[root@localhost httpd-2.2.32]# service httpd start
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain for ServerName
                                                           [  OK  ]
[root@localhost httpd-2.2.32]# service httpd stop
Stopping httpd:                                            [  OK  ]
[root@localhost httpd-2.2.32]# service httpd status
httpd is stopped
[root@localhost httpd-2.2.32]#


发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注