摘要: 今天从Apache官网上http://httpd.apache.org/下载httpd web服务器,由于我的虚拟机上之前安装过,我先yum remove httpd进行卸载,然后重新安装。我采用的是源码安装,先进行./configure --prefix=/usr/local/apahce --enable-so ,提示以下错误:configure: error: APR not found. Please read the documentation.解决办法wgethttp://apache.freelamp.com/apr/apr-1.4.2.tar.gz 下载apr./confi.. 阅读全文
posted @ 2013-10-07 15:42 Rabbit_Dale 阅读(18076) 评论(0) 推荐(1) 编辑
摘要: 之前安装Centos时候,没有怎么注意,将自己的名字设置为hostname,总感觉好别扭,很不习惯,如是就想把hostname改一下,用到hostname命令。首先用hostname命令查看当前的主机名,核对一下当前的主机名。修改hostname过程:(1)修改/etc/hosts文件,将包含当前的hostname改为新的hostname。我将shiwei改为rabbit。补充一下: /etc这个目录用来存放所有的系统管理所需要的配置文件和子目录。进入后可以看到很多配置文件 /etc/hosts文件的作用相当于DNS,提供IP地址hostname的对应。(2)修改/etc/syscon... 阅读全文
posted @ 2013-10-07 10:35 Rabbit_Dale 阅读(15530) 评论(1) 推荐(1) 编辑
摘要: 今天安装Apache httpd web服务器时,从官方网站上http://www.apache.org/dyn/closer.cgi下载httpd,然后在centos下解压,安装过程分为三部分: (1)./configure (2)make (3)make install (需要root权限)默认安装在/usr/sbin/下,执行apachectl start时候,提示如下错误:httpd: apr_sockaddr_info_get() failed for shiweihttpd: Could not reliably determine the server's ful... 阅读全文
posted @ 2013-10-07 10:20 Rabbit_Dale 阅读(39614) 评论(0) 推荐(2) 编辑