write down,forget
  • adidaseqt
  • eqtturbored
  • eqtsupport9317
  • eqtsupport
  • 9317adidas
  • adidaseqtboost9317
  • eqtsupport93
  • 9317eqt
  • eqt support 9317 adv
  • support 9317 adv
  • eqtadv
  • eqt9317
  • eqtadv9317
  • support93
  • originalseqt
  • adidas eqt
  • eqt support 9317
  • eqt support
  • eqt adv
  • eqt 9317
  • 存档 Archives : June, 2013

    Apache,httpd: apr_sockaddr_info_get() failed for apache

    <Category: Linux, 流媒体> Comments Off on Apache,httpd: apr_sockaddr_info_get() failed for apache

    上架前夜,ams不给力,居然起不来了,请求提示,empty response,急死人啊。

    转:http://blog.csdn.net/lyjtynet/article/details/4213173
    httpd: apr_sockaddr_info_get() failed for hoteel
    httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
    我在service httpd restart的时候提示上述信息的。虽然启动成功了,但是也是很郁闷的。
    这是因为我在配置DNS的时候hostname hoteel造成的。
    重新hostname localhost就可以了。
    我在网上找来一些有关这方面的信息,就顺便贴在这里了。
    1
    在启动 httpd 时出现
    Starting httpd: httpd: apr_sockaddr_info_get() failed for MYHOST
    httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName.
    这个问题应该是没有在 /etc/httpd/conf/httpd.conf 中设定 ServerName 所以它会用主机上的名称来取代,首先会去找 /etc/hosts 中有没有主机的定义。
    所以要解决这个问题可以设定 ServerName 或者在 /etc/hosts 中填入自己的主机名称 MYHOST,像这样:
    >vi /etc/hosts
    127.0.0.1 localhost.localdomain localhost MYHOST

    2
    在Linux下安装完Apache 2.2.6,启动HTTP服务就报错,似乎不影响服务的使用,但是也挺别扭的。

    [root@linux http]# ./apachectl start
    httpd: apr_sockaddr_info_get() failed for linux(在BSD上是apr_sockaddr_info_get() failed for freebsdla)
    httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName

    经分析发现是apache的conf目录下的配置文件httpd.conf中关于hostname设置和/etc/sysconfig/network中的HOSTNAME设置不统一导致的,修改成统一的主机名即可解决该问题。

    注:/etc/sysconfig/network 默认主机名是:HOSTNAME=localhost.localdomain

    PS:网上有这种办法,似乎是没用的,因为我认为apache在编译安装过程中会编译ARP的,因此下述操作有点多余。

    apr 和apr-util包含在Apache httpd的发行源代码中,并且在绝大多数情况下使用都不会出现问题。当然,如果apr或apr-util的1.0或1.1版本已经安装在你的系统中了, 则必须将你的apr/apr-util升级到1.2版本,或者将httpd单独分开编译。要使用发行源代码中自带的apr/apr-util源代码进行安 装,你必须手动完成:

    # 编译和安装 apr 1.2

    apr
    ./configure –prefix=/x/httpd/apr
    make
    make install

    apr-util
    ./configure –prefix=/x/httpd/apr_util –with-apr=/x/httpd/apr
    make
    make install

    apache
    ./configure –prefix=/x/httpd/apache2 /
    –enable-so /
    –enable-cgi /
    –enable-rewrite /
    –enable-mods-shared=all /
    –with-apr=/x/httpd/apr /
    –with-apr-util=/x/httpd/apr_util

    LDFLAGS=”-L/usr/lib64 -L/lib64″

    本机正确设定说明 必须为同一的

    [root@spring ~]# nl /etc/hosts
    1 # Do not remove the following line, or various programs
    2 # that require network functionality will fail.
    3 127.0.0.1 localhost.localdomain spring

    [root@spring ~]# nl /etc/sysconfig/network
    1 NETWORKING=yes
    2 NETWORKING_IPV6=no
    3 HOSTNAME=spring
    4 #GATEWAY=192.168.8.1

    [root@spring ~]# less /etc/httpd/conf/httpd.conf|grep ServerName
    # ServerName gives the name and port that the server uses to identify itself.
    #ServerName www.example.com:80
    ServerName 127.0.0.1

    本文来自: Apache,httpd: apr_sockaddr_info_get() failed for apache

    centos6.3+yum

    <Category: Linux> Comments Off on centos6.3+yum

    新安装的干净系统,居然报个错.

    解决方案:

    参考来源:
    http://www.clearfoundation.com/component/option,com_kunena/Itemid,232/catid,26/func,view/id,45278/

    http://mirror1.timburgess.net/clearos/community/6.3.0/os/x86_64/ClearOS/

    本文来自: centos6.3+yum

    webbench

    <Category: Linux> Comments Off on webbench

    官方网站:http://home.tiscali.cz/~cz210552/webbench.html
    下载地址:http://home.tiscali.cz/~cz210552/distfiles/webbench-1.5.tar.gz
    wget http://www.honglei.net/file/webbench-1.5.tar.gz
    tar zxvf webbench-1.5.tar.gz
    cd webbench-1.5
    make && make install

    本文来自: webbench

    mysql开启远程访问权限错误

    <Category: mysql> Comments Off on mysql开启远程访问权限错误

    mysql需要开放远程访问端口,结果。。
    mysql> update user set host =’%’ where user =’root’;
    ERROR 1062 (23000): Duplicate entry ‘%-root’ for key ‘PRIMARY’

    root用户好几个,有几个没有密码
    mysql> update user set password = PASSWORD(‘xxx’) where user=’root’
    -> ;
    删除最后一个root用户:
    localhost root

    然后确保有一个%就可以了。

    本文来自: mysql开启远程访问权限错误

    elasticsearch插件bug fix

    <Category: Diving Into ElasticSearch, 小道消息> Comments Off on elasticsearch插件bug fix

    lucene4变化不少:http://blog.mikemccandless.com/2012/07/lucene-400-alpha-at-long-last.html
    自定义的analyzer的要求也更加严格,之前写的几个插件,都报错了。
    错误具体表现在第一次分词没有问题,第二次及后续的分词都是空,感谢各位网友的积极响应和测试反馈,谢谢。

    具体是什么原因呢?

    仔细研究了下代码,发现reset多加了一个参数,汗,fix如下:

    –    public void reset(Reader input) throws IOException {
    +    public void reset() throws IOException {

     

    受影响的插件:pinyin、string2int、stconvert

    这次都是按jdk6重新编译的,上次反映的jdk7的问题也一并解决了。

     

    阅读这篇文章的其余部分 »

    本文来自: elasticsearch插件bug fix

    gitolite

    <Category: 小道消息> Comments Off on gitolite

    外出进场,临时需要搭建git服务器,但是又不能脱离统一的源码管理。

    本文来自: gitolite

    Adobe Media Server 5安装错误及解决

    <Category: 流媒体> Comments Off on Adobe Media Server 5安装错误及解决

    已经多年不再接触flash及相关东东了。,fms现在的ams,
    fms3.5的在centos6试了一会,果断放弃折腾

    阅读这篇文章的其余部分 »

    本文来自: Adobe Media Server 5安装错误及解决

    [tutorial]clustering search result with plugin:tools-carrot2

    <Category: Diving Into ElasticSearch> Comments Off on [tutorial]clustering search result with plugin:tools-carrot2

    this tutorial is write for this plugin,https://github.com/medcl/elasticsearch-carrot2
    阅读这篇文章的其余部分 »

    本文来自: [tutorial]clustering search result with plugin:tools-carrot2

    eqt support adidas eqt support 93 primeknit og colorway ba7506 adidas eqt running 93 updated with primeknit construction adidas eqt boost 93 17 white turbo red adidas eqt support 9317 white turbo red adidas eqt support 93 17 adidas eqt support 9317 adidas eqt support 9317 turbo red releases tomorrow adidas originals adidas eqt tactile green pack adidas eqt tactile green pack adidas eqt light green pack womens adidas eqt light green pack coming soon adidas eqt milled leather pack release date adidas originals eqt milled leather pack adidas eqt support ultra boost turbo red white adidas adv support burnt orange grey where to buy the adidas eqt support 9317 turbo red adidas eqt boost 91 16 turbo red adidas eqt support 93 turbo red adidas eqt support 9317 white turbo red available now