Linux centos install Apache

Posted by

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]#


One comment

  1. YOU NEED QUALITY VISITORS for your: yshuq.com

    My name is Nestor Noggle, and I’m a Web Traffic Specialist. I can get:
    – visitors from search engines
    – visitors from social media
    – visitors from any country you want
    – very low bounce rate & long visit duration

    CLAIM YOUR 24 HOURS FREE TEST => https://bit.ly/3h750yC

Comments are closed.