Linux搭建WEB服务器

 时间:2024-10-25 19:34:25

1、安装Apache(1)在安装HTTPServer之前需安装APR(ApachePortableRuntime)和APR-util安装APR(http://apr.apache.org/)$tarzxvfapr-1.4.6.tar.gz$cdapr-1.4.6/$./configure$make$sudomakeinstall

2、(2)安装APR-util(http://apr.apache.org/)$tarzxvfapr-util-1.4.1.tar.gz$cdapr-util-1.4.1$./configure–with-apr=/usr/local/apr(whereisapr)$make$sudomakeinstall

3、(3)安装httpd-2.4.2.tar.bz2(http://httpd.apache.org/)默认安装位置/usr/local/apache2网页放在/usr/local/apache2/htdocs配置文件/usr/local/apache2/conf/httpd.conf$tarjxvfhttpd-2.4.2.tar.bz2$cdhttpd-2.4.2/$./configure$make$sudomakeinstall

4、(4)启动HTTPServer$sudo/usr/local/apache2/bin/apachectlstartAH00558:httpd:Couldnotreliablydeterminetheserver’sfullyqualifieddomainname,using127.0.1.1.Setthe‘ServerName’directivegloballytosuppressthismessage

5、(5)查看http是否正常运行$netstat-a|grephttptcp00*:http*:*LISTEN

6、(6)在浏览器输入127.0.0.1如果正常应该显示“Itworks!”

  • jasperreport怎么添加字体
  • 回购价格怎么算?
  • 怎么画扫黑除恶手抄报
  • 如何进行利润分配的初步分析?
  • 天赋基因检测的流程
  • 热门搜索
    南湖旅游 莱芜旅游景点 加拿大旅游签证 齐齐哈尔旅游景点大全 厦门旅游景点大全介绍 世界旅游胜地排行榜 香港长洲岛旅游攻略 郑州市旅游 舟山旅游地图 烟台旅游团