Apache2

来源:互联网 发布:淘宝偏远地区有哪些 编辑:程序博客网 时间:2024/05/16 00:53

博主:haitianisgood

博客网址:
http://blog.csdn.net/haitianisgood/article/details/72566862

安装Apache2

环境:

Ubuntu Server 14.04 64

安装

1. 更新软件列表

$sudo apt-get update

2. 安装apache

$sudo apt-get install apache2  apache2-doc

浏览器中输入:http://localhost或者http://IP
出现下面界面表示安装成功:
这里写图片描述

隐藏服务器信息

vim /etc/apache2/apache2.conf 文件最后添加下面内容:

ServerTokens Prod

重新载入配置文件或重启apache2

#service apache2 reload

参考网址:

http://wiki.ubuntu.org.cn/Apache#.E9.9A.90.E8.97.8F.E6.9C.8D.E5.8A.A1.E5.99.A8.E4.BF.A1.E6.81.AF

原创粉丝点击