最基础-apache安装部署(httpd-2.4.52.tar.gz&&Linux)
1. 下载软件包并解压
# tar -xvf httpd-2.4.52.tar.gz
2. 安装依赖软件
# yum install apr*
3. 进入解压后的目录,编译安装
[root@localhost httpd-2.4.52]# pwd /root/httpd-2.4.52 [root@localhost httpd-2.4.52]# ./configure
执行结果:

[root@localhost httpd-2.4.52]# make && make install
执行结果

4. 启停服务
进入目录:/usr/local/apache2/bin 启动服务:[root@localhost bin]# ./apachectl start 访问网页:ip:80
网页显示结果:

查看进程

停止服务
[root@localhost bin]# ./apachectl stop
再次查看进程

此时网页也无法访问

浙公网安备 33010602011771号